三色指标公式源码

DRAWTEXT_FIX(1,0.0,0.00,0,EXTERNSTR(0,1))COLOR0077FF;

EXP1:EXPMA(CLOSE,M1)LINETHICK2;

EXP2:EXPMA(CLOSE,M2)LINETHICK2;

A:IF(CLOSE>SAR(N,S,M),SAR(N,S,M),DRAWNULL),CIRCLEDOT,COLORRED;

B:IF(CLOSE<SAR(N,S,M),SAR(N,S,M),DRAWNULL),CIRCLEDOT,COLORCYAN;

高 1:=REF(HHV(H,150),3);

低 1:=REF(LLV(L,150),3);

H3:=高 1-(高 1-低 1)*0.5;

中轴:REFDATE(H3,DATE),POINTDOT,COLORLIGRAY,LINETHICK3;

B1:=EMA(C,12);

B2:=EMA(C,26);

B3:=(B1-B2)*2;

WDIF:中轴+B3,COLORFF00FF,LINETHICK2;

WDEA:EMA(WDIF,9),LINETHICK2;

MACD:=2*(WDIF-WDEA);

STICKLINE(MACD>0,中轴,中轴+MACD,0,1),COLORYELLOW;

STICKLINE(MACD<0,中轴,中轴+MACD,0,1),COLORLIBLUE;

股价趋

势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2

*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,

1);

买入信号:STICKLINE(CROSS(股价趋势,10),L*0.97,L,6,0)COLORLIMAGENTA

image.png

 主力状态三色指标公式源码

QB:=(H-L);

SY:=(H-MAX(C,O))/QB*100/100;

ST:=(MAX(C,O)-MIN(C,O))/QB*100/100;

XY:=(MIN(C,O)-L)/QB*100/100;

STICKLINE((C>O OR (C=O AND C>=REF(C,1))) AND

L!=O,0,VOL*XY,2,0),COLORYELLOW;

STICKLINE(C>O OR (C=O AND C>=REF(C,1)),VOL*XY,VOL*XY+VOL*ST,2,0),COLORRED;

STICKLINE((C>O OR (C=O AND C>=REF(C,1))) AND

H!=C,VOL*ST+VOL*XY,VOL,2,0),COLORGREEN;

STICKLINE((C<O OR (C=O AND C<REF(C,1))) AND L!=C,0,VOL*XY,2,0),COLORYELLOW;

STICKLINE(C<O OR (C=O AND C<REF(C,1)),VOL*XY,VOL*XY+VOL*ST,2,0),COLORCYAN;

STICKLINE((C<O OR (C=O AND C<REF(C,1))) AND

H!=O,VOL*ST+VOL*XY,VOL,2,0),COLORGREEN;

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。