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 NullPointStrategies, Today, 05:17 AM
|
0 responses
44 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
124 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
65 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment