Drawing a text on a chart report - NinjaTrader | futures io social day trading
futures io futures trading

Drawing a text on a chart report
Updated: Views / Replies:1,999 / 11
Created: by Astrogirl Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

Drawing a text on a chart report

  #11 (permalink)
Market Wizard
Birmingham UK
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
ratfink's Avatar
Posts: 3,441 since Dec 2012
Thanks: 12,796 given, 7,532 received
Forum Reputation: Legendary

Astrogirl View Post
Just done it!

The output windows gives me all the values correctly in some current bars (the ones related to the opened position, of course). Infact the strategy works as it due but the row

- DrawText("My text" + CurrentBar, "Stop_loss_price", 0, stop_loss_price, Color.Red);

It doesn't work as no data is drawn on the chart report.

Ok, then next couple of tests:

1) Try changing BarsAgo in the DrawText from 0 to say 10 or 20 (i.e. put it further back in the chart, just in case its always hidden by something)

2) Use the call
DrawTextFixed ("TLtext", "Stop_loss_price  " + stop_loss_price, TextPostion.TopLeft);
and you should always see the last stop in the top left hand corner of the chart.

You could also add in the time while testing as well, e.g. use
DrawTextFixed ("TRtext", Time[0].ToString(), TextPosition.TopRight);
Note CurrentBar not needed in these cases as the fixed text places always overwrite anyway.

NB Using "My text" + CurrentBar may not guarantee unique drawing items - especially if you make use of cut/copy/paste and forget to edit one, in which case if you are drawing two things with the same 'tag' only the second one will remain visible, I find it better to use a cut down but still related tag construction whether CurrentBar is needed or not.

e.g. instead of "My Text" + CurrentBar, use "Stop Loss" + CurrentBar and then elsewhere "Entry" + CurrentBar or whatever else is more likely to be 'safe'. I mention this as it has caught me out many (grrrr) times.

Travel Well

Last edited by ratfink; March 27th, 2014 at 04:01 AM. Reason: remembered a couple of related things
Reply With Quote
The following user says Thank You to ratfink for this post:
  #12 (permalink)
Trading for Fun
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES, YM, NQ, FDAX
Astrogirl's Avatar
Posts: 51 since Oct 2013
Thanks: 25 given, 7 received

Ratfink your help is great! I used the "Print" command to have results in the output window as you said and that is a great stuff!

The assignment of the stop_loss_price level comes in the actions of a condition group in the {....} and it seems doesn't work; well, when I put the Print command out of the {....} instead, it works!

The question could be: Does a variable be declared in the "if" actions set?

Last edited by Astrogirl; March 27th, 2014 at 10:25 AM.
Reply With Quote
The following user says Thank You to Astrogirl for this post:


futures io > > > > Drawing a text on a chart report

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

Wyckoff Hunting for Great Risk/Reward Ratio w/Gary Fullett

Elite only

Digging into the Details of iSystems w/Stage 5 & iSystems

Jun 5

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drawing lines on chart subpanels ECI Ed NinjaTrader Programming 2 July 4th, 2013 01:58 PM
Chart buttons for drawing tools coding? hector24 NinjaTrader Programming 2 October 20th, 2011 08:44 PM
Drawing trailing stop on chart protrader007 NinjaTrader Programming 6 July 22nd, 2011 12:47 AM
Transferring drawing lines from one chart to another in Ninja spinnybobo NinjaTrader 14 August 9th, 2010 08:26 AM
Indicator with variable Text on Chart Henrik EasyLanguage Programming 6 May 14th, 2010 01:01 PM

All times are GMT -4. The time now is 06:18 PM.

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2018-05-23 in 0.08 seconds with 19 queries on phoenix via your IP