发一个副图指标源码,适合波段操作。当波段顶部红线出现水平绿线时卖出,而在波段底部绿线融入红线或红线上穿转强线时买入。
VAR1:=(HIGH+LOW+CLOSE*2)/4;
VAR2:=EMA(VAR1,7);
VAR3:=STD(VAR1,7);
VAR4:=(VAR1-VAR2)*100/LLV(LOW,33);
VAR5:=EMA(VAR4,3);
趋势线:=(EMA(VAR5,5)+100)/2-3;
空方线:HHV(趋势线,5),COLORGREEN;
操作线:趋势线,COLORMAGENTA,LINETHICK2;
转强线:45,COLORWHITE,DOTLINE;
DRAWICON(CROSS(操作线,转强线),转强线-0.95,38);
DRAWICON(FILTER(空方线=操作线 AND 操作线<45,5),空方线-0.95,1);
DRAWTEXT_FIX(1,0.01,0.98,0,'波段顶红线出绿线卖出,波段底绿线汇合红线买'),COLORLIRED;
2019989325221141.jpg
2019989325715148.jpg
201998933265553.jpg
|