I’m a little confused by the default behaviour of using an ATM in the following way:
Assume I have a basic ATM with a 10 tick SL/TP and quantity of 1. Name = myATM. Buy Market x 1, result:
Position = 1, Stop1 = 1, Target1 = 1.
ATM selector changes to ‘myATM-1’, indicating a new active instance of myATM. So far so good. Any additional orders with this selection will scale into the ATM. and increase/descrease everything accordingly.
Now, with this position as above, if I change the ATM selector from ‘myATM-1’ back to ‘myATM’, and Buy. I get the following:
Position = 2, Stop1 = 2, Target1 = 2, Stop2 = 1, Target2 = 1.
And this doesn’t make sense to me. Should manually reselecting the original ATM template, submit an ATM with the base settings again?
If you do this with code using StartATMStrategy(); it does behave in the way you expect and spits out a new bracket each time without getting things out of sync.