NOTE: The screenshots are taken from older version of the Smart Forex Tester.
Subscribe to download the latest software.
This post is a comprehensive example of Forex strategy testing with our Smart Forex Tester software. We used our example automated Forex day trading strategy.
Our test plan was to run the strategy on all Asian sessions for one month. The strategy is very simple and it doesn’t adjust its parameters to the market conditions. So we wanted to keep all algorithm’s parameters the same during the testing.
Asian sessions were selected as test data because their volatility is known to be low. It is important, because our simple strategy doesn’t have a trend following algorithm.
We tested on EURUSD. We used tick-by-tick market data provided by TrueFX. We took a whole month data file for April 2015 and prepared our test data with the help of our Forex Data Manager software (download).
Overall test results were positive. Total profit exceeded 280 pips. Out of 17 trading sessions, 12 were profitable.
The best result we got for the April, 24. We can see that our algorithm managed to enter the market at tops and bottoms quite well and stop orders’ trailing worked properly as well.
As the algorithm doesn’t have any trend following functionality, we can only explain this fact by the slow enough market movement.
The worst session was on April, 21. This can be attributed to visibly higher jitter in quotes, so our algorithm had a lot of false signals.
Interestingly, we could easily turn this worst trading session into a profitable one by tweaking the Pivot Points detector parameters. But we didn’t do that as this was against our test plan.
However, this observation is one of the most important results of the testing, which gave us strategy development ideas.
If you want to repeat our testing, here are our parameters.
For the pivot points detector, we used the following values.
peaks.span=253.012
peaks.quality=1e-005
peaks.limit=0.00026506
You can set them in GUI with the Filter sliders.
Takeprofit and stoploss values were 8 pips each.
Day Trading Strategy Improvements
Our testing results show that automated day trading can be profitable.
Our strategy is very simple but still it could win 70% of all trading sessions!
It is clear that priority needs to be assigned to implementing algorithm parameters adjustments on the fly.
An obvious idea to try first would be adjusting the detector parameters. We can optimize them on each tick (or, say, every 10-100 ticks) using the data from beginning of the test. This way, the jitter observed on April, 21 would have been easily eliminated.
This will be implemented in our next product – Forex Trading Adviser.
How do I change my Mq4 EA into your .stg format for testing?
Hi there Gordon
there is no need to convert Mq4 into .stg format. On our roadmap we have a DLL that will be linked with your Mq4 code in the MetaTrader. It will receive quote stream from Smart Strategy Tester and return the trading commands from the Mq4 code. So the EA testing can be done in Smart Forex Tester using its full functionality.
On another notice, our .stg files are text based state machines which are a powerful way of defining trading strategies without need of coding. They have other advantages as well. We will be developing this standard further and document them.
Stay tuned.
Cheers!
The Forex Strategy Tester Team