以下是同花顺主力策略公式

同花顺主力策略公式

源码

VAR1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;

VAR2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;

VAR3:=BARSCOUNT(CLOSE);

VAR4:=VAR1<20 AND VAR2<23 AND VAR3>35;

VAR5:=VAR4 AND COUNT(VAR4,1)=1;

VAR6:=EMA(CLOSE,21)-EMA(CLOSE,8);

VAR7:=EMA(VAR6,5);

VAR8:=TROUGHBARS(3,6,1)<4 AND CROSS(VAR6,VAR7);

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

VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);

VAR11:=(VAR9-MA(VAR9,14))/(0.015*AVEDEV(VAR9,14));

见底: VAR10,coloryellow,LINETHICK3;

DRAWTEXT(VAR11<-110 AND 见底>0,3,’见底’), ,coloryellow;

DRAWTEXT(见底 AND VAR11<-100 AND VAR8 AND VAR5>0,4.1,’★组合5分钟线选股思路获利5%以上’), , colorred;

DRAWICON(见底>0,4,1);

XX:=EMA(CLOSE,30)-EMA(CLOSE,17);

AA:=EMA(XX,5);

YY:=EMA(XX,13);

短:=TROUGHBARS(3,10,1)<1 AND CROSS(XX,AA);

DRAWICON(短>0,1.8,18);

DRAWTEXT(短>0,1.8,’慧眼’),colorwhite;

枪:=TROUGHBARS(3,5,1)<1 AND XX<YY;

短1:=IF(枪>0,0.4,0),STICK,COLORF0F000,LINETHICK4;

DRAWICON(短1>0,1.4,1 );

DRAWTEXT(短1>0,1.1,’套利’),colorliblue;

短2:=CROSS(XX,AA) AND TROUGHBARS(3,7,1)<1;

DRAWICON(短2>0,1.4,1 );

DRAWTEXT(短2,2.5,’小牛’),colorwhite;

狙击:短 OR 短1 OR 短2,colorwhite,LINETHICK9;

VAR12:=PEAKBARS(3,15,1)<10;

VAR13:=IF(VAR12=1,2,0);

顶:= IF(VAR13=2,2,0);

逃命:IF(顶>REF(顶,1),3,0),colorred,LINETHICK2;

DRAWTEXT(逃命=3,3,’逃!’),colorred;

RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*5;

金:SMA(FASTK,3,1),colorligreen,coloryellow;

阴阳:SMA(金,5,1),colorlicyan,colormagenta;

VAR14:=TROUGHBARS(3,15,1)<10;

VAR15:=IF(VAR14=1,50,0);

底部:=IF(VAR15=50,10,0);

机构介入:底部/20,LINETHICK2 ,colorblue;

VAR16:=EMA(EMA(CLOSE,13),13);

控盘:= (VAR16-REF(VAR16,1))/REF(VAR16,1)*1000,COLORFFCCCC,POINTDOT;

无庄控盘:控盘<0,LINESTICK;

有庄控盘: 控盘>REF(控盘,1) AND 控盘>0,LINETHICK3;

VAR17:=100*WINNER(CLOSE*0.95);

主力出货: 控盘<REF(控盘,1) AND 控盘>0,colorgreen;

高度控盘: VAR17>50 AND COST(85)<CLOSE AND 控盘>0,colorlimagenta;

同花顺主力策略公式

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