CalculateOnBarClose = true so that the order will be filled on the next bar how would I draw some text on the current bar 5 minutes prior to the close of the current bar? (Assuming the entry signal was fired sometime between 0 min =< t <= 25 min)
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
bar close question
Collapse
X
-
bar close question
If I have a strategy that fires an entry order on a 30 minute bar and
CalculateOnBarClose = true so that the order will be filled on the next bar how would I draw some text on the current bar 5 minutes prior to the close of the current bar? (Assuming the entry signal was fired sometime between 0 min =< t <= 25 min)
I am aware of the DrawText() function but its the timing aspect I'm not sure about.
Thanks.
Tags: None
-
mballagan, you can realize this with a multiseries strategy, just add for example a 5 min series to your strategies to use the timestamps in this interval to execute your code - http://www.ninjatrader-support.com/H...struments.html
-
Draw text on bar
Thanks I have managed to figure out how to work out if 5 minutes are remaining of a 30 bar candle using an additional 5 min bar series (the primary series being 30 min) and the BarsInProgress property.
How do I draw text actually onto a candle. I have tried using the following syntax:
DrawText("GemShortEntry","G",0,Close[0],Color.Red);
This doesnt seem to display anything. is the y coordinate of Close[0] wrong?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
110 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
59 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
37 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
78 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment