通达信画线分时主图指标公式

P:=5;
QS:ZIG(3,P),COLORGREEN;
IF(QS>=REF(QS,1),QS,DRAWNULL),COLORRED;
↑:=TROUGHBARS(3,P,1);
↓:=PEAKBARS(3,P,1);
低:=IF(↑=0,C,IF(↓<↑,TROUGH(3,P,1),REF(TROUGH(3,P,1),1))),NODRAW;
高:=IF(↓=0,C,IF(↑<↓,PEAK(3,P,1),REF(PEAK(3,P,1),1))),NODRAW;
涨%:=IF(↑<↓,(C/低-1)*100,REF((C/低-1)*100,↓)),COLORRED,NODRAW;
跌%:=IF(↓<↑,(C/高-1)*100,REF((C/高-1)*100,↑)),COLORGREEN,NODRAW;
DRAWNUMBER(↓=0,C*1.002,涨%),COLORLIRED;
DRAWNUMBER(↑=0,C*0.998,跌%),COLORGREEN;
DRAWICON(REF(QS,1)=LLV(QS,3),QS,1);
DRAWICON(REF(QS,1)=HHV(QS,3),QS,2);
DRAWNUMBER(REF(QS,1)>QS AND ISLASTBAR,C*1.002,跌%),COLORLIRED;
DRAWNUMBER(REF(QS,1)<QS AND ISLASTBAR,C*0.998,涨%),COLORGREEN;
DYNAINFO(6)*0.998,COLORBLACK;
DYNAINFO(5)*1.002,COLORBLACK;

通达信画线分时主图指标公式

 

大智慧策略终端/职业股民首选分析软件:支持ACE数据,支持L2行情全推数据,支持股票池,超赢数据,价格低廉,支持月季费年费。:

下载地址:https://share.weiyun.com/LPoU0GHu