edit: similar to this - https://stockcharts.com/school/doku....price_relative
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
Relative Strength Line
Collapse
X
-
Relative Strength Line
I am looking for an indicator that plots a securities price to an index (such as SPY). It would be a simple calculation of (securities price/SPY price) and thus would plot a number. Showing relative weakness/strength. I have searched around to see if anyone has made that or if I missed it within NT8 indicators. Thanks for any help!
edit: similar to this - https://stockcharts.com/school/doku....price_relativeTags: None
-
Originally posted by NinjaTrader_JoshG View PostHello Stok,
Thanks for your post.
Generally it is against out policy to create, debug, or modify code. A similar script has been requested several times, so I am going to go ahead and create this script as a courtesy.
I will post it here when I am done.
Comment
-
Here you go. This sample uses the SPY, but could easily be modified to compare any two instruments.
To Import:
1. Download the attached file to your desktop.
2. From the NinjaTrader Control Center select the menu Tools > Import > NinjaScript Add On...
3. Select the downloaded file.
Let me know if you have any questions.Attached FilesJosh G.NinjaTrader Customer Service
Comment
-
-
Hi Guys,
Basis this thread, I am trying to use the relative strength indicator for my research work but am not sure on how to change the comparative symbol to any other symbol. Secondly I dont know how to change the # of days for which I want the symbol/comparative symbol calculation to reflect for me.
Below is the screen shot from in.tradingview, added it as a link and do see the attachement as well
Comment
-
Originally posted by vikkasm View PostHi Guys,
Basis this thread, I am trying to use the relative strength indicator for my research work but am not sure on how to change the comparative symbol to any other symbol. Secondly I dont know how to change the # of days for which I want the symbol/comparative symbol calculation to reflect for me.
Below is the screen shot from in.tradingview, added it as a link and do see the attachement as well
Comment
-
Hello vikkasm,
You need to modify the code so it adds Nifty as currently its using SPY, this is not provided as user configurable so you don't find it in settings. Just replace "SPY with "NIFTY" in line 49 & you will get the plots, hope it helps!
- Likes 1
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by mly916, Today, 09:48 PM
|
0 responses
9 views
0 likes
|
Last Post
by mly916
Today, 09:48 PM
|
||
Started by Mikey_, Today, 09:21 PM
|
0 responses
11 views
0 likes
|
Last Post
by Mikey_
Today, 09:21 PM
|
||
Started by cre8able, Today, 05:53 PM
|
3 responses
13 views
0 likes
|
Last Post
by cre8able
Today, 09:20 PM
|
||
Started by Aryan Kumar, Today, 09:04 PM
|
0 responses
4 views
0 likes
|
Last Post
by Aryan Kumar
Today, 09:04 PM
|
||
Started by yertle, Yesterday, 05:49 PM
|
3 responses
16 views
0 likes
|
Last Post
by Mindset
Today, 08:38 PM
|
Comment