NexusFi: Find Your Edge


Home Menu

 





Want to post an indicator I need some help on?


Discussion in NinjaTrader

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




 
Search this Thread

Want to post an indicator I need some help on?

  #1 (permalink)
 fiddlinground 
Salt Lake City Utah USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: ES
Frequency: Daily
Duration: Hours
Posts: 21 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?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #2 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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: 21 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
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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: 21 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
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


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: 21 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: 21 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
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

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
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047



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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts