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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
52 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
24 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
16 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
24 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment