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 1,733 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

Draw Text Fixed

  #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?
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
What is Markets Chat (markets.chat) real-time trading ro …
70 thanks
Spoo-nalysis ES e-mini futures S&P 500
54 thanks
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Bigger Wins or Fewer Losses?
24 thanks
The Program
20 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: 112 since Dec 2013
Thanks Given: 35
Thanks Received: 103

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


© 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