Hello,
I use 1 tick charts and I'd like to create a boolean flag with the bar number as it is unique.
Although I thought it would be easy, I've been struggling for hours with that newbie question (sorry)
Either with Bars.FullSymbolData.Current or Bars.CurrentBar.
Any idea?
Thank you
Creating a Flag with the bar number
-
- Posts: 23
- Joined: 17 Mar 2010
- Has thanked: 20 times
- Been thanked: 2 times
- ABC
- Posts: 722
- Joined: 16 Dec 2006
- Location: www.abctradinggroup.com
- Has thanked: 125 times
- Been thanked: 410 times
- Contact:
Re: Creating a Flag with the bar number
Tartalognion,
both are fine. You need an additional variable and whenever Bars.CurrentBar is different than what you have stored in your variable, you update the value stored in your variable.
However when you operate on 1 tick charts and only compute your code with incoming ticks, you might not even need such a flag.
Regards,
ABC
both are fine. You need an additional variable and whenever Bars.CurrentBar is different than what you have stored in your variable, you update the value stored in your variable.
However when you operate on 1 tick charts and only compute your code with incoming ticks, you might not even need such a flag.
Regards,
ABC