龙头股指标公式函数源码

蛇背:MA(C,20)+20/10*STD(CLOSE,20),COLORGREEN,LINETHICK2;

蛇肚:MA(C,20)-20/10*STD(CLOSE,20),COLORRED,LINETHICK2;

蛇血线:EMA(CLOSE,12),COLORYELLOW,LINETHICK2;

蛇骨线:EMA(CLOSE,24),COLORFF1AA9,LINETHICK2;

IF(蛇血线>=REF(蛇血线,1),蛇血线,DRAWNULL),COLORRED,LINETHICK3;

IF(蛇血线<=REF(蛇血线,1),蛇血线,DRAWNULL),COLORGREEN,LINETHICK2;

C1:=(CLOSE+LOW+HIGH)/3;

C4:=CROSS(蛇血线,蛇骨线);

DRAWTEXT(C4,LOW/1.01,'←买'),COLORYELLOW;

VAR6:=REF(C,1);

VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;

DRAWTEXT(CROSS(84,VAR7),H*1.01,'逃顶'),COLORYELLOW ;

STICKLINE(蛇血线>=蛇骨线,LOW,HIGH,0.0,1),COLORLIRED;

STICKLINE(蛇血线>=蛇骨线,CLOSE,OPEN,3,1),COLORLIRED;

STICKLINE(蛇血线<蛇骨线,LOW,HIGH,0.0,1),COLORCYAN;

STICKLINE(蛇血线<蛇骨线,CLOSE,OPEN,3,1),COLORCYAN;

image.png

      龙抬头指标公式源码

VAR1:=((((((2*CLOSE)+HIGH)+LOW)+OPEN)/5));A1:(((((EMA(VAR1,3)+EMA

(VAR1,6))+EMA(VAR1,12))+EMA(VAR1,24))/4));A2:(EMA(A1,2));

A3:(EMA(A2,2));A4:(EMA(A3,2));A5:(EMA(A4,2));A6:(EMA(A5,2));

A7:(EMA(A6,2));A8:((EMA(VAR1,2.78)*1.028));A9:((MA(OPEN,3.2)*1.028));

AA:=((CLOSE/REF(CLOSE,1))>=1.099);AB:=(VOL/REF(VOL,1));

龙头第一买点:=IF((AA AND (AB<1)),1,0);龙头第二买点:=IF((((CLOSE/REF

(CLOSE,1))>=1.07) AND (AB<1)),1,0);买线:=(EMA(CLOSE,2));

卖线:=(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42));

STICKLINE((买线>=卖线),CLOSE,OPEN,3,0),COLOR0000AA;

STICKLINE((买线>=卖线),CLOSE,OPEN,3,0),COLOR0000BB;

STICKLINE((买线>=卖线),CLOSE,OPEN,3,0),COLOR0000CC;

STICKLINE((买线<卖线),CLOSE,OPEN,3,0),COLORAAAA00;

STICKLINE((买线<卖线),CLOSE,OPEN,3,0),COLORBBBB00;

image.png

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