Thank you in advance
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Check if Close[0] on an OET strategy touching yHighlight drawn from custom indicator?
Collapse
X
-
Check if Close[0] on an OET strategy touching yHighlight drawn from custom indicator?
Hello, I have an onBarClose indicator that, for the life of me, I can not convert into use for an onEachTick strategy (it sounds easy, but turns out to be quite difficult). There is no plots, therefore using strategy builder is a no-go as well. So is there any way to have my existing indicator do the calculating, drawing, and draw removal work, then have the strategy check if price is touching the indicator-drawn yHighlights, then enter position? The indicator produces many zones each with unique tags, maybe some way to tie those in for strategy use?
Thank you in advanceTags: None
-
Hello rbeckmann05,
For a strategy to be used in the Strategy Builder it does need to set plot values. If the indicator is drawing objects, it would be wise to also set a transparent plot at the same price and time as the anchor of the drawing object to use as a signal.
That said, you can loop through the Indicators.DrawObjects collection.
With Calculate.OnEachTick, TickReplay will be necessary for this to update for each tick in historical data. You can use IsFirstTickOfBar if you would like to also trigger some events only when the bar closes.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
175 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
91 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
130 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
210 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
186 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment