以下是通达信分时止盈主图源码(无源码的请下载附件导入)
A1:=IF((CURRBARSCOUNT = 1),((VOL * 240) / FROMOPEN),VOL);
A2:=((A1 * 10000) / FINANCE(7));
A3:=CONST(BARSLAST((A2 = HHV(A2,180))));
A4:=IF((CURRBARSCOUNT <= (A3 + 1)),CONST(REF(((((CLOSE + OPEN) + HIGH) + LOW) / 4),A3)),DRAWNULL);
A5:=A4;
止盈价:A5,COLORYELLOW;
止盈:=VARCAT(VARCAT('止赢价:',VAR2STR(止盈价,2)),'元');
DRAWTEXT_FIX(ISLASTBAR,0.99,0.99,1,止盈)COLOR8000FF;
645299697.jpg
|