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
Any way to increase the size of a DrawDot()?
Collapse
X
-
Tags: None
-
Hi DancesWithBears, unfortunately it isn't possible to increase the size of the dot. A workaround would be changing fonts for draw objects and DrawText() with the string ".".
Please see the attached picture for the syntax.
Code:#region Variables // 48 is the font size, and it might be too large. I haven't tested. private Font largeFont = new Font("Arial", 48); #endregion protected override void OnBarUpdate() { DrawText("myDot" + CurrentBar, true, ".", 0, High[0] + 2 * TickSize, Color.Black, largeFont, StringAlignment.Near, Color.Transparent, Color.Transparent, 0); }
AustinNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by tony_28217, Today, 07:04 PM
|
0 responses
3 views
0 likes
|
Last Post
by tony_28217
Today, 07:04 PM
|
||
Started by flybuzz, Today, 10:33 AM
|
1 response
8 views
0 likes
|
Last Post
by flybuzz
Today, 06:59 PM
|
||
Started by spencerp92, 10-10-2023, 09:56 AM
|
4 responses
303 views
0 likes
|
Last Post
by flybuzz
Today, 06:45 PM
|
||
Started by samish18, Yesterday, 10:13 AM
|
1 response
25 views
0 likes
|
Last Post Today, 06:15 PM | ||
Started by Austiner87, Today, 05:02 PM
|
0 responses
5 views
0 likes
|
Last Post
by Austiner87
Today, 05:02 PM
|
Comment