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 joselube001, 05-10-2024, 12:17 PM
|
5 responses
23 views
0 likes
|
Last Post
by joselube001
Today, 02:18 PM
|
||
Started by bigc0220, 09-18-2018, 09:16 AM
|
6 responses
2,579 views
0 likes
|
Last Post Today, 02:05 PM | ||
Started by lorem, 04-25-2024, 09:18 AM
|
18 responses
77 views
0 likes
|
Last Post
by lorem
Today, 02:02 PM
|
||
Started by DawnTreader, 05-08-2024, 05:58 PM
|
21 responses
81 views
0 likes
|
Last Post Today, 01:29 PM | ||
Started by doihaveto13, Today, 12:46 PM
|
2 responses
4 views
0 likes
|
Last Post
by doihaveto13
Today, 01:17 PM
|
Comment