I'm trying to draw a ray between occurrences of similar candlesticks. How do I define the value for how many bars ago it occurred?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
bars ago code
Collapse
X
-
bars ago code
Hi,
I'm trying to draw a ray between occurrences of similar candlesticks. How do I define the value for how many bars ago it occurred?Tags: None
-
stockgoblin, you can define this by setting the anchoir points parameters in the DrawRay overload - http://www.ninjatrader.com/support/h...t7/drawray.htm
-
yes, I know the drawray syntax, but how do I set up an occurrence tracker to establish when the last specific candlestick occurred?
ex) draw a ray using the current high close bar and the previous high close bar.
Comment
-
You could keep simply track of the barnumber (CurrentBar) on which the condition evaluates in your script or use a method like LRO / MRO for this task : http://www.ninjatrader.com/support/h...urence_mro.htm
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
157 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
91 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
143 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
130 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment