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 RaygunWizzle, Yesterday, 08:52 PM
|
3 responses
11 views
0 likes
|
Last Post Today, 02:50 PM | ||
Started by Tim-c, Today, 08:36 AM
|
4 responses
14 views
0 likes
|
Last Post Today, 02:45 PM | ||
Started by JohnS52, 03-22-2024, 08:06 AM
|
4 responses
28 views
0 likes
|
Last Post
by JohnS52
Today, 02:30 PM
|
||
Started by carnitron, 03-25-2024, 01:59 PM
|
11 responses
53 views
0 likes
|
Last Post
by carnitron
Today, 02:18 PM
|
||
Started by Gerik, 12-21-2023, 08:20 AM
|
15 responses
203 views
0 likes
|
Last Post
by Mindset
Today, 02:06 PM
|
Comment