NexusFi: Find Your Edge


Home Menu

 





Bottom panel indicator center line plotting


Discussion in NinjaTrader

Updated
    1. trending_up 271 views
    2. thumb_up 2 thanks given
    3. group 5 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Bottom panel indicator center line plotting

  #1 (permalink)
 
samiotis's Avatar
 samiotis 
Cordes Lakes, AZ- USA
 
Experience: Intermediate
Platform: NinjaTrader, TOS, MT
Broker: TDAmeritrade Ninja Trader, TastyWorks, Robinhood
Trading: Options, MES, ES
Posts: 83 since Jan 2011
Thanks Given: 29
Thanks Received: 59

Hi you all enjoying the labor day?
Do any of you coders know how code a center line on bottom panel indicator, say on a stochastic indicator? I am adding a ray line but it keeps disappearing it doesn't want to stay put.
This will be my first time coding on NT
thanks

Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 sg72 
Orange County, CA, USA
 
Experience: Intermediate
Platform: NinjaTrader, Fidelity ATP
Trading: ES/NQ/RTY, Equity ETFs, Options
Posts: 59 since Sep 2018
Thanks Given: 44
Thanks Received: 48


samiotis View Post
Hi you all enjoying the labor day?
Do any of you coders know how code a center line on bottom panel indicator, say on a stochastic indicator? I am adding a ray line but it keeps disappearing it doesn't want to stay put.
This will be my first time coding on NT
thanks

You mean a straight horizontal line? Couple of choices to do what you want.

https://ninjatrader.com/support/helpGuides/nt8/draw_horizontalline.htm

https://ninjatrader.com/support/helpGuides/nt8/addline.htm

Reply With Quote
Thanked by:
  #3 (permalink)
 DaveS 
Uxbridge UK
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Futures
Posts: 21 since Sep 2012
Thanks Given: 2
Thanks Received: 17


You cannot alter an indicator that came with NinjaTrader such as 'Stochastics'.
You can make a copy of the indicator with a different name and add your line to that.

Open a NinjaScript Editor and open the indicator in it.
Right click on the code and 'Save As' with your new name.
It will open automatically.

You can look at an indicator that already has a line such as 'Trix' to see how to add the line.

Then just compile and your indicator will be available.

Reply With Quote
Thanked by:




Last Updated on September 10, 2023


© 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