【资料名称】:当日调整区间指标介绍【资料描述】:
当日调整区间指标
自己写的,针对近几日的上涨和下跌区间进行标注,开盘的区间进行标注,3%,5%,7%涨跌幅阶梯提醒,最新价的地方标注出近5日的振幅。
借此可以判定当日是否异常的简单判定。
{FSKY 分时K线引用}
今量:VOL;
昨量:REF(VOL,1);
前量:REF(VOL,2);
昨开:REF(O,1);
昨收:REF(C,1);
前开:REF(O,2);
前收:REF(C,2);
ZF:=(H-L)/REF(C,1)*100;
UF:=(H-REF(C,1))/REF(C,1)*100;
DF:=(L-REF(C,1))/REF(C,1)*100;
KZF:=(O-REF(C,1))/REF(C,1)*100;
TT:=3;
振幅:REF(MA(ZF,TT),1);
涨幅:REF(SUM(IF(UF>0,UF,0),TT)/COUNT(UF>0,TT),1);
跌幅:REF(SUM(IF(DF<0,DF,0),TT)/COUNT(DF<0,TT),1);
开盘涨幅:REF(SUM(IF(KZF>0,KZF,0),TT)/COUNT(KZF>0,TT),1);
开盘跌幅:REF(SUM(IF(KZF<0,KZF,0),TT)/COUNT(KZF<0,TT),1);
{ZF:=(H-L)/L*100;
UF:=(H-REF(C,1))/REF(C,1)*100;
DF:=(L-REF(C,1))/REF(C,1)*100;
KZF:=(O-REF(C,1))/REF(C,1)*100;
振幅:MA(ZF,3);
涨幅:MA(IF(UF>0,UF,0),3);
跌幅:MA(IF(DF<0,DF,0),3);
开盘涨幅:MA(IF(KZF>0,KZF,0),3);
开盘跌幅:MA(IF(KZF<0,KZF,0),3);};
指标源码:
JX:AMO/VOL/100,COLORYELLOW;
ZS:=FSKY.昨收#DAY;
P:=ZS;
YK:=(C-P)/P*100,NODRAW;
A1:=3;
A2:=5;
A3:=7;
F3:=FSKY.昨收#DAY*(1+A3/100);
F2:=FSKY.昨收#DAY*(1+A2/100);
F1:=FSKY.昨收#DAY*(1+A1/100);
FF1:=FSKY.昨收#DAY*(1-A1/100);
FF2:=FSKY.昨收#DAY*(1-A2/100);
FF3:=FSKY.昨收#DAY*(1-A3/100);
STICKLINE(YK>=A3 AND LLV(L,BARSCOUNT(L))<F3,F3*0.995,F3,2,1),COLORRED;
STICKLINE(YK>=A2 AND LLV(L,BARSCOUNT(L))<F2,F2*0.995,F2,2,1),COLORYELLOW;
STICKLINE(YK>=A1 AND LLV(L,BARSCOUNT(L))<F1,F1*0.995,F1,2,1),COLORGREEN;
STICKLINE(YK<=(-A1) AND HHV(H,BARSCOUNT(H))>FF1,FF1*1.005,FF1,2,1),COLORGREEN;
STICKLINE(YK<=(-A2) AND HHV(H,BARSCOUNT(H))>FF2,FF2*1.005,FF2,2,1),COLORYELLOW;
STICKLINE(YK<=(-A3) AND HHV(H,BARSCOUNT(H))>FF3,FF3*1.005,FF3,2,1),COLORRED;
CC:=O,COLORWHITE;
UTIP:=IF(YK>A3,'U清仓区域',IF(YK>A2,'U准备换仓',IF(YK>A1,'U准备加换仓','U观察区')));
DTIP:=IF(YK<(-A3),'D反弹坚决抄底',IF(YK<(-A2),'D抄底或卖出下单中',IF(YK<(-A1),'D准备抄底或卖出','D观察区')));
TIP:=IF(YK>0,UTIP,DTIP);
DRAWTEXT(ISLASTBAR,C,STRCAT(TIP,STRCAT(CON2STR(YK,2),'%')));
ZF:=(HHV(H,240)-LLV(L,240))/ZS*100;
UF:=(HHV(H,240)-ZS)/ZS*100;
DF:=(LLV(L,240)-ZS)/ZS*100;
KZF:=(REF(O,240)-ZS)/ZS*100;
STICKLINE(BARSCOUNT(C)=1,(100+FSKY.开盘跌幅#DAY)*ZS/100,(100+FSKY.开盘涨幅#DAY)*ZS/100,1,1),COLORYELLOW;
STICKLINE(BARSCOUNT(C)=3,ZS,(100+FSKY.涨幅#DAY)*ZS/100,2,1),COLORLIRED;
STICKLINE(BARSCOUNT(C)=3,ZS,(100+FSKY.跌幅#DAY)*ZS/100,2,1),COLORGREEN;
STICKLINE(ISLASTBAR,LLV(L,240),MIN((100+FSKY.振幅#DAY)*LLV(L,240)/100,(100+10)*ZS/100),10,1),COLORLIGRAY;
gd31087
【下载地址隐藏】: 点:回复可见地址