NexusFi: Find Your Edge


Home Menu

 





Ninjatrader indicators without plots


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one jstnbrg with 3 posts (0 thanks)
    2. looks_two eDanny with 2 posts (3 thanks)
    3. looks_3 zikonc with 1 posts (2 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 4,085 views
    2. thumb_up 5 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
 jstnbrg 
Chicago, Illinois
 
Experience: Advanced
Platform: Ninjatrader, TT, InvestorRT
Broker: Advantage Futures, Ninja/TT and InvestorRT/IQFeed.
Trading: Treasury futures
Posts: 312 since Nov 2010
Thanks Given: 194
Thanks Received: 912

Is it possible to insert an indicator in a Ninjatrader chart as text without drawing the indicator? Attached is an example of what I mean, using ADX. I have just typed in the value of ADX, but I would like it to update. If I were using this live, I would not have the ADX panel at the bottom of the chart, just the text embedded in the chart.


"You don't need a weatherman to know which way the wind blows..."
Attached Thumbnails
Click image for larger version

Name:	AXD.jpg
Views:	341
Size:	228.7 KB
ID:	32208  
Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
OneChronos Launches First Combinatorial Auction FX Venue …
Currencies
The May 31 Binary: 60% Trump Declares Iran Ops Over, Onl …
Prediction Markets & Event Contracts
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
The Feds Stagflation Trap -- Negative Payrolls, $91 Oil, …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 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
  #3 (permalink)
 
eDanny's Avatar
 eDanny 
East Rochester, NY
 
Experience: Intermediate
Platform: NT
Posts: 329 since Jul 2009
Thanks Given: 18
Thanks Received: 425


Instead of trying to explain how to do it, I made a quick and dirty indicator you can study and customize to fit your needs.

Dan


Attached Files
Elite Membership required to download: ADXnumber.zip
Reply With Quote
Thanked by:
  #4 (permalink)
 jstnbrg 
Chicago, Illinois
 
Experience: Advanced
Platform: Ninjatrader, TT, InvestorRT
Broker: Advantage Futures, Ninja/TT and InvestorRT/IQFeed.
Trading: Treasury futures
Posts: 312 since Nov 2010
Thanks Given: 194
Thanks Received: 912

@eDanny, thanks very much. That was quick. How would I customize fonts and colors? Position on the chart is perfect.


"You don't need a weatherman to know which way the wind blows..."
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
 
eDanny's Avatar
 eDanny 
East Rochester, NY
 
Experience: Intermediate
Platform: NT
Posts: 329 since Jul 2009
Thanks Given: 18
Thanks Received: 425

You could open the indicator in its editor and hit F1 to open the help guide. Search for DrawTextFixed and see how you can customize that line of code to look the way you want. I used the short version to get it out the door.

Dan


Reply With Quote
  #6 (permalink)
 zikonc 
san ramon
 
Experience: Beginner
Platform: ninja
Broker: zen
Trading: es, 6e
Posts: 136 since Oct 2009
Thanks Given: 98
Thanks Received: 76


jstnbrg View Post
@ eDanny, thanks very much. That was quick. How would I customize fonts and colors? Position on the chart is perfect.

you can define a variables under the public class: Indicator as follows

 
Code
        private Font textFont             = new Font("Arial Narrow", 8);
        private Font textFont2             = new Font("Wingdings 3", 12);
and then use them within your DrawText object, for example

 
Code
                           DrawText
                              (
                                  "lodelta"+CurrentBar, AutoScale,
                                  "ã", 0, SMA(9)[0],
                                   0, Color.Blue, textFont2, StringAlignment.Center, Color.Transparent, Color.Transparent, 0
                                );


Reply With Quote
Thanked by:
  #7 (permalink)
 jstnbrg 
Chicago, Illinois
 
Experience: Advanced
Platform: Ninjatrader, TT, InvestorRT
Broker: Advantage Futures, Ninja/TT and InvestorRT/IQFeed.
Trading: Treasury futures
Posts: 312 since Nov 2010
Thanks Given: 194
Thanks Received: 912

Thanks @eDanny and @zikonc. I really had no idea what I was doing but I got it to work. Here it is:

DrawTextFixed("adxnumber", ADX(Input, aDXperiod)[0].ToString("ADX:" + " 0.00"), TextPosition.TopRight, Color.Black, textFont, Color.Green, Color.Transparent, 30);


"You don't need a weatherman to know which way the wind blows..."
Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on March 2, 2011


© 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