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 Quick Summary with 1 posts (0 thanks)
    4. looks_4 zikonc with 1 posts (2 thanks)
    1. trending_up 3,552 views
    2. thumb_up 5 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 2 attachments




 
Search this Thread

Ninjatrader indicators without plots

  #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: 911

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:	275
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?
Are there any eval firms that allow you to sink to your …
Traders Hideout
Exit Strategy
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Deepmoney LLM
Elite Quantitative GenAI/LLM
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
18 thanks
The Program
18 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: 911

@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: 911

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


© 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