Barstatus realtime vs backtesting

Questions about MultiCharts and user contributed studies.
User avatar
t-rader
Posts: 139
Joined: 02 Feb 2011
Location: Australia
Has thanked: 11 times
Been thanked: 27 times

Barstatus realtime vs backtesting

Postby t-rader » 12 Jul 2012

Hi All,

How well does 'Barstatus' work when trading live or is it used only for backtesting or for indicators?

For example if Barstatus = 2 indicates that the tick is the closing tick of the bar. When its the closing tick how does it know its the closing tick? I'm trading forex is this makes a difference.

What I'm trying to do is have some of my code do calucations on a per bar basis while still using IntraBarOrderGeneration (IOG) to have my orders executed on a tick basis.

Cheers,
t-rader

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Barstatus realtime vs backtesting

Postby Henry MultiСharts » 12 Jul 2012

Hello T-rader,

Bar is considered to be closed (tick is considered to be the closing) when a new tick is received.
There should be no issues with using Barstatus = 2 in backtesting as well as in real time.


Return to “MultiCharts”