游戏小解说|私募专用操盘指标——趋势操盘(源码免费分享)( 三 )


EX2:=ZIG(3,10)<REF(ZIG(3,10),1)ANDREF(ZIG(3,10),1)>=REF(ZIG(3,10),2)ANDREF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
PL20:=ZIG(3,20);
EN3:=ZIG(3,20)>REF(ZIG(3,20),1)ANDREF(ZIG(3,20),1)<=REF(ZIG(3,20),2)ANDREF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
EX3:=ZIG(3,20)<REF(ZIG(3,20),1)ANDREF(ZIG(3,20),1)>=REF(ZIG(3,20),2)ANDREF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,40);
走强1:=BARSLAST(PL5<REF(PL5,1));
走弱1:=BARSLAST(PL5>REF(PL5,1));
走弱2:=BARSLAST(PL10>REF(PL10,1));
走强3:=BARSLAST(PL20<REF(PL20,1));
走弱3:=BARSLAST(PL20>REF(PL20,1));
{ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);}
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
DRAWTEXT(EN1ANDDTJZ5=1,L*0.98,'反弹低点'),COLORLIRED;
DRAWTEXT(EX1ANDDTJD5=2,H*1.02,'反弹高点!'),COLORLIBLUE;
DRAWTEXT(EN2ANDZTJZ5=1,L*0.98,'底'),COLORYELLOW;
DRAWTEXT(EX1ANDPL10>REF(PL10,1)ANDZTJD5=1,H*1.02,'↙减仓'),COLORFFFF00;
DRAWTEXT(EN1ANDPL10>REF(PL10,1)ANDZTJZ5=2,L*0.98,'----买'),COLOR0000FF;
DRAWTEXT(EX1ANDPL10>REF(PL10,1)ANDZTJZ5=2,H*1.02,'短卖'),COLORGREEN;
DRAWTEXT(EN1ANDPL10>REF(PL10,1)ANDZTJZ5=3,L*0.98,'----短买'),COLOR0000FF;
DRAWTEXT(EX2ANDPL20>REF(PL20,1)ANDZTJD10=1,H*1.02,'短卖'),COLORGREEN;
DRAWTEXT(EN2ANDDTJZ10=1,L*0.96,'Ⅰ'),COLORFF00FF;
DRAWTEXT(EX2ANDDTJD10=2,H*1.03,'Ⅱ'),COLORFF6000;
DRAWTEXT(EN3ANDZTJZ10=1,L*0.95,'Ⅲ'),COLORYELLOW;
DRAWTEXT(EX2ANDPL20>REF(PL20,1)ANDZTJD10=1,H*1.06,'①'),LINETHICK3,COLORFFFF00;
DRAWTEXT(EN2ANDPL20>REF(PL20,1)ANDZTJZ10=2,L*0.96,'②'),LINETHICK3,COLORYELLOW;
DRAWTEXT(EX2ANDPL20>REF(PL20,1)ANDZTJD10=2OR(ZTJD10=0ORZTJD10=2)ANDEX2,H*1.02,''),LINETHICK3,COLORWHITE;
DRAWTEXT(EN2ANDPL20>REF(PL20,1)ANDZTJZ10=3,L*0.96,'④'),LINETHICK3,COLORYELLOW;
DRAWTEXT(EN1ANDPL10>REF(PL10,1)ANDZTJZ5=3,L*0.95,'⑷'),COLORYELLOW;
EMA13:=EMA(C,13);
EMA34:=EMA(C,34);
EMA55:=EMA(C,55);
EMA120:=EMA(C,120);
CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;
CR2:=V>MA(V,5)*0.6;
CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;
CR4:=ABS(EMA34-EMA55)/EMA55<0.03;
CR5:=EMA55<=EMA120ANDEMA55>=REF(EMA55,1);
CR6:=FILTER(CR1ANDCR2ANDCR3ANDCR4ANDCR5,2);
DRAWTEXT(CR6,C*0.98,'风险'),COLORCYAN;
{捞钱手}
MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;
G1:=IF(-MMS>95,0,20);
UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0ANDG1)+1);
KS:=(((CLOSE-EMA(CLOSE,13))/EMA(CLOSE,13))*(0-100));
KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);
趋势线:=EMA(((KS/10)+EMA(CLOSE,10)),3);
AA:=-100*(趋势线-CLOSE)/趋势线;


推荐阅读