通达信趋势成本指标公式

VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
A:SMA(VAR1,7,1),LINETHICK1,COLOR00FFFF;
VAR2:=SMA(A,5,1);
B:IF(CROSS(A,VAR2) AND CROSS(MA(C,5),MA(C,13) AND A>50) ,VAR2*2,VAR2),COLORYELLOW;
{PARTLINE(B,B>REF(B,1),RGB(255,0,0),B<REF(B,1),RGB(0,255,0)),LINETHICK2;}
DRAWBAND(B,RGB(255,0,0),REF(B,1),RGB(0,255,0));
{IF(B>REF(B,1),B,DRAWNULL),LINETHICK2,COLORRED;}
{IF(B<REF(B,1),B,DRAWNULL),LINETHICK2,COLORGREEN;}
DRAWTEXT(CROSS(B,A) ,B,'止盈'),COLOR0000FF;
DRAWTEXT(CROSS(A,B) ,A,'买'),COLOR00FFFF;
趋势成本:REF(A,BARSLAST(CROSS(REF(A,3),A))+1),POINTDOT,COLORD3A9FF,LINETHICK2;

通达信趋势成本指标公式

 

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

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