I have several questions regarding a strategy I am currently working at.
1.) On the start of each new day, I want to submit a Long Limit as well as a Short Limit order, which cancel each other as soon as one is being executed. However, I can only submit one order at a time, depending which one I put first in the code.
EnterLongLimit(DefaultQuantity, Low[0], ""); EnterShortLimit(DefaultQuantity, High[0], "");
3.) If the profit target of the current position is met, the strategy waits until the next bar to execute a limited order (which happens to be on the same level as the profit target). Is there a way, to simultaneously execute the profit target as well as the limit order?
I would highly appreciate any help on these three questions, since my programming knowledge is rather limited.
Regards,
Sepp
Comment