I am having a bit of a problem.
I have MYSTRATEGY some thing like
if(event == true) {
AtmStrategyCreate(....)
}
and when 'event' occurs, AtmStrategyCreates creates an ATM strategy instance 1 correctly. However, before ths ATM strategy gets filled, 'event' happen again and it runs the ATM strategy instance 2. Sometimes both
these ATM strategy are created in same direction sometimes in opposite directions. (hope u get the idea :-)
Now, I would like
1) to limit that ONLY 1 instance of the ATM strategy should run at any one time per instrument (I tried setting unique ID etc etc., does not seem to work with ATM strategy)
2) I want to have an option to choose
a)MYSTRATEGY continues to run and execute AtmStrategyCreate again after a sucessful FILL of AtmStrategyCreate(...)
b)MYSTRATEGY should terminate after a sucessful execution of AtmStrategyCreate
Thanks in advance.

.
.
Comment