![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Nov 2006
Location: , ,
Posts: 66
Thanks: 0
Thanked 0 times in 0 posts
|
Can I get the location, color,time, typeinformation of an object, such as a diamon, drawn on the chart by an indicator that uses a Draw Method?
|
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
This is not possible.
Ray
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
|
Is there an example of how to set font,bg color .bold etc. in ninja script
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Not sure what exactly you are looking for. The methods to draw objects usually have parameters to set color etc. See e.g. DrawText: http://www.ninjatrader-support.com/H.../DrawText.html
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Mar 2010
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
Hi all,
Im doing a drawtext on the indicator but the text is very very small on the chartl. how do I make the text bigger? if (Rising(SMASlow)) { DrawText("text" +0, " 1 Min 50ma".ToString() , 0 ,SMASlow[0] , Color.Black); } Thanks Jack |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,555
Thanks: 261
Thanked 1,013 times in 994 posts
|
Jack, please use one of the more advanced overloads for DrawText available that would let you specifiy a font input of your choosing, this would include font type and size -
DrawText(string tag, bool autoScale, string text, int barsAgo, double y, int yPixelOffset, Color textColor, Font font, StringAlignment alignment, Color outlineColor, Color areaColor, int areaOpacity)
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|