您好,以下是文华WH6的两个期货多空突破指标源码:
源码一
HH8:=HHV(HIGH,1)/5+HHV(HIGH,2)/5+HHV(HIGH,2)/5+HHV(HIGH,5)/5+HHV(HIGH,8)/5;
LL8:=LLV(LOW,1)/5+LLV(LOW,2)/5+LLV(LOW,2)/5+LLV(LOW,5)/5+LLV(LOW,8)/5;
N:=33;
MAH:=EMA2(HIGH,N);
MAL:=EMA2(LOW,N);
MAC:=EMA2(CLOSE,N);
X1:=BARSLAST(C>MAH);
X2:=BARSLAST(C< MAL);
DRAWTEXT(CROSS(X2,X1),LL8,'D'),COLORYELLOW,FONTSIZE22,VALIGN0;
DRAWTEXT(CROSSDOWN(X2,X1),HH8,'K'),COLORGREEN,FONTSIZE22;
DRAWKLINE1(H,O,L,C);
源码二
SHORT_MA := MA(CLOSE, 13);
LONG_MA := MA(CLOSE, 26);
BOLL_UPPER := MA(CLOSE, 20) + 2 * STD(CLOSE, 20);
BOLL_LOWER := MA(CLOSE, 20) - 2 * STD(CLOSE, 20);
DIFF := EMA(CLOSE, 12) - EMA(CLOSE, 26);
DEA := EMA(DIFF, 9);
MACD_BAR := 2 * (DIFF - DEA);
BUY_SIGNAL := CROSS(SHORT_MA, LONG_MA) AND CLOSE > BOLL_UPPER;
SELL_SIGNAL := CROSS(LONG_MA, SHORT_MA) AND CLOSE < BOLL_LOWER;
DRAWICON(BUY_SIGNAL, LOW * 0.98, 1);
DRAWICON(SELL_SIGNAL, HIGH * 1.02, 2);
DRAWTEXT(BUY_SIGNAL, LOW * 0.97, '买入');
DRAWTEXT(SELL_SIGNAL, HIGH * 1.03, '卖出');
期货交易,最难的就是看清方向并控制失误。这一年,我通过不断优化,实盘验证了一套完善的多空指标系统,帮助我精准识别信号,避开了过去容易犯的错误。现在,这套系统已经非常成熟,可以分享给更多和我一样在市场努力的朋友。如果你想更快找到交易方向,加我微信手把手教你安装使用,尽量让你早日掌握高效方法。
发布于2025-2-3 19:58 北京


分享
注册
1分钟入驻>
关注/提问
18342365994
秒答
搜索更多类似问题 >
电话咨询
+微信


