When i use AtmStrategyChangeStopTarget right after AtmStrategyCreate (and before entry has been filled) i do not get the desired effect when the entry is filled as it uses the params from origianl template. Should i assume these methods only work when an ATM is live? Or is this an oversight?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Using AtmStrategyChangeStopTarget before strategy is active
Collapse
X
-
Using AtmStrategyChangeStopTarget before strategy is active
I want to create an ATM strategy and modify its STOP1 and TARGET1 imediately so all i need to use is a single template and my code can customise the stop and targets.
When i use AtmStrategyChangeStopTarget right after AtmStrategyCreate (and before entry has been filled) i do not get the desired effect when the entry is filled as it uses the params from origianl template. Should i assume these methods only work when an ATM is live? Or is this an oversight?Tags: None
-
5 years later... just wondering what became of this. Does AtmStrategyChangeStopTarget() now change the stop or target in the ATM strategy before the entry order is filled?
This should be clarified in the documentation.
-Alex
Comment
-
OK. I guess this is still under future consideration then.
Having written my own framework to simulate ATM strategies in backtest, it was a simple thing to have AtmStrategyChangeStopTarget() adjust the stop and target of an already-created ATM strategy before the entry order is filled. I had assumed this was the case with "live" ATM strategies, but if not, then the documentation should clarify this point (and I'll have to remove that feature from my framework).
There are times when the stop and target would be determined dynamically by price action (say, the target is the high of the previous bar and the stop is the low of the last 5 bars), in which case the fixed stop and target of the ATM strategy is impractical. It is also impractical to have to track the entry fill just for the purpose of adjusting the exit bracket, instead of setting the exit bracket immediately after calling AtmStrategyCreate().
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
649 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
576 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment