波段指标公式(分享)
N:=4; N1:=2; N2:=20;持仓:IF(CLOSE>=SAR(N,N1,N2),SAR(N,N1,N2),
DRAWNULL),COLORRED,LINETHICK1,NODRAW;
空仓:IF(CLOSE<=SAR(N,N1,N2),SAR(N,N1,N2),
DRAWNULL),COLORGRAY,LINETHICK1,NODRAW;
获利%:WINNER(CLOSE)*100,COLORYELLOW,NODRAW;
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,箱顶,箱顶,4,0),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=1,箱顶,'箱顶'),COLORYELLOW,NODRAW;
HSH:=BARSLAST(HSF);
箱底:=REF(LOW,HSH) ,COLOR009900,NODRAW;
STICKLINE(1,箱底,箱底,4,0),COLOR009900;
DRAWTEXT(CURRBARSCOUNT=1,箱底,'箱底'),COLORYELLOW,NODRAW;
中枢:=(箱顶+箱底)/2;
STICKLINE(1,中枢,中枢,4,0),COLORGRAY,NODRAW;
DRAWTEXT(CURRBARSCOUNT=1,中枢,'中枢'),COLORYELLOW,NODRAW;
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; 学习学习再学习! 谢谢楼主的分享! 学习学习再学习! 好好学习天天向上 :):):);P;P;P 感谢您的分享,好好学习,天天上涨!2023/6/27
页:
[1]