NexusFi: Find Your Edge


Home Menu

 





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


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Mindset with 3 posts (1 thanks)
    2. looks_two max-td with 1 posts (11 thanks)
    3. looks_3 Zondor with 1 posts (0 thanks)
    4. looks_4 catch with 1 posts (0 thanks)
    1. trending_up 5,501 views
    2. thumb_up 12 thanks given
    3. group 5 followers
    1. forum 5 posts
    2. attach_file 4 attachments




 
Search this Thread

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

  #1 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

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.



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 :
https://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
Elite Membership required to download: Text_Box_example_01.zip
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
 catch 
St. John's, Newfoundland
 
Experience: Beginner
Platform: NinjaTrader
Broker: IB
Trading: Stocks
Posts: 2 since Oct 2009
Thanks Given: 0
Thanks Received: 0

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)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291


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)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

Is this code OK for NT7? Thanks.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

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.

Reply With Quote
  #6 (permalink)
 
Mindset's Avatar
 Mindset 
Singapore
 
Experience: Intermediate
Platform: NT
Broker: ib
Trading: MES
Posts: 365 since Sep 2009
Thanks Given: 90
Thanks Received: 291

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

Attached Thumbnails
Click image for larger version

Name:	status box.png
Views:	498
Size:	23.0 KB
ID:	6749  
Attached Files
Elite Membership required to download: StatusBoxNT7.zip
Reply With Quote
Thanked by:




Last Updated on January 14, 2010


© 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