布林中轨【选股公式】
{布林中轨【选股】参数 N:2 100 11,M:2 100 6.}
CV:=CLOSE;
BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4,;
UPR:=BBIBOLL+M*STD(BBIBOLL,N);
DWN:=BBIBOLL-M*STD(BBIBOLL,N);
多:=IF(BBIBOLL>REF(BBIBOLL,1),BBIBOLL,DRAWNULL);
空:=IF(BBIBOLL<REF(BBIBOLL,1),BBIBOLL,DRAWNULL);
关注:=DRAWICON(CROSS(C,BBIBOLL)AND REF(BBIBOLL,0)>=REF(BBIBOLL,1),L-0.2,11);
{SAR指标}
持仓:=IF(CLOSE>=SAR(4,2,20),SAR(4,2,20),DRAWNULL);
空仓:=IF(CLOSE<=SAR(4,2,20),SAR(4,2,20),DRAWNULL);
BS:=STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),;
SAR持仓标识:=DRAWTEXT(CLOSE>=SAR(4,2,20),SAR(4,2,20)-0.3,'●');
SAR空仓标识:=DRAWTEXT(CLOSE<=SAR(4,2,20),SAR(4,2,20)+0.3,'●');
选股:CROSS(REF(C,0),BBIBOLL)AND CROSS(持仓,空仓);
赞 (0)