Strategy backtesting a with tick or minute resolution
Strategy backtesting a with tick or minute resolution
Hello, how would I backtest a daily bar strategy (in portfolio backtester) on multiple instruments with tick / minute / second resolution? Thanks in advance
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Strategy backtesting a with tick or minute resolution
Hello DukeNukem.
Please describe what do you mean in details.
Do you mean that you have a strategy designed for calculation on a daily resolution?
Please describe what do you mean in details.
Do you mean that you have a strategy designed for calculation on a daily resolution?
Re: Strategy backtesting a with tick or minute resolution
Thanks for your reply. I have strategies which run on daily charts (ie donchian breakout, etc), however, I would like to test incorporating all data on lower resolutions in order to accurately quantify where the stop losses occurred, etc. and have a better feel for how this daily chart strategy would perform in a real trading environment. Thanks Henry.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Strategy backtesting a with tick or minute resolution
Please make a right click on the instrument in Poftfolio Backtester->Format instrument->Settings->Specify the resolution you need.
Please keep in mind that you should have this data in the database or be able to obtain it from the data source.
Please keep in mind that you should have this data in the database or be able to obtain it from the data source.
Re: Strategy backtesting a with tick or minute resolution
How would I program my strategy to execute using daily bars while keeping the resolution at 1 minute? Otherwise it will try to execute using the last (for example) 150 minute bars where I want it to execute using the last 150 daily bars, just using minute bars to check information about the where the stop loss is triggered? Thankyou and great software
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Strategy backtesting a with tick or minute resolution
Your trading resolution should be the main data series.How would I program my strategy to execute using daily bars while keeping the resolution at 1 minute? Otherwise it will try to execute using the last (for example) 150 minute bars where I want it to execute using the last 150 daily bars, just using minute bars to check information about the where the stop loss is triggered? Thankyou and great software
Then you need to add second data series (subchart) with XXX resolution.
The script calculation can be based on the subchart (data series2)
for ex. buy next bar at close of data2.
In MultiCharts the second data series is added using Format tab->Instrument->Add.
In Poftfolio Backtester the second data series is added using the vertical Data columns.