有一段时间没有分享指标了,今天跟大家分享一款准确率特别高的主图指标。该指标集:【持仓】、【空仓】、【获利盘比例】、【止损价位】【今日阻力】、【今日支撑】等六个指标。该指标简洁精炼,信号不漂移,极具实盘操作参考价值。
精准波段主图指标源码:
N:=4;N1:=2;N2:=20;
持仓:IF(CLOSE>=SAR(N,N1,N2),SAR(N,N1,N2),
DRAWNULL),COLORRED,LINETHICK5;
空仓:IF(CLOSE<=SAR(N,N1,N2),SAR(N,N1,N2),
DRAWNULL),COLORGREEN,LINETHICK5;
获利%:WINNER(CLOSE)*100,NODRAW,COLORYELLOW;
HSB:=REF(CLOSE,1);
止损价位:(HSB*1.0035*97+0.2)/99.65,COLORGREEN,NODRAW;HSC:=HHV(HIGH,13)=HIGH AND HIGH>REF(HIGH,1);
HSD:=FILTER(HSC,12);
HSE:=LLV(LOW,13)=LOW AND LOW<REF(LOW,1);
HSF:=FILTER(HSE,12);
HSG:=BARSLAST(HSD);
箱顶:=REF(HIGH,HSG) ,COLORFF00FF,NODRAW;
STICKLINE(1,箱顶,箱顶,3,0),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=1,箱顶,"■箱顶■"),COLORFF00FF;
HSH:=BARSLAST(HSF);
箱底:=REF(LOW,HSH) ,COLOR009900,NODRAW;
STICKLINE(1,箱底,箱底,3,0),COLOR009900;
DRAWTEXT(CURRBARSCOUNT=1,箱底,"■箱底■"),COLOR009900;
中枢:=(箱顶+箱底)/2;
STICKLINE(1,中枢,中枢,3,0),COLOR0099FF;
DRAWTEXT(CURRBARSCOUNT=1,中枢,"■中枢■"),COLOR0099FF;
HSI:=(HIGH+LOW+OPEN+2*CLOSE)/5;
明日阻力:=2*HSI-LOW;
明日支撑:=2*HSI-HIGH;
今日阻力:REF(明日阻力,1)NODRAW,COLORGREEN;
今日支撑:REF(明日支撑,1)NODRAW,COLORRED;
DRAWTEXT(ISLASTBAR,今日阻力,"←■今日阻力■"),COLORGREEN;
DRAWTEXT(ISLASTBAR,今日支撑,"←■今日支撑■"),COLORRED;
准确率极高的波段主图指标(附源码)