以下是通达信经典特色主图源码
通达信经典特色主图源码
N:=120;{120可以变}
DAY1:=BARSLAST(CURRBARSCOUNT=N);
低:=CONST(IF(ISLASTBAR=1,LLV(LOW,DAY1),0));
高:=CONST(IF(ISLASTBAR=1,HHV(H,DAY1),0));
差值:=CONST(IF(ISLASTBAR=1,高-低,0));
阻1:=CONST(IF(ISLASTBAR=1,低+差值*0.191,0));
阻2:=CONST(IF(ISLASTBAR=1,低+差值*0.382,0));
阻3:=CONST(IF(ISLASTBAR=1,低+差值*0.5,0));
阻4:=CONST(IF(ISLASTBAR=1,低+差值*0.618,0));
阻5:=CONST(IF(ISLASTBAR=1,低+差值*0.809,0));
DAY2:=CURRBARSCOUNT<=N;
X7:IF(DAY2,高,DRAWNULL),POINTDOT COLORFFFF00;
X6:IF(DAY2,阻5,DRAWNULL),POINTDOT COLOR0FF0FF;
X5:IF(DAY2,阻4,DRAWNULL),POINTDOT COLOR00FF00;
X4:=IF(DAY2,阻3,DRAWNULL),POINTDOT COLOR0000FF;
X3:IF(DAY2,阻2,DRAWNULL),POINTDOT COLOR00FFFF;
X2:IF(DAY2,阻1,DRAWNULL),POINTDOT COLORFF00FF;
X1:IF(DAY2,低,DRAWNULL),POINTDOT COLORFFFF00;
{}
M1:SUM(V*C,30)/SUM(V,30);
M2:SUM(V*C,55)/SUM(V,55);
M3:SUM(V*C,88)/SUM(V,88);
评论(0)