IntraBarOrderGeneration vs. O,H,L,C

Questions about MultiCharts and user contributed studies.
bibulous
Posts: 56
Joined: 16 Apr 2010
Has thanked: 17 times
Been thanked: 2 times

IntraBarOrderGeneration vs. O,H,L,C

Postby bibulous » 02 Aug 2010

Hi,

I have a question regarding IntraBarOrderGeneration. From my understanding if I put

Code: Select all

[IntraBarOrderGeneration = True];
at the top of my strategy then it is triggered at each tick coming in and I could use

Code: Select all

if Barstatus(1) = 2 then
to check if it is the close of a bar of my selected timeframe (e.g. 1H). Further each time the signal is triggered the

Code: Select all

C
is the close of the tick and not of the bar. Same for H and L. Is there a way to access the highs, lows (and maybe closes) of the bars only?

Marc

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: IntraBarOrderGeneration vs. O,H,L,C

Postby Dave Masalov » 02 Aug 2010

Dear bibulous,

The strategy is calculated on bars even with IOG enabled. The difference is that, when IOG is enabled, the strategy is calculated on bars but it is recalculated every new tick.

So 'high', 'low' and 'close' will return high, low and close values of the bars.

bibulous
Posts: 56
Joined: 16 Apr 2010
Has thanked: 17 times
Been thanked: 2 times

Re: IntraBarOrderGeneration vs. O,H,L,C

Postby bibulous » 02 Aug 2010

Ah, ok that's great!

Thanks,
Marc

bibulous
Posts: 56
Joined: 16 Apr 2010
Has thanked: 17 times
Been thanked: 2 times

Re: IntraBarOrderGeneration vs. O,H,L,C

Postby bibulous » 02 Aug 2010

I found my error.. I actually have to use H[1], since the incoming ticks are already for the new bar..


Return to “MultiCharts”