stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

MADTrader
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4590
Page 26 of 92
Author:  renexxxx [ Wed Mar 02, 2016 6:51 am ]
Post subject:  MAD-EA

ceeg » Wed Mar 02, 2016 2:36 pm wrote:I'm having a problem that I don't think anyone else has had - I'm re-reading the thread in case I missed anything but I haven't seen it yet. I wouldn't even swear it's an EA problem, it might be Empty4 playing silly buggers. I'd call myself experienced with computers and Empty4, and I can normally work through the settings or the logs to work out why Empty4 is doing the strange things it does but this one has me stumped.

The EA cycles through when I load it onto a chart and highlights things in the grid and maybe even considers some trades (according to the logs), one time it even took a trade, then that's it - it does absolutely nothing else. The grids don't change, it never looks for more trades, if I don't touch it for a week (it's on a vps) then there will be a week between log entries.

Other EAs on that copy of Empty4 run with no problems, and the MADdash indicator works fine and continually updates. Live trading is turned on in the EA and in Empty4.

Any suggestions ?

Cheers
G.
It sounds to me that Empty4 is 'hanging', i.e. it is no longer responding to incoming tick events and timer events. Some (cheap) VPS hosts have limited CPU and memory resources (I don't know if that is the case with your VPS), and MAD-EA can be setup such that it needs a lot of these resources. Particularly, the MAD-EA parameters that are taxing for Empty4 are: CycleTimeSeconds, LookBackMinutes and the use of 'Triangular' MAs (i.e. TMAs). If you have performance problems, increase the CycleTimeSeconds (this is the 'heart-beat' at which the EA does its cycle of calculations), reduce the LookBackMinutes (as this directly reduces the number of candles the EA needs to inspect) and don't use TMAs. The TMAs are implemented in MQL, whereas all the other MAs are implemented in the platforms machine code. As you are experienced with computers you will understand that this makes a massive difference.

Hope this helps with your fault finding.
Author:  MAG1 [ Wed Mar 02, 2016 7:02 am ]
Post subject:  MAD-EA

I had a similar problem when I downloaded the .set file & changed it to a .txt to transfer settings manually. This did not work - all looked good but no trades . Are you sure you loaded the .set file correctly?
Author:  ceeg [ Wed Mar 02, 2016 7:19 am ]
Post subject:  MAD-EA

renexxxx » Wed Mar 02, 2016 6:51 pm wrote: Particularly, the MAD-EA parameters that are taxing for Empty4 are: CycleTimeSeconds, LookBackMinutes and the use of 'Triangular' MAs (i.e. TMAs).
Many thanks Rene, I have increased the cycle time to 10 seconds, reduced the LookBackMinutes to something less silly (that was quite possibly the problem, it was an enormous number) and changed all the MAs to Linear Weighted. As soon as I clicked OK the EA opened a bunch of trades so that bit works, and I also turned on the M1 timeframe (purely for display) because that should show me the fastest if it is updating.

Will keep you posted.

Thanks again !
G.
Author:  ceeg [ Wed Mar 02, 2016 9:28 am ]
Post subject:  MAD-EA

Hooray, my (demo) account history is now filling up nicely with trades, you nailed it Rene !

That's step one, now to find a suitable trade manager to close them again :)

Thanks
G

[edit]
I had another thought ... yes this was indeed a platform I had been using for backtesting, and it was loading 1 MILLION BARS onto each chart. Not just into the history, but into the actual chart.

..... durrrr .....

all running much better now :oops:

[/edit]
Author:  neocount [ Wed Mar 02, 2016 1:14 pm ]
Post subject:  MAD-EA

Just a heads up if you are new to using the MPTM_global to manage trades. If you are using ATR in any of the calculations you have to attach it to EACH chart that the EA trades and set it to manage that pair only....and that's a lot of charts open. It cant be set to manage all because it doesn't calculate ATR for each pair in that setting.
Milanese created one called APTM that WILL run ATR settings for each pair when it is set to manage all...it just doesn't have the % options global does but personally I just wanted an ATR based ts so it works well for me.
Author:  Wavegarrick [ Wed Mar 02, 2016 2:16 pm ]
Post subject:  MAD-EA

919gilead » Tue Mar 01, 2016 11:35 pm wrote:Great results guys and will be back in action in another day or so. I'm an accountant and it's the tax season here, so been a bit busy in the office and can't wait to perfect the EA and be out of here.

Happy New Month to all, and trust we will all march forward with green pips :good:

Shalom
Hi George welcome back, well will see you in a bit......hope you make the books look good for the taxman.. :D
Author:  Wavegarrick [ Wed Mar 02, 2016 4:04 pm ]
Post subject:  MAD-EA

neocount wrote:Just a heads up if you are new to using the MPTM_global to manage trades. If you are using ATR in any of the calculations you have to attach it to EACH chart that the EA trades and set it to manage that pair only....and that's a lot of charts open. It cant be set to manage all because it doesn't calculate ATR for each pair in that setting.
Milanese created one called APTM that WILL run ATR settings for each pair when it is set to manage all...it just doesn't have the % options global does but personally I just wanted an ATR based ts so it works well for me.
Hi Neo u seem to be quite correct at this....I have not noticed as I have focused mostly on the entry conditions and my trail stops have kicked in..... :arrrg:

Thanks Buddy
Author:  neocount [ Wed Mar 02, 2016 8:17 pm ]
Post subject:  MAD-EA

EA results for the day.
Author:  bazze [ Wed Mar 02, 2016 8:30 pm ]
Post subject:  MAD-EA

neocount » Wed Mar 02, 2016 9:17 pm wrote:EA results for the day.
:good: Default settings?
Author:  neocount [ Wed Mar 02, 2016 9:54 pm ]
Post subject:  MAD-EA

Using TJF settings from page 22. 4H trigger.
All times are UTC Page 26 of 92