欢迎访问 外汇EA下载与MT4/MT5自动交易资源 - 聚合外汇EA、黄金EA、量化交易工具与自动化交易实战内容。
登录 注册

Forex2K10 EA - 止损订单交易 (Forex2K10 EA - Stop Orders Trading)

author emer | 0 人阅读 | 0 人评论 |
来源:ForexFactory · Trading Systems · 原帖链接
原帖作者:Forex2k10
发布日期:First Post: Oct 19, 2011 11:43pm
Hey Guys,

I've been a long time reader of forex factory but haven't contributed much in the past. I thought I'd share an EA I've recently revisited that I put together for a friend a while back. I'm hoping forum members here can look at it with a discerning eye and either suggest modifications or make modifications themselves and share in whatever may be the outcome of the EA.

With that said, onto the EA and strategy. The strategy may not be all that revolutionary (and that can probably be said for the EA as well) but it's based on new highs/lows depending on timeframe, etc. When a new high/low is detected stop orders are placed 15 pips away hoping to take advantage of the price changes. Originally, my friend and I intended to use on time frames H1 and above, but the more I fool around and modify the EA the more I find it may be useful on lower timeframes as well. We've found it to work alright on most pairs, obviously it is going to be spread sensitive and
_________________________________________________________________

The EA has two sorts of cycles, the global one , which stops when the SL or TP in account currency is reached , and the local one when we set the stop order and drag it with the price which stops when the order is filled.

nbSteps allows you to fine tune the sl/tp size so that you reach your value if you have nbSteps straight losses/wins - essentially stopping the EA

resetTriggerInPips - Size of the move the EA waits for after the global cycle is done

forgetTriggerInPips - Size of the move the EA waits for after the local cycle is done.

*SL and TP are in dollars right now - Also are hidden.
_________________________________________________________________

Some things I'd like to do (but not sure if it increases the profitability of the strategy):

- In order to capitalize on the new highs/lows I've found it necessary to use quasi-martingale lot sizing - I never like using martingale pricing but haven't found a way to make this work (well) otherwise

- Increase functionality, I haven't tried but have contemplated adding a hours function and variables to permit the EA only to trade between certain hours.

Any thoughts, suggestions, modifications, criticisms, are highly welcomed.

I apologize in advance for the lack of useful code comments and general sloppy coding...

原帖附件 (1)

🔐
请登录后参与评论
注册满12小时后评论,即可解锁附件下载
立即登录