Thank you for assistance
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy to send orders immediately when it is Enabled
Collapse
X
-
Strategy to send orders immediately when it is Enabled
I am using Ninjatrader wizard to build new strategy, and want my strategy to send orders immediately when I press Enable in the Control Panel, and not wait for incoming tick to activate the strategy. How do I program this condition using the wizard? I use COBC=False and GetCurrentAsk()>GetCurrentBid() as my condition but it still waits for incoming tick to send orders.
Thank you for assistanceTags: None
-
alvin050, this would be unfortunately expected when working with your code in OnBarUpdate() - a tick has to be seen to trigger the logic, eventhough you're working with COBC = false. Please also keep in mind your GetCurrentAsk / GetCurrentBid properties only could work in realtime, for historical data they would use the close price.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
152 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
87 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
131 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
127 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
106 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment