Debugging / Backtesting an EA
-
Hey Guys. I have done a fair bit of EA building with FX Dreemer and other software in the past, however it has been 2-3 years since I've done any algo trading.
What is the best way to debug an EA you have built in fxdreemer? I have built something that I think should work (noting it has been a while!), however when I try to backtest in MT4 it doesn't take any trades. How do I best debug where the logic is falling down?
-
Hi - I am also new so going though debug testing. I use comment blocks to check that each block is being triggered as expected, and move it down until it stops getting triggered. That has helped me find a few issues with the logic I have been trying to build.
-
I mostly use "Draw Arrow", "Draw Line", "Comment", "Delay" or "Terminate" blocks.
The first 3 are similar, they output something graphical, or print some text.
The "Delay" block doesn't output anything graphical, but because it pauses the EA for few seconds, I have enough time to actually pause the Tester and investigate something at the time it happens.
I use the "Terminate" block to just stop the EA when the EA does enough of what I want. Maybe I want just 2 trades or whatever. This block allows me to run the EA on the fastest speed, stop it when I have enough info, and if I run in multiple times, It would be stopped at the same time.