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 Hwop38, 05-04-2026, 07:02 PM
|
0 responses
160 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
307 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
245 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
348 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
178 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment