I have a 5min strategy with IntraBarOrderGeneration=on and in the back testing setting parameters I have Bar Magnifier set to 1min and I seem to be getting good results with that. Im assuming that the strategy is evaluated 4 times per 1 min bar? is that correct
How could I set up a chart with a multi time frame to accomplish the same? for example Data 2 is 5min and Data 1 is 1min or what timeframe would data1 be?
The reason for this is that 5min with bar magnifier =1 tick seems to be too low a resolution for my strategy but 5min with bar magnifier=1min seems to be okay
Regards
5min Strategy with Bar Mag = 1min - equivalent Data 1/2?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: 5min Strategy with Bar Mag = 1min - equivalent Data 1/2?
In MultiCharts 8.0 beta 2 and lower:I have a 5min strategy with IntraBarOrderGeneration=on and in the back testing setting parameters I have Bar Magnifier set to 1min and I seem to be getting good results with that. Im assuming that the strategy is evaluated 4 times per 1 min bar? is that correct
With IOG and Bar Magnifier enabled on historical data the script will be calculated on the close of each bar of the detailed data series selected in bar magnifier + high/low of the main data series. Order is filled only on these detailed close values+high/low of the main data series.
In MultiCharts 8.0 beta 3 and higher:
With IOG and Bar Magnifier enabled on historical data the script will be calculated on the Open value of the main data series, then OHLC of each bar of the detailed data series selected in bar magnifier (Price movement assumption is used), then on the Close of the main data series. Order is filled only on these O (base)-OHLC (detailed)-C (base) values.
You can specify the data series sequence the way you like but it will be rather tricky to imitate the same bar magnifier calculation method on multiple data series.How could I set up a chart with a multi time frame to accomplish the same? for example Data 2 is 5min and Data 1 is 1min or what timeframe would data1 be?
Re: 5min Strategy with Bar Mag = 1min - equivalent Data 1/2?
Okay it is tricky - but it has been done before?
How does the algo evaluate the High and Low of the main series(5min) ? It is totally asynchronous from the close of bar (1min) detailed series? If so then I can see how it would not be easy to imitate otherwise close of bar 1min should suffice?
Please advise before I invest too much time in this effort - thanks
How does the algo evaluate the High and Low of the main series(5min) ? It is totally asynchronous from the close of bar (1min) detailed series? If so then I can see how it would not be easy to imitate otherwise close of bar 1min should suffice?
Please advise before I invest too much time in this effort - thanks
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: 5min Strategy with Bar Mag = 1min - equivalent Data 1/2?
In MultiCharts 8.0 beta 2 and lower:Okay it is tricky - but it has been done before?
How does the algo evaluate the High and Low of the main series(5min) ? It is totally asynchronous from the close of bar (1min) detailed series? If so then I can see how it would not be easy to imitate otherwise close of bar 1min should suffice?
Please advise before I invest too much time in this effort - thanks
The calculation sequence with IOG and Bar Magnifier enabled is:
1) Open of the main data series bar;
2) Close of the first detailed series bar;
3) Close of the next detailed series bar;
…
n) Close of the main data series bar;
If the next bar of the detailed data series contains an extreme (High(Detailed) = High(Base) or Low(Detailed) = Low(Base)) of the main data series, then extreme value will be calculated prior to Close (Base) value.
If the next bar of the detailed data series contains both extremes (High and Low) then the extreme values will be calculated according to the most possible price movement defined by the following algorithm:
- If High-Open < Open – Low, then High is calculated first, then Low, then Close of this bar.
- If High-Open >= Open – Low, then Low is calculated first, then High, then Close of this bar.
You can set any N tick resolution (for ex. 145 tick) for Bar Magnifier.Henry is it possible to get lower resolutions with Bar magnifier than 1minute but greater than 1 tick resolution?
Thanks
Morgan
Re: 5min Strategy with Bar Mag = 1min - equivalent Data 1/2?
okay how do traders execute a backtest with BM=1min with IOG=on where they get good results but at BM=1 tick there are bad results...
What's the setup to execute something like this ? Is it possible ?
Has anybody tried this before?
What's the setup to execute something like this ? Is it possible ?
Has anybody tried this before?
Re: 5min Strategy with Bar Mag = 1min - equivalent Data 1/2?
Okay taking this sequentiallyIn MultiCharts 8.0 beta 2 and lower:
The calculation sequence with IOG and Bar Magnifier enabled is:
1) Open of the main data series bar;
2) Close of the first detailed series bar;
3) Close of the next detailed series bar;
…
n) Close of the main data series bar;
If the next bar of the detailed data series contains an extreme (High(Detailed) = High(Base) or Low(Detailed) = Low(Base)) of the main data series, then extreme value will be calculated prior to Close (Base) value.
If the next bar of the detailed data series contains both extremes (High and Low) then the extreme values will be calculated according to the most possible price movement defined by the following algorithm:
- If High-Open < Open – Low, then High is calculated first, then Low, then Close of this bar.
- If High-Open >= Open – Low, then Low is calculated first, then High, then Close of this bar.
The calculation sequence with IOG and Bar Magnifier enabled is:
t1 - Open of the main data series bar(say 5min bar);
t2 - Close of the first detailed series bar(say 1min bar);
at t2 , High(Detailed-1min) = High(Base-5min) , but it occured anywhere between t1 and t2? how is it evaluated - at what timepoint
t3 ..
t4..
t5 .. close of 1min and close of 5min
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: 5min Strategy with Bar Mag = 1min - equivalent Data 1/2?
If you want to make the calculation in real time similar to backtesting calculation with bar magnifier you will need to enable IOG and refer to the closing values of the subchart detailed bars in your code.okay how do traders execute a backtest with BM=1min with IOG=on where they get good results but at BM=1 tick there are bad results...
What's the setup to execute something like this ? Is it possible ?
Has anybody tried this before?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: 5min Strategy with Bar Mag = 1min - equivalent Data 1/2?
See post #2Okay taking this sequentially
The calculation sequence with IOG and Bar Magnifier enabled is:
t1 - Open of the main data series bar(say 5min bar);
t2 - Close of the first detailed series bar(say 1min bar);
at t2 , High(Detailed-1min) = High(Base-5min) , but it occured anywhere between t1 and t2? how is it evaluated - at what timepoint
t3 ..
t4..
t5 .. close of 1min and close of 5min
Order is filled only on these detailed close values+high/low of the main data series.
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: 5min Strategy with Bar Mag = 1min - equivalent Data 1/2?
Speaking of the Bar Magnifier, will the Bar Magnifier for the Portfolio Backtester someday be implemented?
That would make the Portfolio Backtester significantly more useful (I don't use it now because of this), and with 64-bit the previous memory limitation is erased.
That would make the Portfolio Backtester significantly more useful (I don't use it now because of this), and with 64-bit the previous memory limitation is erased.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: 5min Strategy with Bar Mag = 1min - equivalent Data 1/2?
Hello Josh,Speaking of the Bar Magnifier, will the Bar Magnifier for the Portfolio Backtester someday be implemented?
That would make the Portfolio Backtester significantly more useful (I don't use it now because of this), and with 64-bit the previous memory limitation is erased.
We are considering this feature for future implementation. There is no ETA at the moment.
-
- Posts: 401
- Joined: 19 Jan 2011
- Location: Netherlands
- Has thanked: 85 times
- Been thanked: 125 times
Re: 5min Strategy with Bar Mag = 1min - equivalent Data 1/2?
Last week, after 5 days of unnecessary debugging, I found out that the outcome of backtesting between main MC program (on chart) and portfoliobacktester is different because of the portfoliobacktester not supporting IOG. I didn't know that.
I assume that if barmagnifier is added to the portfoliobacktester, also IOG will be supported. Although barmagnifier is a bit different than IOG. I only use IOG strategies and therefore I can not test a portfolio of symbols. Which is the purpose of the portfolio backtester.
By this post I want to let people know what can cause difference between the two backtesting tools, to avoid a lot of timeconsuming probably unnecessary debugging.
Would be great if the portfoliobacktester will support barmagnifier and IOG in the near future. I voted for MC-787. Please vote for this, if you have IOG strategies and want to test a portfolio of symbols.
Thanks
Edwin
I assume that if barmagnifier is added to the portfoliobacktester, also IOG will be supported. Although barmagnifier is a bit different than IOG. I only use IOG strategies and therefore I can not test a portfolio of symbols. Which is the purpose of the portfolio backtester.
By this post I want to let people know what can cause difference between the two backtesting tools, to avoid a lot of timeconsuming probably unnecessary debugging.
Would be great if the portfoliobacktester will support barmagnifier and IOG in the near future. I voted for MC-787. Please vote for this, if you have IOG strategies and want to test a portfolio of symbols.
Thanks
Edwin
- Katrin Yanenko
- Posts: 55
- Joined: 28 Nov 2011
- Has thanked: 18 times
- Been thanked: 23 times
Re: 5min Strategy with Bar Mag = 1min - equivalent Data 1/2?
Dear Edwin,
Thank you for your suggestion.
We are considering this feature for future implementation.
Best Regards,
Katrin Yanenko
Thank you for your suggestion.
We are considering this feature for future implementation.
Best Regards,
Katrin Yanenko