NexusFi: Find Your Edge


Home Menu

 





Bottom panel indicator center line plotting


Discussion in NinjaTrader

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




 
Search this Thread
  #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 X Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Hungary Called for Magyar at 97pct, Ending 16-Year Orban …
Prediction Markets & Event Contracts
Iran War Prediction Markets: Ceasefire 16%, Ground Invas …
Prediction Markets & Event Contracts
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
SEC and CFTC Unlock Customer Cross-Margining for Treasur …
Treasury Notes and Bonds
NinjaTrader Parent Payward Acquires Bitnomial for $550M …
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 sg72 
Orange County, CA, USA
 
Experience: Intermediate
Platform: NinjaTrader, Fidelity ATP
Trading: ES/NQ/RTY, Equity ETFs, Options
Posts: 66 since Sep 2018
Thanks Given: 45
Thanks Received: 53


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: 22 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


© 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