NexusFi: Find Your Edge


Home Menu

 





Want to post an indicator I need some help on?


Discussion in NinjaTrader

Updated
    1. trending_up 3,931 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 17 posts
    2. attach_file 8 attachments




 
Search this Thread
  #1 (permalink)
 fiddlinground 
Salt Lake City Utah USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: ES
Frequency: Daily
Duration: Hours
Posts: 22 since May 2018
Thanks Given: 1
Thanks Received: 1

Hi,
I have never posted before and I wanted to ask for help on why my NT8 indicator I have been working on combining with another indicator wont show the RSI line? I am trying to have the stochastic and RSI line green above 50 and red below.

Or maybe someone can direct me to a Stochastic RSI combination that has colors above and below lines?

thanks,
David


Attached Files
Elite Membership required to download: StochasticsRSIColors.zip
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
ATFX Suspends Prop Trading Unit ATFunded -- Full Review …
Funded Trading Evaluation Firms
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
Iran Airspace Contract Surges to 33.5% as Project Freedo …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,059

I didn't install it, but I just pulled it down and looked at it as a text file.

I can see right away however, that you have "DrawOnPricePanel" set to true.

Try setting the indicator, in the user input screen, to be on panel 2, or a new panel.


Reply With Quote
  #3 (permalink)
 fiddlinground 
Salt Lake City Utah USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: ES
Frequency: Daily
Duration: Hours
Posts: 22 since May 2018
Thanks Given: 1
Thanks Received: 1



forrestang View Post
I didn't install it, but I just pulled it down and looked at it as a text file.

I can see right away however, that you have "DrawOnPricePanel" set to true.

Try setting the indicator, in the user input screen, to be on panel 2, or a new panel.

Are you referring to when I add the indicator to the chart? It is in panel 2.

thanks!


Started this thread Reply With Quote
  #4 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,059

Actually ignore everything I said.

Which plot is supposed to be the RSI you want to see? Attached is what I see.
2021-02-02_125757


Reply With Quote
  #5 (permalink)
 fiddlinground 
Salt Lake City Utah USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: ES
Frequency: Daily
Duration: Hours
Posts: 22 since May 2018
Thanks Given: 1
Thanks Received: 1


forrestang View Post
Actually ignore everything I said.

Which plot is supposed to be the RSI you want to see? Attached is what I see.
2021-02-02_125757

Neither plot is RSI, it is only showing the Stochastic. That is the problem I am having. I cannot figure out why the RSI doesn't show?


Started this thread Reply With Quote
  #6 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,059


fiddlinground View Post
Neither plot is RSI, it is only showing the Stochastic. That is the problem I am having. I cannot figure out why the RSI doesn't show?

I know... I'm asking you, which plot is it? not in the chart... but what variable name did you give the RSI in your code?


Reply With Quote
  #7 (permalink)
 fiddlinground 
Salt Lake City Utah USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: ES
Frequency: Daily
Duration: Hours
Posts: 22 since May 2018
Thanks Given: 1
Thanks Received: 1


forrestang View Post
I know... I'm asking you, which plot is it? not in the chart... but what variable name did you give the RSI in your code?

AddPlot(Brushes.DodgerBlue, NinjaTrader.Custom.Resource.NinjaScriptIndicatorNameRSI);
AddPlot(Brushes.Transparent, NinjaTrader.Custom.Resource.NinjaScriptIndicatorAvg);


Started this thread Reply With Quote
  #8 (permalink)
 fiddlinground 
Salt Lake City Utah USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: ES
Frequency: Daily
Duration: Hours
Posts: 22 since May 2018
Thanks Given: 1
Thanks Received: 1

I think the problem is under "protected override void OnBarUpdate()" and I am not sure what I need to do to fix the problem. I am new to learning Ninjascript.


Started this thread Reply With Quote
  #9 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,059

Man... I have to admit being a bit stumped at the way you have this indicator set up.

I'm not sure if you can add an indicator in the way you've done, but maybe you can? I was trying to figure out if that was a proper syntax or not?

I just do it a different way. I didn't want to tell you to change it to the way I would do things.

Of note, is that you have 6 plots, where the index necessary would be 0-5(hopefully the image explains this)... and then in your property section, I can see the first 5 values being captured, but then I'm not sure how you are linking what you have called "Avg" and "Default"... are these two values supposed to be the RSI?

I'm just not sure what you're trying to accomplish here?


2021-02-02_145610


Reply With Quote
  #10 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
Legendary Urban Samurai
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,345 since Jun 2010
Thanks Given: 357
Thanks Received: 1,059



fiddlinground View Post
I think the problem is under "protected override void OnBarUpdate()" and I am not sure what I need to do to fix the problem. I am new to learning Ninjascript.

Ok, I wasn't sure? If you're open to starting from a clean sheet, I can probably get your started, and explain what you need to change... as long as you KNOW what you want to have displayed by this indie.


Reply With Quote




Last Updated on February 2, 2021


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts