In general, is there a way to specify which instrument will be managed by the ATM.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ATM with Multi-Instrument
Collapse
X
-
ATM with Multi-Instrument
I want to call AtmStrategyCreate() for barseries=0, when BarsInProgress != 0.
In general, is there a way to specify which instrument will be managed by the ATM. -
srvsrv,
AtmStrategyCreate() will just create the order as whichever instrument the OnBarUpdate() is currently processing. So if BarsInProgress == 1 and that happened to be MSFT, it would trade MSFT. If it were BarsInProgress == 0 and that was AAPL, then it would trade AAPL.Josh P.NinjaTrader Customer Service
-
Josh,
Thanks for the quick reply.
Can you reccomend a reliable way to signal:
FROM OnBarUpdate(), when BarsInProgress = x;
TO OnBarUpdate(), when BarsInProgress = y?
The signal triggers a call to AtmStrategyCreate() with known parameters.
A shared variable (semiphore?) might work but I'm concerned about unanticipated sync. problems in a multi-threaded environment, which I have little experience with.
The strategy I'm working on works calls (for example) EnterLong() as the BarSeries can be specified. I was surprised to learn it is not supported in the ATM API.
Thanks.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
47 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
15 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
21 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment