大智慧钻石薛氏主图指标公式

[复制链接]
查看138 | 回复0 | 2021-8-21 14:00:44 | 显示全部楼层 |阅读模式

N:=5;
BU:=BARSLAST(CLOSE=HHV(CLOSE,N));
SE:=BARSLAST(CLOSE=LLV(CLOSE,N));
KK1:=SE;
KK2:=BU;
LM1:=SE;
LM2:=BU;
OK:=KK1>KK2 AND LM1>LM2;
OK1:=KK1>KK2 AND LM1<LM2;
NOK:=KK2>KK1 AND LM2>LM1;
NOK1:=KK2>KK1 AND LM2<LM1;
STICKLINE(OK1,CLOSE,OPEN,8,0),colorFF0000;
STICKLINE(OK1,HIGH,LOW,0,0),colorFF0000;
STICKLINE(OK,CLOSE,OPEN,8,0),color0000FF;
STICKLINE(OK,HIGH,LOW,0,0),color0000FF;
STICKLINE(NOK,CLOSE,OPEN,8,0),colorFF0000;
STICKLINE(NOK,HIGH,LOW,0,0),colorFF0000;
STICKLINE(NOK1,CLOSE,OPEN,8,0),color0000FF;
STICKLINE(NOK1,HIGH,LOW,0,0),color0000FF;
DRAWICON(CROSS(KK1,KK2),OPEN*0.98,7);
DRAWICON(CROSS(KK2,KK1),OPEN*1.04,8);
DRAWTEXT(CROSS(KK1,KK2),OPEN*0.95,'买'),colorFFFFFF;
DRAWTEXT(CROSS(KK2,KK1),OPEN*1.065,'卖'),color00FFFF;
M1:WMA(CLOSE,14),LINETHICK2,color0000FF;
M2:=WMA(M1,5);
M3:IF(M1>M2,M2,M1),LINETHICK2,color00FF00;
M2,LINETHICK2,color000001;
X:=EMA(SLOPE(CLOSE,21)*20+CLOSE,68);
Y:=EMA(CLOSE,10);
LL:=REF(CLOSE,2);
MM:=(SMA(MAX(CLOSE-LL,0),6,1))/(SMA(ABS(CLOSE-LL),6,1))*100;
DB:=IF(MM<REF(MM,1) AND MM>79,MM,0);
{开盘后预测今日股价高低}
F:=(ref(high,1)+ref(low,1)+2*ref(close,1))/4;
今日次高:=2*F-ref(LOW,1);
今日次低:=2*F-ref(HIGH,1);
今日最高:=F+ref(HIGH,1)-ref(LOW,1);
今日最低:=F-(ref(HIGH,1)-ref(LOW,1));
DRAWTEXTabs(20,0,'●今日开盘股价预测,仅供参考'),colorFFBBCC;
DRAWTEXTabs(20,15,'●今日最高=:'+NUMTOSTR(今日最高)+''),colorFF00FF;
DRAWTEXTabs(20,30,'■今日次高=:'+NUMTOSTR(今日次高)+''),color0000FF;
DRAWTEXTabs(20,45,'■今日分割位=:'+NUMTOSTR(F)+''),color00FFFF;
DRAWTEXTabs(20,60,'■今日次低=:'+NUMTOSTR(今日次低)+''),colorFF0000;
DRAWTEXTabs(20,75,'●今日最低=:'+NUMTOSTR(今日最低)+''),color00FF00;
{薛斯通道}
AHC1:=CLOSE*VOL;
AHC2:=EMA((EMA(AHC1,3)/EMA(VOL,3)+EMA(AHC1,6)/EMA(VOL,6)+EMA(AHC1,12)/EMA(VOL,12)+EMA(AHC1,24)/EMA(VOL,24))/4,13);
SUP:1.06*AHC2;
SDN:AHC2*0.94;
AHC3:=EMA(CLOSE,9);
LUP:EMA(AHC3*1.14,5);
LDN:EMA(AHC3*0.86,5);
DRAWTEXT( BARSTATUS=2,SUP,'--短上通道'),COLORf0fFF0;
DRAWTEXT( BARSTATUS=2,SDN,'--短下通道'),COLORf0f000;
DRAWTEXT( BARSTATUS=2,LUP,'--长上通道'),COLORf0f000;
DRAWTEXT( BARSTATUS=2,LDN,'--长下通道'),COLORf0f000;
RCC:=DYNAINFO(3);
S2:=SMA(C,3,1);
S6:=SMA(C,5,1);
DK:=2*(S2-S6);
STICKLINE(DK>0,RCC,RCC+DK,0,1),COLORRED;
STICKLINE(DK<0,RCC,RCC+DK,0,1),COLORCYAN;
黄金线:(EMA(C,18)),POINTDOT;

202108211313.gif

202108211313.gif

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则