Thank you in advance
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 rbeckmann05, Yesterday, 06:48 PM
|
1 response
12 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
10 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
Comment