龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-12-15 09:59

波段宝塔习入指标 变盘买入一目了然[大智慧公式

[code]
VAR1:=IF((DATE>9999999),0,1);
分水线:0,Linethick1,CoLor808080;
M:=15;
开:=(((OPEN)/(MA(CLOSE,M))-1)*(1000))*(VAR1);
高:=(((HIGH)/(MA(CLOSE,M))-1)*(1000))*(VAR1);
低:=(((LOW)/(MA(CLOSE,M))-1)*(1000))*(VAR1);
收:=(((CLOSE)/(MA(CLOSE,M))-1)*(1000))*(VAR1);
B1:=ref(收,1);
B2:=ref(收,2);
B3:=ref(收,3);
B4:=ref(收,4);
CMAX:=MAX(MAX(MAX(收,B1),B2),B3);
CMIN:=MIN(MIN(MIN(收,B1),B2),B3);
持股:STICKLINE(((((收=CMAX) AND ((B1>=B2) or (B1>=B3)) or (B1=CMAX) AND ((B2=CMIN) or (B3=CMIN)) AND (收>=B2)) or (B2=CMAX) AND (B3=CMIN) AND (收>=B1)) or (B3=CMAX) AND (收>=B1) AND (收>=B2)),B1,收,4,0),CoLor0000FF;
CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('http://www.cxh99.com',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
变盘:STICKLINE((收=CMAX) AND (B1=CMIN),B2,收,4,0),CoLor0099EF;
下跌:STICKLINE(((((收=CMIN) AND ((B1<B2) or (B1<B3)) or (B1=CMIN) AND ((B2=CMAX) or (B3=CMAX)) AND (收<B2)) or (B2=CMIN) AND (B3=CMAX) AND (收<B1)) or (B3=CMIN) AND (收<B1) AND (收<B2)),B1,收,4,1),CoLor00FF00;
STICKLINE((B1=CMAX) AND (收=CMIN),B2,收,4,0),CoLor009900;
买入:STICKLINE(((B1=CMIN) AND (收>=B2) or ((B2=CMIN) AND (B1<=B3) or (B3=CMIN) AND (B1<=B2)) AND (B2<B4) AND (收>=B1)),B1,B2,4,0),CoLorFFFFFF;
抛售:STICKLINE(((B1=CMAX) AND (收<B2) or ((B2=CMAX) AND (B1>B3) or (B3=CMAX) AND (B1>B2)) AND (B2>=B4) AND (收<B1)),B1,B2,4,0),CoLor00FFFF;
[/code]

页: [1]