Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
how do you go exactly : you look at "prev 10 days range" value and then if its bigger than 50 you just turn on your ea ? That's all ? Don't have to initiate the first trade ? Does the ea close the trades itself ?
thanks
The EA has code in it regarding the ADR (take a look in setup menu). This input can be changed to what you perfer. The EA will not trade if the ADR value goes below your set value. The EA will close your trade based on your take profit and stop loss inputs.
Does someone able to help this man to fix this problem
The problem is after the 1st loss with .1 lot size, the next trade will open with a .4 lot size.
Thanks Stace. I am really looking forward to trying this EA out when the mm is fixed.
Hi icfxtrader. I re-did the lot-size code, it should work now.
A few points to bear in mind though, first, its uses the Ordershistorytotal() function to determine lotsize, which has never worked correctly on backtest (unless Metaquotes has fixed this, which I seriously doubt), and second, in order to ensure the EA works correctly, you must manually select 'All History' on the 'Accounts History' tab. (right-click it and select 'All History')
Edit: Problem seems to be a 'recovery' issue - restored 'original' code & added recovery code...
Last edited by omelette; 08-13-2008 at 12:14 AM.
Reason: Oops, more gremlins...
Thank you very much Omelette. I will start testing and report back any findings. I knew I could count on the TSD members.
You're welcome. btw, the original code should have worked, I just re-did it to exclude the use of multiple 'return's (which bugs me!) - are you sure it isn't an OrdersHistoryTotal() problem as described above?