I want to run a strategy that opens position if the price crosses above previous bar's high.
So, what I do is at the end of the current bar, I need to place buy limit order for one cent above the high of the current bar.
In addition, in case the order is executed, then I want to place stop limit and take profit orders.
The problem is that I don't how to do it
I assume that I need to call NTBuyStopLimit("1", 100, High[0] + 0.01);
I have the following questions:
1. How do I know if the order was executed
2. How to place stop limit and take profit orders
3. How can I move the take profit and stop limit orders (manage position) ?
10x,
Comment