以下是同花顺obos超买超卖指标源码和截图
同花顺obos超买超卖指标源码:
上线:=SMA(C,6.5,1);
下线:=SMA(C,13.5,1);
上线1:=SMA(C,3,1);
下线1:=SMA(C,8,1);
STICKLINE(上线 下线,上线,下线,2.5,0),COLORRED,LINETHICK2;
STICKLINE(下线 上线,上线,下线,2.5,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(上线,下线),LOW*0.95,'↑全仓'),COLOR00FF00;
DRAWTEXT(CROSS(下线1,上线1),H*1.02,''),COLORYELLOW;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:=BBI+3*STD(BBI,13),LINETHICK2;
DWN:=BBI-3*STD(BBI,13);
安全:=MA(CLOSE,60),LINETHICK2;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(82,RSI),HIGH*1.02,'减仓'),COLORFF9966,LINETHICK2;
A7:=(2*C+H+L)/4;
操作:MA(A7,5),LINETHICK2;
操作1:=MA(A7,5)*1.03,LINETHICK2;
操作2:=MA(A7,5)*0.97,LINETHICK2;
VAR1:LLV(A7,21);
VAR2:HHV(A7,21);
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),8)/8 6/10ANDVOL =1.5*MA(VOL,5)AND
COUNT(SK =SD,3)ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW*0.98,'买进'),COLOR0099FF;
DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),13)/13 6/10AND
COUNT(SK SD,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE =OPEN,4)AND
REF(CLOSE OPEN,3)ANDREF(CLOSE OPEN,2)ANDREF(OPEN CLOSE,1)AND
OPEN REF(CLOSE,1),1,0),LOW*0.98,'买进'),COLORYELLOW;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE DANDVOL/240 MA(VOL,5)/240ANDCLOSE REF(CLOSE,1)*1.08
ANDCLOSE MA(CLOSE,13)*1.3,1,0),LOW*0.98,''),COLORYELLOW;
超买:3.2,COLORYELLOW;
超卖:0.5,COLORYELLOW;
最小值:=LLV(LOW,10);
最大值:=HHV(HIGH,25);
波动线:=EMA((CLOSE-最小值)/(最大值-最小值)*4,4);
平:EMA(波动线,3);
信息:=平均线 =REF(平均线,1);
走强:=CLOSE MA(CLOSE,20)ANDCLOSE MA(CLOSE,5);
走弱:=CLOSE MA(CLOSE,10)ANDCLOSE MA(CLOSE,5);
量:=VOL MA(VOL,5);
STICKLINE(平均线 =REF(平均线,1),波动线,REF(波动线,1),2,0),COLORRED;
STICKLINE(平均线 REF(平均线,1),波动线,REF(波动线,1),2,0),COLORGREEN;
D:=信息=1ANDREF(信息,1)=0AND(REF(信息,2)+REF(信息,3)=0)AND平均线
S:=信息=1ANDREF(信息,1)=0AND(REF(信息,2)+REF(信息,3)=0)AND走强=1ANDREF(走强,1)=0AND量=1;
DD:=平均线 2AND(信息=0ANDREF(信息,1)=1)AND(REF(信息,2)+REF(信息,3)=2);
TZ:=(信息=0ANDREF(信息,1)=1)AND(REF(信息,2)+REF(信息,3)=2)AND走弱=1AND平均线
DRAWTEXT(D=1,1.75,'极底'),COLORRED;
DRAWTEXT(S=1,平均线,'升');
DRAWTEXT(DD=1,平均线,'顶');
DRAWTEXT(TZ=1,平均线,'下');
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE-LC),0),5,1)/SMA(ABS((CLOSE-LC)),5,1))*100);
TR1:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10);
HD:=(HIGH-REF(HIGH,1));
LD:=(REF(LOW,1)-LOW);
DMP:=SUM(IF(((HD 0)AND(HD LD)),HD,0),10);
DMM:=SUM(IF(((LD 0)AND(LD HD)),LD,0),10);
PDI:=((DMP*100)/TR1);
MDI:=((DMM*100)/TR1);
ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI))*100),5);
AV:=(RSI5+ADX);
WR10:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));
ZCJL:=(RSI5-WR10);
最佳买入:=(AV+ZCJL);
最佳买入:=IF(CROSS(最佳买入,0),1,0);
VAR5:=SMA(最佳买入选股,3,1);
VAR6:=SMA(VAR5,3,1);
VAR7:=SMA(VAR6,3,1);
建仓买点:=IF(CROSS(VAR6,VAR7)AND(VAR6 40),5,0);
DRAWTEXT(建仓买点,0.75,'建仓'),COLORRED;
VAR8:=REF(CLOSE,2);
会员:=SMA(MAX(CLOSE-VAR8,0),7,1)/SMA(ABS(CLOSE-VAR8),7,1)*100;
逃亡:=IF(会员 REF(会员,1)AND会员 79,会员,0);
DRAWTEXT(逃亡,3.1,'逃'),COLORYELLOW;
DRAWTEXT(88 0ANDREF(O,1)/REF(C,1) 1.04ANDREF(L,1) =688ANDO REF(C,1)ANDC REF(O,1)ANDC/O =1.01,1,'见底'),COLORLIRED;
DRAWTEXT(C-O =0ANDO/L 1.05ANDL =LLV(L,20),1,'绝底'),COLORRED;
VAR11:=REF(LOW,1);
VAR12:=SMA(ABS(LOW-VAR11),3,1)/SMA(MAX(LOW-VAR11,0),3,1)*100;
VAR13:=EMA(IF(CLOSE*1.2,VAR12*10,VAR12/10),3);
VAR14:=LLV(LOW,38);
VAR15:=HHV(VAR13,38);
VAR16:=IF(LLV(LOW,90),1,0);
VAR17:=EMA(IF(LOW =VAR14,(VAR13+VAR15*2)/2,0),3)/618*VAR16;
CDXS:=HHV(VAR17,0)/2.6;
STICKLINE(VAR17,0.53,VAR17/CDXS+0.53,1,0),COLORWHITE;
HUA:=(CLOSE-LLV(LOW,14))/(HHV(HIGH,14)-LLV(LOW,14))*1.2*CLOSE;
NV1:=EMA(HUA,4);
NV2:=EMA(HUA,8);
DRAWICON(CROSS(NV1,NV2)ANDCLOSE/OPEN 1.05,0.5,1);
DRAWICON(CROSS(NV2,NV1)ANDCOUNT(CROSS(NV1,NV2)ANDCLOSE/OPEN 1.05,20),3.2,2);
HUA2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),16,2)/SMA(ABS(CLOSE/REF(CLOSE,1)),16,2)*100;
XIAN:=SMA(HUA2,3,1);
NV3:=SMA(XIAN,3,1);
XINV:=3*XIAN-2*NV3;
买入条件:=CROSS(XINV,NV3);
卖出条件:=CROSS(NV3,XINV);
DRAWICON(卖出条件,3.3,2),COLORYELLOW;
DRAWICON(买入条件,0.4,222),COLORWHITE;
HXN:=IF(CLOSE/REF(CLOSE,1) 1.05ANDHIGH/CLOSE 1.01ANDIF(CLOSE REF(CLOSE,1),88,0) 0,91,0);
DRAWTEXT(HXN 90ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1)ANDCOUNT(HXN 90,30)=1,平均线-0.25,'见涨'),,COLORLIRED;
HXJZ:=MA((2*CLOSE+HIGH+LOW)/4,5);
BZTD:=HXJZ*89/100;
DRAWTEXT(CROSS(LOW,BZTD),1.25,'必涨'),COLORRED;
花:=EMA(SLOPE(1,1)+C,3),COLORRED;
女:=EMA(SLOPE(1,1)+C,7),COLORBLUE;
STICKLINE(花 女,0.5,0.53,12,0),COLORRED;
STICKLINE(花 =女,0.5,0.53,12,0),COLORGREEN;
RSI1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100;
相对强弱:=0.5*RSI1+0.31*RSI2+0.19*RSI3;
WAVE1:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),3,1);
WAVE2:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),5,1);
WAVE3:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),8,1);
:=0.5*WAVE1+0.31*WAVE2+0.19*WAVE3;
风险系数:=0.5*相对强弱+0.5*短线波段,COLORYELLOW;
CD1:=IF(风险系数 20ANDCLOSE OPEN,1,0);
CD2:=IF(风险系数 20ANDLOW =REF(LOW,1)ANDCLOSE LOW,1,0);
CD3:=IF(REF(风险系数,1) 20AND风险系数 REF(风险系数,1),1,0);
SIGNALBUY:=(CD1=1ORCD2=1ORCD3=1);
CD:=(SIGNALBUYANDCOUNT(SIGNALBUY,3)=1);
DRAWTEXT(CD,0.5,'抄底'),COLOR0099FF;
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA:=EMA(DIF,9);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,3);
DDR:=SMA(K,9,3);
GZ:=CROSS(DIF,DEA)ANDCROSS(K,DDR);
DRAWTEXT(GZ,2,''),COLOR0099FF;
同花顺obos超买超卖指标截图