+1 888 340 6572 

Post new topic Reply to topic 
Backtesting using IOG and Barstatus   [ ]
Author Message
#1 posted 09 Mar 2012 

Status: Offline
Posts: 1
Thanks Received: 0 time
Thanks Given: 0 time
Joined: 15 Feb 2012
When using Portfolio Backtester and when using MC backtester in backtesting mode = classic I have developed a profitable startegy.

When backtesting in extended mode with using Bar Magnifier with tick-by-tick data, the strategy turns into a loser.

I tried including the code:

[IntrabarOrderGeneration = False];

if barstatus = 2 then begin

//buy sell logic......


then re-ran the backtesting with Bar Magnifier using tick-by-tick data with no change in results.

How do I change my strategy to ensure that the strategy runs without making intra-bar trading decisions and instead only trades on bar close?/


#2 posted 11 Mar 2012 
User avatar

Status: Offline
Posts: 55
Thanks Received: 22 times
Thanks Given: 18 times
Joined: 28 Nov 2011
Hi Chris,

When you turn on Bar Magnifier it presents a replay of the way a bar was formed. Tick-by-tick replay is the most precise.

Bar Magnifier is helpful when both the profit target and stop loss occurred on the same bar. In this situation, it is unclear whether the profit target or the stop loss occurred first. With Bar Magnifier, MultiCharts is able to see how the bar was formed to determine whether the profit target or the stop loss occurred first.

That is why your strategy performs different results. But the result with Bar Magnifier on is closer to real-time calculation. Without Bar Magnifier you get more optimistic results and with Bar Magnifier turned on you get more realistic results.

Bar Magnifier doesn’t make intra-bar generation of orders. It just showing you the real moving of the price because without Bar Magnifier you have only OHLC values.

Best Regards,
Katrin Yanenko

For this message the author Katrin Yanenko has received thanks:

Post new topic Reply to topic