通达信幻影龙麒老师的指标优化
源码:
大宗:(L2_AMO(0,2)+L2_AMO(1,2)-L2_AMO(0,3)-L2_AMO(1,3))/10000.0,COLOR00BBFF,NODRAW;
主力:(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000.0,COLORRED,NODRAW;
超大:(L2_AMO(0,2) - L2_AMO(0,3))/10000,COLORYELLOW,NODRAW;
BR:=SUM(MAX(1,大宗-REF(主力,1)),26)/SUM(MAX(1,REF(主力,1)-超大),26);
涨幅:=((C/REF(C,5))-1)*100;
BR涨幅:=((BR/REF(BR,5))-1)*100;
主力1:BR涨幅-涨幅 NODRAW;
能量:HHV(主力1,5)NODRAW;
建仓:=IF(主力1>0,主力1,0);
STICKLINE(建仓>0 AND BR>2,0,建仓,2,0),COLOR1010FF;
STICKLINE(建仓>0 AND BR>2 AND 建仓<REF(建仓,1),0,建仓,2,0)COLORYELLOW;
优化版:
大宗:=(L2_AMO(0,2)+L2_AMO(1,2)-L2_AMO(0,3)-L2_AMO(1,3))/10000.0,COLOR00BBFF;
主力:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000.0,COLORRED;
超大:=(L2_AMO(0,2) - L2_AMO(0,3))/10000,COLORYELLOW;
游资:大宗-REF(大宗,1)COLORRED NODRAW;
主力1:主力-REF(主力,1)COLORMAGENTA NODRAW;
散户:超大-REF(超大,1)COLORLIRED NODRAW;
STICKLINE(游资>0,0,游资,1,0)COLORRED;
STICKLINE(游资<0,0,游资,1,0)COLORGREEN;
STICKLINE(主力1>0,-3000,主力1-3000,1,0)COLORMAGENTA;
STICKLINE(主力1<0,-3000,主力1-3000,1,0)COLORYELLOW;
STICKLINE(散户>0,-6000,散户-6000,1,0)COLORLIRED;
STICKLINE(散户<0,-6000,散户-6000,1,0)COLORLIGREEN;
游:REF(游资,4)+REF(游资,3)+REF(游资,2)+REF(游资,1)+游资 NODRAW;
主:REF(主力1,4)+REF(主力1,3)+REF(主力1,2)+REF(主力1,1)+主力1 NODRAW;
散:REF(散户,4)+REF(散户,3)+REF(散户,2)+REF(散户,1)+散户 NODRAW;