飞狐九散人MACD主图指标公式,飞狐奇妙支撑主图指标公式
admin888
|飞狐九散人MACD主图指标公式,飞狐奇妙支撑主图指标公式
飞狐九散人MACD主图指标公式
//macd基本定义:
EM12:=(emaC,12));
EM26:=(Ema(C,26));
difF:=EM12-EM26;
DEA:=EMA(DIFF,9);
barz:=2*(DIFF-DEA);
//判断ss:=DIFf>=0;//水上,
多头排列sx:=DIFf<0;//水下,
空头排列hz:=barz>=0;//dif峰阳面,柱线红
lz:=barz<0;//dif峰阴面,柱线绿
//反映到主图:
PARTLINE(ss,EM26),COLOR0000ff,LINETHICK2;
PARTLINE(sx,EM26),COLORff0000,LINETHICK2;
PARTLINE(hz,EM12),COLORyellow,LINETHICK2;
PARTLINE(lz,EM12),COLORffff00,LINETHICK2;
//附加部件//
缺口DRAWTEXT(l>REF(H,1),REF(H,1),'←<'),COLORRED;//
DRAWTEXT(SYSPARAM(2)=BARSCOUNT(C),sysparam(4),'[
版块]:'+BLKNAME),Color00A600;
飞狐奇妙支撑主图指标公式
N:=5;
P:=13;
DRAWGBK(1,COLORRGB(265,0,0),COLORRGB(265,285,0),0);
AA1:=Wma(CLOSE,2);
BB1:=ema(AA1,2);
A:=MA(BB1,3);
AA2:=WMA((HIGH+CLOSE+OPEN)/3,18);
DD3:=A>=AA2 AND CLOSE>AA2;
DD4:=A
DD5:=A>AA2;
stICKLINE((DD4 OR DD5) AND OPEN<=CLOSE,HIGH,LOW,0.5,0),colorCC99;
STICKLINE((DD4 OR DD5) AND OPEN<=CLOSE,CLOSE,OPEN,7,0),colorCC99;
STICKLINE((DD4 OR DD5) AND OPEN>=CLOSE,HIGH,LOW,0.5,0),color3F8C3A;
STICKLINE((DD4 OR DD5) AND OPEN>=CLOSE,CLOSE,OPEN,7,0),color3F8C3A;
STICKLINE((DD3 OR CLOSE>AA2) AND OPEN<=CLOSE,CLOSE,OPEN,7,0),colorFF;
STICKLINE((DD3 OR CLOSE>AA2) AND OPEN<=CLOSE,HIGH,LOW,0.5,0),colorFF;
STICKLINE((DD3 OR CLOSE>AA2) AND OPEN>=CLOSE,CLOSE,OPEN,7,0),colorFF33FF;
STICKLINE((DD3 OR CLOSE>AA2) AND OPEN>=CLOSE,HIGH,LOW,0.5,0),colorFF33FF;
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
KK:=SMA(RSV1,3,1);
DD:=SMA(KK,3,1);
JJ:=3*KK-2*DD;
M:=BArslAST(OSS(DD,JJ));
G:=REF(HIGH,M);
撑压:STICKLINE(G,G,G,10,1),LINETHICK2,colorFFFF;
HH:=HIGH;
LL:=LOW;
top:=HIGH;
BOT:=LOW;
XX[1]:=1;
KK:=1;
FOR I=1 TO DATacOUNT DO BEGINIF XX[I]=1 THEN BEGINTOP[I]:=HH[I];
END;
IF XX[I-1]=1 THEN BEGINIF HH[I]>TOP[I-1] THEN BEGINTOP[I]:=HH[I];
XX[I]:=1;
END;ELSE BEGIN
TOP[I]:=TOP[I-1];
XX[I]:=2;
END;
END;
IF XX[I-1]=2 THEN BEGINIF HH[I]>TOP[I-1] THEN BEGINTOP[I]:=HH[I];
XX[I]:=1;
END;ELSE BEGIN
TOP[I]:=TOP[I-1];
BOT[I]:=LL[I];
XX[I]:=3;
END;
END;
IF XX[I-1]=3 THEN BEGINTOP[I]:=TOP[I-1];IF LL[I]
END;ELSE BEGIN
BOT[I]:=BOT[I-1];
XX[I]:=4;
END;
END;
IF XX[I-1]=4 THEN BEGINTOP[I]:=TOP[I-1];
IF LL[I]
XX[I]:=3;
END;ELSE BEGIN
BOT[I]:=BOT[I-1];
XX[I]:=5;
END;
END;
IF XX[I-1]=5 THEN BEGIN
IF LL[I]
TOP[I]:=HH[I];
BOT[I]:=HH[I];
XX[I]:=1;
END;ELSE BEGIN
BOT[I]:=BOT[I-1];
TOP[I]:=TOP[I-1];
XX[I]:=5;
END;
END;
END;
FOR J=1 TO DATACOUNT DO BEGINIF XX[J]=5 AND XX[J-1]=4 THEN BEGINFOR K=J-1 DOWNTO J-KK DO BEGINTOP[K]:=TOP[J];
BOT[K]:=BOT[J];
END;
END;
IF XX[J-1]=5 AND XX[J]=1 THEN
KK:=0;
KK:=KK+1;
END;
JJ:=BARSLAST(TOP<>REF(TOP,1));
上沿:STICKLINE(TOP,TOP,TOP,10,1),colorFFFF00;
DRAWNUMBER(TOP<>REF(TOP,1),REF(TOP,JJ)*1.015,TOP,2),colorFFFF00;
下沿:STICKLINE(BOT,BOT,BOT,10,1),colorFF0000;
DRAWNUMBER(TOP<>REF(TOP,1),REF(BOT,JJ)*0.99,BOT,2),colorFF0000;
X1:=REF(CLOSE,1);
X2:=(SMA(MAX(CLOSE-X1,0),N,1))/(SMA(Abs(CLOSE-X1),N,1))*100;
X3:=(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-50)*1.032+50;
X4:=(X2+X3)/2;
奇妙:CLOSE+(X4/50-1)*(MA(CLOSE,30)/20)*P,PRECISION2,color98FF;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。