im trying to make DrawText work, but without any success. The Chart still blank of my test-text. Is there any other way, to draw a text on a strategy chart?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Text on Chart
Collapse
X
-
4800 its just for a try. but there is still nothing anywhere in the strategy chart and nothing is in the log.Code:if (CrossBelow(EMA(FastEMA), EMA(MedianEMA), 1)) { DrawText("tag", "test test test", 0, 4800, Color.Black); Print("FastEMA crosses below MedianEMA : " + Time[0].Date + " " + "ReboundSwitchShort : " + ReboundSwitchShort.ToString()); ReboundSwitchShort = true; Print(Performance.AllTrades.Count.ToString()); }
Comment
-
Hmm, please try this replaced your generic value with the Close of the last bar -
Please also try with a different condition, that switches from true to false more often than yours, likeCode:if (CrossBelow(EMA(FastEMA), EMA(MedianEMA), 1)) DrawText("tag", "test test test", 0, Close[0], Color.Black);
Also: are you using perhaps a black background?Code:if (Close[0] > Close[1]) DrawText("tag", "test", 0, Close[0], Color.Black);
Comment
-
unfortunately, nothing of your suggestions worked for me.
but i tried the followed:
It seems that the "CurrentBar" Postfix is important for my desired functionality.Code:DrawText("tag" + CurrentBar, Close[0].ToString(), 0, Close[0] + 10, Color.Red);
although thanks for your effort
Comment
-
You're welcome, great you got it working - without current bar it just means you plot only one drawing object and modify it each time, as the same unique tag is used - http://www.ninjatrader-support2.com/...ead.php?t=3419
Comment
-
Drawing on indicator panels
Is there a way of drawing on an indicator panel, ie panel other than the price panel? I have drawn a triangle on the price panel with no problems but cannot apply it to a panel other than 1
Duh Worked it Out DrawOnPricePanel = falseLast edited by MicroAl; 11-21-2009, 04:56 AM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
646 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
367 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 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
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment