龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-12-11 10:30

量能操盘指标源码[大智慧公式]

量能操盘指标源码:根据量能大小提示买入还卖出
[code]
VAR1:=AMOUNT/10000000;
VAR2:=IF(C>=ref(C,1),VAR1,REVERSE(VAR1));
VAR3:=(C-ref(C,1))/ref(C,1)*100;
VAR4:=VAR3*36;
VAR5:=VAR4-VAR2;
⒊日:MA(VAR1,3),Color408080;
⒌日:MA(VAR1,5),ColorC0C0C0;
量能:=VAR1/MA(VAR1,5);
换手:=VOL/CAPITAL*100;
开心看量:=EMA(SUM(VAR5,5),5);
VMA1:=EMA(开心看量,5);
VMA2:=EMA(VMA1,5);
VAR6:=(HIGH - LOW);
VAR7:=ABS((OPEN - CLOSE));
VAR8:=开心看量>0 AND 开心看量<VMA1;
VAR9:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));
VAR10:=开心看量<0 AND VMA2>0;
VAR11:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);
VAR12:=DYNAINFO(6);
VAR13:=IF(LOW>VAR12,0,IF(HIGH<VAR12,1,(VAR12-LOW+0.01)/(HIGH-LOW+0.01))); {本文来至CXH99.COM}
VAR14:=VOL/WINNER(LOW);
VAR15:=ref(HHV(CLOSE,144),1);
VAR16:=ref(LLV(CLOSE,144),1);
VAR17:=100*(CLOSE-VAR16)/(VAR15-VAR16);
VAR18:=VAR14/ref(VAR14,3)>=3 AND VAR17<80;
买:STICKLINE(开心看量>0 AND 开心看量>VMA1 ,0 ,VAR1 ,6 ,1 ),COLORRED;
卖:STICKLINE(VAR8 OR VAR10 ,0 ,VAR1 ,5,0 ),COLORFFBB00;
减:STICKLINE(CROSS(VMA1,开心看量 ) ,0 ,VAR1 ,6,0 ),COLORWHITE;
望:STICKLINE(开心看量<0 AND VMA2<0 ,0 ,VAR1 ,6,0 ),COLOR008800;
增:STICKLINE(IF(FILTER(VAR18,3),5,0) ,0 ,VAR1 ,6,0 ),COLORYELLOW;
震:STICKLINE(((((VAR11 / VAR6) * VOL) > ((VAR7 / VAR6) * VOL)) AND (((VAR11 / VAR6) * VOL) > ((VAR9 / VAR6) * VOL))),0,VAR1,6,0),COLOR00FF00;
加:STICKLINE((((((VAR7 / VAR6) * VOL) >= ((VAR9 / VAR6) * VOL)) AND (((VAR7 / VAR6) * VOL) >= ((VAR11 / VAR6) * VOL))) AND (CLOSE > OPEN)),0,VAR1,6,0),COLOR0000CC;
注意:DRAWTEXT(FILTER((量能>2 AND ref(量能>1 ,1 ) AND 换手>4 OR 换手>5) AND (开心看量>0 AND 开心看量>VMA1) , 3),VAR1*1.15 ,'注' ),COLORYELLOW;
DRAWTEXT(FILTER((量能>2 AND ref(量能>1 ,1 ) AND 换手>4 OR 换手>5) AND (开心看量>0 AND 开心看量>VMA1) , 3) ,VAR1*0.9 ,'意' ),COLORYELLOW;
量能大于⒈:STICKLINE(量能>1 AND 开心看量>0 AND 开心看量>VMA1 ,0 ,VAR1*0.88 ,3,0 ),COLOR3399FF;
量能大于⒉:STICKLINE(量能>2 AND 开心看量>0 AND 开心看量>VMA1 ,0 ,VAR1*0.88 ,3,0 ),COLORMAGENTA;
CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
[/code]

龙听 发表于 2018-12-11 10:30

[attach]5816[/attach]

页: [1]