NexusFi: Find Your Edge


Home Menu

 





Draw Text Fixed


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one alextrd with 1 posts (0 thanks)
    2. looks_two HealthWealthTrade with 1 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 bltdavid with 1 posts (0 thanks)
    1. trending_up 2,650 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
alextrd's Avatar
 alextrd 
barcelona
 
Experience: None
Platform: ninjatrader
Trading: es
Posts: 55 since May 2011
Thanks Given: 40
Thanks Received: 17

Dear Friends,

I am looking to text "Performance.AllTrades.TradesPerformance.Currency.CumProfit" in the chart but it's impossible to me.

I have been trying the Print function logic but i'm afraid that this does not work in the DrawTextFixed or, at leats, I don't know how to make it work:

DrawTextFixed("My text (fixed)" + CurrentBar, "", TextPosition.TopLeft);


I have been using the seach and I did not found the solutions, so, if this is solved before, please accept my apologies.

Thank you in advance!

À


The bottoms of my shoes
are clean
from walking in the rain.
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Thursday May 28: GDP + Core PCE + Jobless Claims All at …
Traders Hideout
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
April CPI Preview: +3.7% YoY Expected at 8:30 AM ET -- C …
Traders Hideout
Probability Collapse: Bitcoin $150k Craters from 15% to …
Prediction Markets & Event Contracts
SEC Chairman Calls for New Golden Age of SEC-CFTC Regula …
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
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 HealthWealthTrade 
San Diego
 
Experience: Advanced
Platform: NinjaTrader, ThinkorSwim
Trading: ES S&P 500
Posts: 35 since Jan 2015
Thanks Given: 10
Thanks Received: 22


This is as far as i got: The compiler doesn't recognize Performance in this context
I would think that this is supposed to work...but it doesn't.

Good luck to you!


DrawTextFixed("My Text", "Total Profits: " + Performance.AllTrades.TradesPerformance.Currency.CumProfit, TextPosition.TopLeft);


Reply With Quote
  #4 (permalink)
 bltdavid 
San Jose, CA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Posts: 114 since Dec 2013
Thanks Given: 36
Thanks Received: 105

Are you getting an error?
If so, what does it say?

Is this a strategy or an indicator?

AFAIK, the "Performance" object is only available in strategies.
 
Code
DrawTextFixed("My text (fixed)" + CurrentBar, "", TextPosition.TopLeft);
The 2nd argument in your code snippet is an empty string, so the
code above doesn't even print anything to the chart, and thus may
very well be "working" just fine ...

Also, see this:
https://ninjatrader.com/support/helpGuides/nt7/?drawtextfixed.htm


Reply With Quote




Last Updated on April 6, 2018


© 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