I want to test some data when last bar as ended.
To do so, I use
Code: Select all
If barStatus[1] = 2 then begin...
How do I test for ended bar (BarStatus[1] = 2 ) when IOG = True
Hope I'm clear enough
Martin
Code: Select all
If barStatus[1] = 2 then begin...
you cannot use [1] on BarStatus.Hello
I want to test some data when last bar as ended.
To do so, I useProblem is I got IOG = True. Then my tested bar is done on every tick.Code: Select all
If barStatus[1] = 2 then begin...
How do I test for ended bar (BarStatus[1] = 2 ) when IOG = True
Hope I'm clear enough
Martin
As I understand, when BarStatus[1] = 2 = the closing tick. It should be ok to be use to act upon the end of the previous bar. If not, how do you suggest to code itUsage
BarStatus(DataNum)
Where: DataNum - a numerical expression specifying the data number of the series
If DataNum is not specified, a value for the current data series will be returned.
Example
BarStatus(1) will return a value of 2 if the current tick in the data series with the data number 1 is
the closing tick of a bar
As I understand, when BarStatus[1] = 2 = the closing tick. It should be ok to be use to act upon the end of the previous bar. If not, how do you suggest to code itUsage
BarStatus(DataNum)
Where: DataNum - a numerical expression specifying the data number of the series
If DataNum is not specified, a value for the current data series will be returned.
Example
BarStatus(1) will return a value of 2 if the current tick in the data series with the data number 1 is
the closing tick of a bar