16评论

1收藏

MT4 dual thrust系统原形源码[MT4公式]

avatar admin | 5505 人阅读 | 16 人评论 | 2013-06-11

//dual thrust系统原形源码
Inputs: K1(.5),K2(.5),Mday(1),Nday(1);
Vars: BuyRange(0), SellRange(0);
Vars: BuyTrig(0),SellTrig(0);
Vars: HH(0),LL(0),HC(0),LC(0);
If CurrentBar > 1 Then Begin
HH = Highest(High,Mday);
HC = Highest(Close,Mday);
LL = Lowest(Low,Mday);
LC = Lowest(Close,Mday);
If (HH - LC) >= (HC - LL) Then Begin
SellRange = HH - LC;
End Else Begin
SellRange = HC - LL;
End;
HH = Highest(High,Nday);
HC = Highest(Close,Nday);
LL = Lowest(Low,Nday);
LC = Lowest(Close,Nday);
If (HH - LC) >= (HC - LL) Then Begin
BuyRange = HH - LC;
End Else Begin
BuyRange = HC - LL;
End;
BuyTrig = K1*BuyRange;
SellTrig = K2*SellRange;
If MarketPosition = 0 Then Begin
Buy at Open of next bar + BuyTrig Stop;
Sell at Open of next bar - SellTrig Stop;
End;
If MarketPosition = -1 Then Begin
Buy at Open of next bar + Buytrig Stop;
End;
If MarketPosition = 1 Then Begin
Sell at Open of next bar - SellTrig Stop;
End;
End;
""
还没有人打赏,支持一下

评论|共 16 个

黄生

发表于 2013-6-12 09:17:50 | 显示全部楼层

这是什么语法?[s:132][s:132][s:132][s:132]

g5y7j8i9

发表于 2014-11-17 02:12:02 | 显示全部楼层

看看怎么样

绝不低头

发表于 2014-11-27 10:19:07 | 显示全部楼层

赚钱,赚积分。顶....

jun6237962

发表于 2014-12-6 03:28:03 | 显示全部楼层

谢谢分享!!!!!

yiweiru

发表于 2014-12-6 05:14:44 | 显示全部楼层

看看什么EA,,,

christmas

发表于 2014-12-6 06:35:48 | 显示全部楼层

xiexiefenxiang

`小玲/^

发表于 2018-8-31 20:27:59 | 显示全部楼层

过来看看的

lametxabo

发表于 2020-6-8 11:13:08 | 显示全部楼层

没看完~~~~~~ 先顶,好同志

鞋底拍蟑螂

发表于 2020-6-18 21:36:43 | 显示全部楼层

路过,支持一下啦

12下一页
您需要登录后才可以回帖 登录 | 注册 微信登录

EA之家评论守则