Hi,
Is it possible to draw text or arrows on a chart with bar offset instead of using bar time ? I'm asking this because I use price range based charts and a lot of times multiple bars have same timestamp and arrow/text is drawn at the first bar that has the timestamp and not the desired bar (if you used a 'bars ago' type logic). Hope I'm making sense with what i'm asking... NT achieves with 'overloaded' functions for drawing.
thanks in advance for your help
Drawing arrows/text using bar offset
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Drawing arrows/text using bar offset
are you using these keywords?Hi,
Is it possible to draw text or arrows on a chart with bar offset instead of using bar time ? I'm asking this because I use price range based charts and a lot of times multiple bars have same timestamp and arrow/text is drawn at the first bar that has the timestamp and not the desired bar (if you used a 'bars ago' type logic). Hope I'm making sense with what i'm asking... NT achieves with 'overloaded' functions for drawing.
thanks in advance for your help
ARW_NEW_s
TEXT_NEW_s
-
- Posts: 14
- Joined: 20 Jun 2012
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Drawing arrows/text using bar offset
if you use a 'bars ago' type logic,Hi,
Is it possible to draw text or arrows on a chart with bar offset instead of using bar time ? I'm asking this because I use price range based charts and a lot of times multiple bars have same timestamp and arrow/text is drawn at the first bar that has the timestamp and not the desired bar (if you used a 'bars ago' type logic). Hope I'm making sense with what i'm asking... NT achieves with 'overloaded' functions for drawing.
thanks in advance for your help
you can use TIME_s[1] to reference previous bars.
But if multiple bars have the same time stamp, the first one will be used.
-
- Posts: 14
- Joined: 20 Jun 2012
Re: Drawing arrows/text using bar offset
TJ, thanks for your reply. yes, thats exactly what i'm trying to avoid. lets say there are 10 bars with the same timestamp and I want to draw the arrow above a bar 4 bars ago, then this would still draw it 10 bars ago, above the first bar that matches the timestamp.
is there a workaround this in MC ?
is there a workaround this in MC ?
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Drawing arrows/text using bar offset
Not that I aware of...TJ, thanks for your reply. yes, thats exactly what i'm trying to avoid. lets say there are 10 bars with the same timestamp and I want to draw the arrow above a bar 4 bars ago, then this would still draw it 10 bars ago, above the first bar that matches the timestamp.
is there a workaround this in MC ?