从淘宝几十元买来的源码,然后自行调整了相应参数,T+0准确率瞬间准的不要不要的。(适用于做震荡行情)
VAR1:=LLV(LOW,100);
VAR2:=HHV(HIGH,250);
操盘线: EMA((CLOSE-VAR1)/(VAR2-VAR1)*5,5);
绝底:0.03,LINETHICK2,COLOR0000FF;
绝顶:4.91,LINETHICK2,COLORFF00FF;
分界:2.5,COLOR00FFFF;
DRAWTEXT(CROSS(操盘线,绝底),0.2,'买入'), COLORYELLOW;
DRAWTEXT(CROSS(操盘线,绝顶),4.6,'卖出'), COLORYELLOW;
STICKLINE(CROSS(操盘线,绝顶),4.91,2.5,1,0);
STICKLINE(CROSS(操盘线,绝底),2.5,0,1,0);