coding for beginners : Text + Value-Boxes in your chart - NinjaTrader Programming | futures io social day trading
futures io futures trading


coding for beginners : Text + Value-Boxes in your chart
Updated: Views / Replies:3,466 / 5
Created: by max-td Attachments:4

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
 

coding for beginners : Text + Value-Boxes in your chart

  #1 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

coding for beginners : Text + Value-Boxes in your chart

hey traders + coding-beginners,

i heard about a request of a textbox in the chart showing some during trading needed infos.
i had some time today and made this as a posting now for all.

this is a code-example for making a such a textbox with live-infos of priceaction, indicator-values or whatever.

as you see in the picture i made 2 textboxes that shows different outputs.
you can confugure this like you want - just change the formulars or the formation in the code.

the indicator is just an educational thing, so its pretty raw with no possibilities to change settings via parameter, you have to do this directly in the code.
but this way you gonna learn some stuff like how colors, textsize etc are formated in NT-script.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


the upper box shows the Stochastics(7, 30, 7)-value from one bar ago
the lower box shows how big your current bar is in ticks (High[0] - Low[0] )

you see also the "Made by max!" as example how to add additional lines in the textbox via \n

you find this stuff + the syntax in the NT-script-help :
http://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?DrawTextFixed

Go + study the code, modify it + have fun
I hope someone will find it useful.

Questions ?? additional ideas ?? throw them in !



max-td
Attached Files
Register to download File Type: zip Text_Box_example_01.zip (14.7 KB, 162 views)
Reply With Quote
The following 11 users say Thank You to max-td for this post:
 
  #2 (permalink)
Just starting out...
St. John's, Newfoundland
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: IB
Favorite Futures: Stocks
 
Posts: 2 since Oct 2009
Thanks: 0 given, 0 received

Hi max-td:

I am new at Ninja script. I did some work with easy language using which I could plot an indicator history (barsback). I have been trying to get Stochastic K output as a plot with variable number of "barsback" with no success. I know that you can move the plot by using "displace" but I need actual value of Stochastic K from 0 to 40 bars back. Is that possible?

Many thanks for the text box idea.

-catch

Reply With Quote
 
  #3 (permalink)
Elite Member
UK
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: ib
Favorite Futures: Electric Guitar
 
Mindset's Avatar
 
Posts: 355 since Sep 2009
Thanks: 88 given, 285 received

Starter code


I found this of great value in learning about NS, text boxes, etc.
it is both straightforward and complex in some of it's code which is great.
As I progressed I found I understood more and more - still 2 bits I don't get though!!

Reply With Quote
 
  #4 (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

Is this code OK for NT7? Thanks.

Reply With Quote
 
  #5 (permalink)
Elite Member
UK
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: ib
Favorite Futures: Electric Guitar
 
Mindset's Avatar
 
Posts: 355 since Sep 2009
Thanks: 88 given, 285 received

Nt7

Unfortunately not - If I get some time I will see if I can convert it.

mmm.. clearly my learning has some way to go - I can get it to compile and run but no display.
I have pm'd the original author to see if he can help.


Last edited by Mindset; January 14th, 2010 at 04:54 AM.
Reply With Quote
 
  #6 (permalink)
Elite Member
UK
 
Futures Experience: Intermediate
Platform: NT
Broker/Data: ib
Favorite Futures: Electric Guitar
 
Mindset's Avatar
 
Posts: 355 since Sep 2009
Thanks: 88 given, 285 received

Finally figured it out

Remember that we are still in beta so this may break on final release ( highly unlikely though)

Attached Thumbnails
coding for beginners : Text + Value-Boxes in your chart-status-box.png  
Attached Files
Register to download File Type: zip StatusBoxNT7.zip (5.1 KB, 105 views)
Reply With Quote
The following user says Thank You to Mindset for this post:

Reply



futures io > > > > > coding for beginners : Text + Value-Boxes in your chart

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
draw text to the bottom of the chart Zsolt NinjaTrader Programming 5 August 30th, 2010 07:30 AM
Fixed position for text on a chart Henrik EasyLanguage Programming 6 August 8th, 2010 03:19 PM
How To Manually Remove A Text ALERT From A Chart jmca2000 NinjaTrader Programming 3 July 21st, 2010 01:46 AM
Indicator with variable Text on Chart Henrik EasyLanguage Programming 6 May 14th, 2010 02:01 PM
chart shiftet the orderarrow and text to the right siscop NinjaTrader Programming 2 September 6th, 2009 11:58 AM


All times are GMT -4. The time now is 10:23 AM.

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-15 in 0.08 seconds with 20 queries on phoenix via your IP 54.221.76.68