Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
TsSuperTrend
Collapse
X
-
There's no control for drawing objects' size. As an alternative, some people DrawText() which allows font size control.Ryan M.NinjaTrader Customer Service
Comment
-
rtj4201,
You can add code that will "offset" any desired object.... Many ways to do this, but the most straightforward might be to
- add integer field as input....Ex:
create a Variable
... private int _offset = 6;
- add code to make it modifiable Ex:
[Description(" ") ]
[Category("ChartControl") ]
[Gui.Design.DisplayName ("Offset") ]
public int Offset
{
get {return offset}
set {offset = Math.Min(15,Math.Max(value,1));}
}
- modify the DrawObject command to use (_offset * TickSize)
instead of a fixed number (such as 6).
This will let you change the amount of space between the candlestick and the object.
NOTE: double check the spacing & spelling before you try to copy paste this code. I keyed it fast, may have errors.Last edited by photog53; 06-08-2011, 08:51 PM.
Comment
-
Originally posted by rtj4201 View PostCan someone add a vertical offset capability for the arrows and cability of selection of the arrow size without having to go thru the code.
Ninja does not offer the ability to alter object size...but you can change which object you put on the chart.
For example...if the "arrow" is too large, then perhaps a small triangle would work better. (Ex: DrawTriangleUp or DrawTriangleDown instead of DrawArrowUp )
The code syntax is the same for both objects, only the selected object will be different.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Ashkam, 04-29-2024, 09:28 AM
|
4 responses
42 views
0 likes
|
Last Post
by Ashkam
Today, 02:38 PM
|
||
Started by nightstalker, Yesterday, 02:05 PM
|
1 response
29 views
0 likes
|
Last Post Today, 02:16 PM | ||
Started by dcriador, Today, 02:09 PM
|
0 responses
5 views
0 likes
|
Last Post
by dcriador
Today, 02:09 PM
|
||
Started by nicthe, Today, 07:38 AM
|
4 responses
21 views
0 likes
|
Last Post
by bltdavid
Today, 01:58 PM
|
||
Decrease the size of the RegionHIghLightY on each tick when the price touches it
by cmtjoancolmenero
Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
|
30 responses
98 views
0 likes
|
Last Post Today, 01:53 PM |
Comment