Many many thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Entering a trade in the last minute of a 3 minute-bar
Collapse
X
-
Is there any way to adapt the code to be working also in MARKET REPLAY?. Since the time in market replay doesn't match with the realtime (normally) the code will not work. I need this because I test the system in market replay before doing it in realtime.
An idea would be to start the counter in 0 instead of doing it with the current time and consider the different witht the alert with 2 minutes. But how could be the code for it?
Thanks and Regards,
Jose
Comment
-
Hi Adam,
I have solved it in a very easy way:
if (Bars.PercentComplete >= .67) DrawTextFixed("Tpo", "OK", TextPosition.TopRight,Color.Green,arial,Color.Tran sparent,Color.White,5);
else DrawTextFixed("Tpo", "\n"+"WAIT", TextPosition.TopRight,Color.Black,arial,Color.Tran sparent,Color.White,5);
I post it here just in case it is useful to someone.
Regards,
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 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
573 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
575 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment