Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Size of arrow/diamond etc?
Collapse
X
-
Its extremely annoying that it can't easily be done (NT7 hopefully)Originally posted by ju1234 View PostIs there a way to control the size of the arrow / diamond etc that are drawn on the chart?
, but here's an example of what to do in the meantime.
Code:#region Variables private int markersize = 15; private System.Drawing.Font textFont;This code will draw up and down arrows using wingdings at the high an low. Adjust as needed.Code:protected override void Initialize() { textFont = new Font("Wingdings 3",markersize);
Code:protected override void OnBarUpdate() { DrawText("This is an up arrow","‡",0,High[0]+TickSize,Color.Blue, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0); DrawText("This is a down arrow","ˆ",0,Low[0]-TickSize,Color.Red, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);Code:#region Properties [Description("Marker Size")] [Category("Visual")] [Gui.Design.DisplayName("Marker Size")] public int MarkerSize { get { return markersize; } set { markersize = Math.Max(1,value); } }
Comment
-
You must use the exact Font Name as displayed in the Upper Left DropDown of the "charmap". On my computer I do not have "Wingdings 3" but I do have "Wingdings" and many more. MarkerSize is just an int variable for the Font Size. So make this change if needed.
// textFont = new Font("Wingdings 3",markersize);
textFont = new Font("Wingdings",markersize);
To get to the charmap Strat / Run / type in "charmap" if you did not already know that.
Hope that helps.
Comment
-
Will it be possible to change the scale of the various Chart Markers in the Draw Tools menu in version 7 ?? ....the existing markers are so small one cannot (easily) tell the difference between them, and they can easily get lost in a chart being so small currently.
Thanks...
Comment
-
When using these special characters from the wingding files, how do we type the character into our NinjaScript file ? I'm assuming the need to use some ALT+(ASCII CODE) at the keyboard for the extended code, but I'm not able to do that as the script uses the default font loaded at that time and the character comes out different?
Please advise.
Comment
-
Open Wordpad, type all the characters of the top row, repeat with shifted keys, then repeat this process with all the other key rows. You should have eight rows of characters. Highlight the whole bunch, move down a (blank) line, paste. Repeat pasting a few times. Now, keeping the top batch as reference, highlight the second group and then select a wingdings character set. Highlight the third group and then change to a different wingdings set. Repeat process for every symbol set you have. Save file and use for reference any time you want to include special characters.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment