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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
68 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
37 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
62 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment