HighD LowD CloseD doesn't work with range bars.  [SOLVED]

Questions about MultiCharts and user contributed studies.
neptun
Posts: 2
Joined: 09 Apr 2012
Has thanked: 1 time

HighD LowD CloseD doesn't work with range bars.

Postby neptun » 25 Mar 2013

Hi,
I'm trying to use prior day's high and low in a strategy, with the HighD(1) and LowD(1).
The funny thing is that it's working for tick bars, contract bars, minute, second and hour bars, but not for range ("point") bars and "change bars". Those return -1.

Is this a bug or am I missing something here?

thanks
/Daniel

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

Re: HighD LowD CloseD doesn't work with range bars.

Postby Henry MultiСharts » 25 Mar 2013

Hello Daniel,

CloseD/HighD/LowD/OpenD are not designed to work with range and change bars.
These functions are designed for:
Ticks (Ticks & Contracts)
Intra-Day (Seconds, Minutes, & Hours)
Days

neptun
Posts: 2
Joined: 09 Apr 2012
Has thanked: 1 time

Re: HighD LowD CloseD doesn't work with range bars.

Postby neptun » 25 Mar 2013

Ok, thanks.
Is there any similar function I could use for range bars, or do I have to code it myself?

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

Re: HighD LowD CloseD doesn't work with range bars.  [SOLVED]

Postby Henry MultiСharts » 26 Mar 2013

There is no similar function that you can use for range bars, you need to code it yourself.


Return to “MultiCharts”