同花顺本性空主图指标
源码
ND:=21;N:=10;STEP:=2;MAXP:=20;
f:FORCAST(C,nd),color0000ff;
S:f+STD(C,nd),ColorFF6AF8;
X:f-STD(C,nd),ColorFF6AF8;STICKLINE(f>REF(F,1),f,s,1,0),Color3782FF;
STICKLINE(f<REF(F,1),f,s,1,0),Color35AD00;
STICKLINE(x>REF(x,1),f,x,1,0),ColorCA00DB;
STICKLINE(f<REF(F,1),f,x,1,0),ColorFACC00;STICKLINE(C<O,C,O,8,0),COLOR008800;
STICKLINE(C<O,C,O,7,0),COLOR009900;STICKLINE(C<O,C,O,6,0),COLOR00AA00;STICKLINE(C<O,C,O,5,0),COLOR00BB00;
STICKLINE(C<O,C,O,4,0),COLOR00CC00;STICKLINE(C<O,C,O,3,0),COLOR00DD00;STICKLINE(C<O,C,O,2,0),COLOR00EE00;
STICKLINE(C<O,C,O,1,0),COLOR00FF00;STICKLINE(C>=O,H,L,1,0),COLOR0000FF;STICKLINE(C>=O,H,L,0,0),COLOR00EEFF;
STICKLINE(C>=O,C,O,8,0),COLOR0000FF;STICKLINE(C>=O,C,O,7,0),COLOR0022FF;STICKLINE(C>=O,C,O,6,0),COLOR0044FF;
STICKLINE(C>=O,C,O,5,0),COLOR0066FF;STICKLINE(C>=O,C,O,4,0),COLOR0088FF;STICKLINE(C>=O,C,O,3,0),COLOR00AAFF;
STICKLINE(C>=O,C,O,2,0),COLOR00CCFF;STICKLINE(C>=O,C,O,1,0),COLOR00EEFF;
CSAR:=SAR(N,STEP,MAXP),LINETHICK2;
A:=(REF(H,1)-REF(L,1))*0.191+REF(L,1);
cj:=(O<=REF(L,1) OR O=L) AND CROSS(C,A);
JJ:=AMOUNT/V/100;
DRAWTEXT(REF(cj,1)>0 AND HHV(H,3)>H AND C<A ,A-0.15,'失败出局'),COLOR421C38;
aa:STICKLINE(cj>0,A,A,30,0),colorgreen;
MA(L,3);
DRAWTEXT(CSAR>=H,CSAR,'。'),color00EEFF;
DRAWTEXT(CSAR<=L,CSAR,'。'),colorred;