Ninja Script Print command fails to show on chart. - NinjaTrader | futures io social day trading
futures io futures trading


Ninja Script Print command fails to show on chart.
Updated: Views / Replies:1,942 / 7
Created: by TheGaryGuy 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

Reply
 
Thread Tools Search this Thread
 

Ninja Script Print command fails to show on chart.

  #1 (permalink)
Elite Member
Bellevue, WA/USA
 
Futures Experience: Advanced
Platform: NinjaTrader, TOS, TDAmeritrade, Dough.com
Broker/Data: ThinkOrSwim, Dough.com, TDAmeritrade, Interactive Brokers (soon)
Favorite Futures: Index and Stock options, Stocks (seldom), Nadex (just starting), Forex
 
Posts: 27 since Oct 2012
Thanks: 36 given, 17 received

Ninja Script Print command fails to show on chart.

I am trying to use the Print(variable); command in a strategy... DrawDot works and shows on the screen.. but no variable or text will show with the Print. Any idea where the printed output is supposed to show up or how to get it to show up on the chart?
(I need this for debugging code).


Last edited by TheGaryGuy; January 13th, 2013 at 08:52 PM.
Reply With Quote
 
  #2 (permalink)
Elite Member
NC, USA
 
Futures Experience: None
Platform: None Yet
Favorite Futures: Guitar
 
MrYou's Avatar
 
Posts: 403 since Jun 2011
Thanks: 618 given, 193 received

Answer
This post has been selected as an answer to the original posters question Answer

RTFM:

"Print()

Definition

Prints data to the NinjaTrader output window."


Output Window = Control Center -> Tools -> Output Window...

Reply With Quote
 
  #3 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

Drawing Text on a Chart

Answer
This post has been selected as an answer to the original posters question Answer


The methods DrawText() and DrawTextFixed(), described in the Ninjatrader Help, will do what you are requesting.

The Print statement is generally used to print diagnostic statements useful for code development.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Reply With Quote
The following user says Thank You to Zondor for this post:
 
  #4 (permalink)
Elite Member
Bellevue, WA/USA
 
Futures Experience: Advanced
Platform: NinjaTrader, TOS, TDAmeritrade, Dough.com
Broker/Data: ThinkOrSwim, Dough.com, TDAmeritrade, Interactive Brokers (soon)
Favorite Futures: Index and Stock options, Stocks (seldom), Nadex (just starting), Forex
 
Posts: 27 since Oct 2012
Thanks: 36 given, 17 received

Thanks....

Thanks for pointing me in the right direction!

Reply With Quote
 
  #5 (permalink)
Elite Member
Bellevue, WA/USA
 
Futures Experience: Advanced
Platform: NinjaTrader, TOS, TDAmeritrade, Dough.com
Broker/Data: ThinkOrSwim, Dough.com, TDAmeritrade, Interactive Brokers (soon)
Favorite Futures: Index and Stock options, Stocks (seldom), Nadex (just starting), Forex
 
Posts: 27 since Oct 2012
Thanks: 36 given, 17 received

There is no place on Big Mike's.. for RUDE responses.

Normally I would say thank you for your rapid response to my simple question but not this time.

I have worked in computer technical support for over 40 years... and one reply to a customer with "RTFM" in it would get me fired at any company I have worked for. Yes, it is OK to think it, but not say it.

I had found the definition of the print command in help, but no description of the window it was to display in. Perhaps you should think back to when you were a new user and didn't know this "non-intuitive platform"... this is my first question on my first actual ninja script program.

So the final result is "YOU ARE FIRED". Please don't respond to any of my questions in the future as I really don't want to put you to any "trouble". And yes, I try to use help and "the non existent" manual before I ask any question.

Response was timely at least.

Sincerely, Gary



MrYou View Post
RTFM:

"Print()

Definition

Prints data to the NinjaTrader output window."


Output Window = Control Center -> Tools -> Output Window...


Reply With Quote
The following user says Thank You to TheGaryGuy for this post:
 
  #6 (permalink)
Elite Member
Bellevue, WA/USA
 
Futures Experience: Advanced
Platform: NinjaTrader, TOS, TDAmeritrade, Dough.com
Broker/Data: ThinkOrSwim, Dough.com, TDAmeritrade, Interactive Brokers (soon)
Favorite Futures: Index and Stock options, Stocks (seldom), Nadex (just starting), Forex
 
Posts: 27 since Oct 2012
Thanks: 36 given, 17 received


Zondor View Post
The methods DrawText() and DrawTextFixed(), described in the Ninjatrader Help, will do what you are requesting.

The Print statement is generally used to print diagnostic statements useful for code development.

Zondor: Thank you again and you are right the print statement (and having the output window up so you can see the results of your calculations (or anything) is great.

One word of warning however for those who have not experienced this: I have learned that running code with the print() commands active in the optimizer will hang NinjaTrader! It keeps calling for more and more memory and finally there is none to be had. BEWARE Print() when Optimizing!

Reply With Quote
 
  #7 (permalink)
Elite Member
Denver, CO
 
Futures Experience: Advanced
Platform: SierraChart
Broker/Data: Optimus, Rithmic
Favorite Futures: ES
 
Posts: 67 since Sep 2011
Thanks: 6 given, 32 received

Answer
This post has been selected as an answer to the original posters question Answer


TheGaryGuy View Post
And yes, I try to use help and "the non existent" manual before I ask any question.

here is the online version of "the non existent" manual: NinjaTrader Version 7
and here is a handy PDF in case you want to easily search in one place: http://www.ninjatrader.com/support/helpGuides/nt7/pdf/NinjaTraderVersion7HelpGuide.pdf

Reply With Quote
The following user says Thank You to dmh24 for this post:
 
  #8 (permalink)
Elite Member
Bellevue, WA/USA
 
Futures Experience: Advanced
Platform: NinjaTrader, TOS, TDAmeritrade, Dough.com
Broker/Data: ThinkOrSwim, Dough.com, TDAmeritrade, Interactive Brokers (soon)
Favorite Futures: Index and Stock options, Stocks (seldom), Nadex (just starting), Forex
 
Posts: 27 since Oct 2012
Thanks: 36 given, 17 received

Thanks for the link to the NinjaTrader 7 Manual in PDF form!


dmh24 View Post
here is the online version of "the non existent" manual: NinjaTrader Version 7
and here is a handy PDF in case you want to easily search in one place: http://www.ninjatrader.com/support/helpGuides/nt7/pdf/NinjaTraderVersion7HelpGuide.pdf

Thanks for this link! I really needed the PDF so i can read and mark it up like any reference book. Using the online version (for me) is like trying to filter the ocean through a straw.

Reply With Quote

Reply



futures io > > > > Ninja Script Print command fails to show on chart.

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQLite and Ninja Script vantojo NinjaTrader Programming 6 August 23rd, 2012 07:00 PM
Chart sound override command protrader007 NinjaTrader Programming 1 July 13th, 2012 06:25 PM
[MC] indicator - Print Date on chart Nicolas11 The Elite Circle 2 April 6th, 2012 03:16 PM
Need help for a very simple script for Ninja Trader vgbouchet NinjaTrader Programming 7 December 1st, 2011 04:06 PM
AND NOT operator on Ninja Trader script?!? vgbouchet NinjaTrader Programming 3 November 27th, 2011 12:53 AM


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

Copyright © 2017 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 2017-12-12 in 0.13 seconds with 35 queries on phoenix via your IP 54.163.210.170