I have attached some screen shots from the standard strategy that works and the 'Sample Advanced Automated Strategy v1.0' that does not. I use the exact same backtesting settings for both strategies. In simulation mode the 'Sample Advanced Automated Strategy v1.0' does a number of trades for the chosen date, in backtest mode it seems to be calculating (the graph is there) but it gives me no results. NT version 6.5
When u say " simulation mode" is this just when u right click on the chart that has the strategy applied and looking at Strategy Performance/ Historical?
There may also be a hint as to why it doesn't trade in the log, trace, Tools/Output Window..
Sorry, where I said Simulation mode I meant Replay mode. It does trades in Replay mode only, not in Backtest. The log does not say anything when I run a Backtest. The strange thing is that it seems to perform calculations because it takes while to do the Backtest. The result is just 0.
Could anyone try a Backtest in their system and see what happens.
This strategy is set to run on volume charts,, check out line 55, 56 in the code.. I changed my code to minutes just to get some trades... The volume setting may not be appropriate for ur instrument, so u will have to put a 20/50 ema on ur chart and see what volume setting gets u some crosses. This will trade 3 different time frames at once, mix and match if u want.
and also made my main chart 1 min
on line 95 prevents this from running on historical data ,, which is all data except for new data coming in so comment this out..
// if (Historical) return;
this should start to get u some trades..
The following 3 users say Thank You to gg80108 for this post:
It's not that profitable replaying it. It's a good basis to write your own strategy though! I'm working on one and it's almost ready for release on the site. I hope you are willing to do some testing for me when it's available.