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
Barstatus realtime vs backtesting
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Barstatus realtime vs backtesting
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.
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.