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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
56 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
143 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
160 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
96 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment