NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 05-21-2012, 05:37 PM   #31
marty087
Member
 
Join Date: Apr 2012
Location: Sydney, Australia
Posts: 32
Thanks: 11
Thanked 2 times in 2 posts
Default

Great Stuff. Much Appreciate!
marty087 is offline  
Reply With Quote
Old 05-22-2012, 01:55 AM   #32
marty087
Member
 
Join Date: Apr 2012
Location: Sydney, Australia
Posts: 32
Thanks: 11
Thanked 2 times in 2 posts
Default

Quote:
Originally Posted by forrestang View Post
Couple indies in here, but "FP_LinkonAdvisors" is the indie that puts text on the chart.
Actually I can't thank u enough..... You code had all the answers I was looking for!! very kind of you to share.
marty087 is offline  
Reply With Quote
The following user says thank you to marty087 for this post:
Old 05-22-2012, 02:03 AM   #33
forrestang
Senior Member
 
Join Date: Aug 2009
Location: Chicago
Posts: 213
Thanks: 39
Thanked 4 times in 4 posts
Default

Woot!

Glad it worked out for ya.
forrestang is offline  
Reply With Quote
Old 11-14-2012, 04:05 PM   #34
ij001
Senior Member
 
Join Date: Apr 2010
Posts: 125
Thanks: 18
Thanked 3 times in 3 posts
Default

Quote:
Originally Posted by forrestang View Post
One question about DrawText().

Can this be tied to a quadrant on the chart like the DrawTextFixed() can? In looking through all of the inputs for it, it seems like you can position the DrawText() function a certain number of bars back as the x position, and a certain height up as the y position. I can see how this would change depending on the scaling of the charts.

The DrawTextFixed() on the other hand will allow you to simply place your text box in a quadrant, i.e. upper left, lower right etc.
Did you ever figure this out? I have exactly the same question.
ij001 is offline  
Reply With Quote
Old 11-14-2012, 06:14 PM   #35
forrestang
Senior Member
 
Join Date: Aug 2009
Location: Chicago
Posts: 213
Thanks: 39
Thanked 4 times in 4 posts
Default

Quote:
Originally Posted by ij001 View Post
Did you ever figure this out? I have exactly the same question.
Well, at the time I wanted to be able to position the text in a position on a chart, i.e. some quadrant, along with being able to control font and color of the text. It was a long time ago, but if I remember correctly neither the DrawText() or the DrawTextFixed() function would allow me to do both of those things simultaneously.

So I wound up overriding the plot function altogether. That sample script I posted allowed me to control the text, in position and color exactly the way I wanted.

http://www.ninjatrader.com/support/f...9&postcount=30
forrestang is offline  
Reply With Quote
The following user says thank you to forrestang for this post:
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
chart contains no information MylesD Charting 1 03-30-2011 01:04 PM
An acquisition method of commitment information and the information of the promise de JPMAN Strategy Analyzer 1 03-13-2011 08:13 PM
Problem with Typical[0] fctrader Indicator Development 2 03-12-2011 11:04 AM
typical price of another instrument in panel 2 giraia_br Indicator Development 4 11-13-2009 07:36 PM
Getting draw object information SuzyG Strategy Development 3 05-22-2008 01:37 PM


All times are GMT -6. The time now is 01:44 PM.