NexusFi: Find Your Edge


Home Menu

 





Bottom panel indicator center line plotting


Discussion in NinjaTrader

Updated
    1. trending_up 806 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?
Thanks Mike. Godspeed.
The Elite Circle
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
BERN ALGOS algo trading journal
1 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 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