通达信OSCMACD指标公式,通达信恭喜发财指标公式
admin888
|通达信OSCMACD指标公式,通达信恭喜发财指标公式
通达信OSCMACD指标公式
ma1:=MA((HIGH+LOW)/2,5);
MA2:=MA((HIGH+LOW)/2,35);
OSC:=MA1-MA2,LINETHICK0,COLORstICK;
OSCE:=ema(OSC,1);
dif: EMA(OSCE,12) - EMA(OSCE,26);
bbdIF:=DIF-REF(DIF,1);
DEA : EMA(DIF,9);
DRAWBAND(DIF,RGB(255,105,180),DEA,RGB(34,139,34));
BBDEA:=DEA-REF(DEA,1);
macd: 2*(DIF-DEA), COLORSTICK;
STICKLINE(MacD0,0,MACD,2,0),COLORFFFF00;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0),COLOR0099FF;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,2,0),COLORRED;
0,COLORFF8855,LINETHICK2;
UPO:=IF(DIF>=0,DIF,DRAWNULL);
DNO:=IF(DIF<=0,DIF,DRAWNULL);
UP:EMA(UPO,35+5/1.618),COLORFF9900,LINETHICK2;
DN:EMA(DNO,35+5/1.618),COLORFF9900,LINETHICK2;
DIFF3 := EMA(OSCE,12) - EMA(OSCE,26);
DEA3 := EMA(DIFF3,9);
MACD3 := 2*(DIFF3-DEA3), COLORSTICK;
JC := DEA3-DIFF3;
绿柱面积:=IF(MACD3<0,SUM(MACD3,BArslAST(JC<0)),0);
红柱面积:=IF(MACD3>0,SUM(MACD3,BARSLAST(JC>0)),0);
本次最低价:=LLV(L,BARSLAST(JC<0));
本次最高价:=HHV(H,BARSLAST(JC>0));
X1:=IF (MACD3<0,BARSLAST(crOSS(DIFF3,DEA3)),0);
前次绿柱面积:=REF(绿柱面积,X1+1);
前次最低价:=REF(本次最低价,X1+1);
Y1:=IF((绿柱面积<0 AND Abs(绿柱面积)
RS1:= MACD3<0 AND REF(MACD3,1)<0 AND C<前次最低价AND ABS(绿柱面积)
底背驰:= IF (CROSS(DIFF3,DEA3),REF(Y1,1),0);
DRAWTEXT(底背驰,0.08,'积底背'),COLOR00FFFF;
STICKLINE(底背驰,0,0.08,4,0),COLOR0000FF;
DRAWICON(底背驰,0,23),COLORYELLOW;
X2:=IF (MACD3>0,BARSLAST(CROSS(DEA3,DIFF3)),0);
前次红柱面积:=REF(红柱面积,X2+1);
前次最高价:=REF(本次最高价,X2+1);
Y2:=IF((红柱面积>0 AND 红柱面积<前次红柱面积 AND 本次最高价>前次最高价 ),1,0);
RS2:= MACD3>0 AND REF(MACD3,1)>0 AND C>前次最高价 AND ABS(红柱面积)
顶背驰:= IF (CROSS(DEA3,DIFF3),REF(Y2,1),0);
DRAWICON(顶背驰,0,19),COLOR00FF00;
STICKLINE(顶背驰,0,-0.08,4,0),COLOR00FF00;
DRAWTEXT(顶背驰,-0.08,'积顶背'),COLORFF0000;
通达信恭喜发财指标公式
VAR1:=SUM(maX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);
VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);
B:zig(3,50/5)*100,COLORWHITE;
G:MA(B,2),COLORYELLOW;
D:=crOSS(B,G)*1000,COLORRED;
W:=CROSS(G,B)*1000,COLORBLUE;
E:=REF(INDEXC,1);
F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);
VAR10:=F AND F<8;
VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:=SMA(VAR11,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR13 AND VAR13<20;
MM:=A AND D AND VAR10 AND VAR14 ;
DRAWTEXT(W=1000,B*1.05,'卖' ),COLOR00FF00;
DRAWTEXT(D=1000,B*1.05,'买'),COLORRED;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。