沧海行操盘主图指标 (源码)
通达信沧海行操盘主图指标公式股票软件源码如下:
M:=(H+L+3*C+O)/6;M3:=MA(M,3);M7:=MA(M,7);M14:=MA(M,14);M21:=MA(M,21);M28:=MA(M,28);
M35:=MA(M,35);M42:=MA(M,42);M49:=MA(M,49);M56:=MA(M,56);MH7:=MA(H,7);MH14:=MA(H,14);
MH21:=MA(H,21);MH28:=MA(H,28);MH35:=MA(H,35);MH42:=MA(H,42);MH49:=MA(H,49);MH56:=MA(H,56);
ML7:=MA(L,7);ML14:=MA(L,14);ML21:=MA(L,21);ML28:=MA(L,28);ML35:=MA(L,35);ML42:=MA(L,42);
ML49:=MA(L,49);ML56:=MA(L,56);
MZ:=(7*M7+14*M14+21*M21+28*M28+35*M35+42*M42+49*M49+56*M56)/252;
{www.gpxiazai.com 股票软件下载网_通达信股票指标公式}
沧海行操盘线:EMA(C,3),COLORWHITE,LINETHICK1;
沧海行操盘线2:MA(C,5)COLORYELLOW,LINETHICK1;
沧海行操盘线3:MA(C,8),COLORRED,LINETHICK1;
沧海行安全线:MA(C,25),COLORGRAY,LINESTICK,LINETHICK1;
沧海行牛熊线:MZ,COLORWHITE,CIRCLEDOT,LINETHICK1;
DRAWICON(CROSS(沧海行操盘线,沧海行牛熊线),L*0.98,1);
DRAWICON(CROSS(沧海行安全线,MZ) AND 沧海行安全线>REF(沧海行安全线,1) AND
REF(沧海行安全线,1)>REF(沧海行安全线,2),沧海行安全线,5);
STICKLINE(C/REF(C,1)>1.095,C,O,1,0),COLORYELLOW;
DIVE:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
CYR:=(DIVE/REF(DIVE,1)-1)*10;
MACYR:=MA(CYR,5)/10;
MA18:=MA(C,18);
魔力线:=(MA18>REF(MA18,1))CIRCLEDOT,COLORWHITE,LINETHICK1;
进仓:IF(MACYR<CYR ,沧海行牛熊线,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK2;
空仓:IF(CYR<MACYR ,沧海行牛熊线,DRAWNULL),COLORGREEN,CIRCLEDOT,LINETHICK2;
持仓:IF(CYR>MACYR AND 魔力线,沧海行牛熊线,DRAWNULL),CIRCLEDOT,COLORRED,,LINETHICK2;
PP1:=H>=MA(C,5)*(100+8)/100 AND NOT(C/REF(C,1)>1.095);
PP2:=L*(100+20)/100<=MA(C,25);
DRAWICON(PP1,H*1.02,15);
- 上一篇公式:AA+分价主图指标 (源码)
- 下一篇公式:先锋能量指标 (源码)