I am using third arty indicator and it plots Up/Down Arrow for Buy/Sell signals. I want to know how to code in order to detect Up/Down Arrows being drawn and exeute the relevant strategy? thx 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
How to Detect Arrow in Chart
Collapse
X
-
-
Hi kevinlouie,
Unfortunately not, in that case you would want to use the same conditions/logic the indicator uses. As an alternative, you can add a plot to the indicator, for example setting it to a value of 1 when the arrow conditions are true, and base your conditions on the plot value of the indicator.TimNinjaTrader Customer Service
Comment
-
-
Hi kevinlouie,
Unfortunately not, however, lets say the condition in the indicator, "Indicator1", for the arrow is....
Code:if (Close[0] > Close[1]) { DrawArrowUp(....) }
Code:if (Close[0] > Close[1]) { DrawArrowUp(....) Plot1.Set(1); } else { Plot1.Set(0); }
Code:if (Indicator1().Plot1[0] ==0) { EnterLong(); }
TimNinjaTrader Customer Service
Comment
-
Plot Detection
So if a third party indicator plots a black line width 3 on the price panel there is no way to detect this new plot via ninjacript? I do not have access to the indicator code, but simply want to detect new drawing objects that appear on the price panel.
Regards
Comment
-
Originally posted by NingNing View PostHi
I am using third arty indicator and it plots Up/Down Arrow for Buy/Sell signals. I want to know how to code in order to detect Up/Down Arrows being drawn and exeute the relevant strategy? thx in advance
ref: http://www.ninjatrader.com/support/h...rawobjects.htm
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Austiner87, Today, 03:42 PM
|
1 response
17 views
0 likes
|
Last Post Today, 07:38 PM | ||
Started by cshox, Today, 11:11 AM
|
2 responses
15 views
0 likes
|
Last Post
by cshox
Today, 07:21 PM
|
||
Started by algospoke, Today, 06:53 PM
|
0 responses
9 views
0 likes
|
Last Post
by algospoke
Today, 06:53 PM
|
||
Started by mlprice12, 12-21-2021, 04:55 PM
|
3 responses
296 views
0 likes
|
Last Post
by paypachaysa
Today, 06:15 PM
|
||
Started by lorem, 04-25-2024, 09:18 AM
|
20 responses
86 views
0 likes
|
Last Post
by lorem
Today, 06:07 PM
|
Comment