网站首页 > 飞狐公式 正文
飞狐奇妙支撑主图指标公式
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(CROSS(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 BEGIN
IF XX[I]=1 THEN BEGIN
TOP[I]:=HH[I];
END;
IF XX[I-1]=1 THEN BEGIN
IF HH[I]>TOP[I-1] THEN BEGIN
TOP[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 BEGIN
IF HH[I]>TOP[I-1] THEN BEGIN
TOP[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 BEGIN
TOP[I]:=TOP[I-1];
IF LL[I]
BOT[I]:=LL[I];
XX[I]:=3;
END;ELSE BEGIN
BOT[I]:=BOT[I-1];
XX[I]:=4;
END;
END;
IF XX[I-1]=4 THEN BEGIN
TOP[I]:=TOP[I-1];
IF LL[I]
BOT[I]:=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-1] THEN BEGIN
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 BEGIN
IF XX[J]=5 AND XX[J-1]=4 THEN BEGIN
FOR K=J-1 DOWNTO J-KK DO BEGIN
TOP[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; >股票指标网更多精彩内容,请关注公众号:实盘操手
其他说明
1、在下载过程遇到问题,请您 联系客服:QQ:2180737354 或 微信:xxs008000(常用) 备用微信:bsqj88886(常用号不能用的情况再加),我们会在第一时间修复和反馈。
2、本站所提供的股票指标等资源请细看说明,适合自己再购买下载,指标不包安装,不懂的人切勿购买,新手勿扰。所有指标仅供参考学习交流,没稳赚的指标,赢亏自负,如果觉着指标好用请支持正版,否则产生的一切后果将由下载用户自行承担,有部分股票指标资源为网上收集或仿制而来,若模板侵犯了您的合法权益,请来联系我们,我们会及时删除,给您带来的不便,我们深表歉意!
⇒⇒⇒点击加入通达信指标公式交流群QQ群
猜你喜欢
- 2023-10-17 屏幕自适应定点均线(飞狐)
- 2023-10-17 主力轨迹+庄家出现+XG(飞狐)
- 2023-10-17 安全投机(飞狐)
- 2023-10-17 共振买卖(飞狐)
- 2023-10-17 江恩轮中轮(新画法)(飞狐)
- 2023-10-17 新版KDJ飞升马(飞狐)
- 2023-10-17 七剑下天山(飞狐)
- 2023-10-17 OSC (艾略特震荡器)(飞狐)
- 2023-10-17 买入安全区远离危险区(飞狐)
- 2023-10-17 熊市好用的选股(飞狐)