Can anyone give me advice on how to do that?
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 set a condition for the D3Spotter?
Collapse
X
-
How to set a condition for the D3Spotter?
I am using the D3Spotter for spotting RSI divergence. I want to set the condition that I only receive signals when the difference of the 1st RSI peak to the print of the signal is greater than 5%.
Can anyone give me advice on how to do that?Tags: None
-
Yes; because the d3spotter gives too much false signals; I want it to give signals only if the absolute values of the difference between the two RSI dots are greater than 5%.
Many thanks!
Comment
-
Hello Realiori9999,
Thanks for the clarification.
This would require some custom programming to be able to accomplish this as since a script's drawing object cannot be detect from another script. So you will need to either modify the D3Spotter indicator to be able to get the bar and value of the drawing object (for example using a DataSeries object) or create the same condition inside of your strategy so that you know where the dot is going to be drawn.
You may want to save your D3Spotter indicator as a different name if you are wanting to try to modify it so that you can still use the original one.
To do this you may:
* Go to Tools -> Edit NinjaScript -> Indicator
* Select your Indicator
* Press OK
* Right click inside of the Editor window and select "Save As"
* Enter in the name of the Indicator that would want a copy of it saved as
* Now close out of all windows and when you go back into the Edit NinjaScript sections you should see both of your Indicators with different names even though they are the same one.
Now you may try modifying the D3Spotter Indicator to be able get the information that you want.
Here is a link to our Help Guide that goes over DataSeries objects that has examples on how to set the DataSeries object up so that you can use it inside of your strategy.
Let me know if you have any questions.JCNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Stanfillirenfro, Today, 07:23 AM
|
1 response
3 views
0 likes
|
Last Post Today, 07:37 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
2 responses
20 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by olisav57, Yesterday, 07:39 PM
|
1 response
9 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by cocoescala, 10-12-2018, 11:02 PM
|
7 responses
944 views
0 likes
|
Last Post
by Jquiroz1975
Today, 07:21 AM
|
||
Started by oviejo, Today, 12:28 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:20 AM |
Comment