1. 2 unique orders Buy_1 and Buy_2.
2. Each have 2 separate conditions for entry.
3. Only one can be open at a time.
4. Each has a profit target
5. Each has a stop loss
6. Each has a dummy indicator to view as a dashed line for the profit target price
7. Each has a dummy indicator to view as a dashed line for the stop loss price
8. Each entry has it's own IOrder representing Buy_1's order set
9. Buy_1's Order set is Buy_1, Buy_1_Profit, Buy_1_Stop
10. Buy_1's IOrder set is buy1entry, buy1target, buy1stop
As to Thread 15, as per Josh's SampleCancelOrder.cs when buy1entry is filled as monitored in the OnExecution, buy1target and buy1stop are highly recommended to be launched from here. My question in Thread 15 was, "is this where I should say that Buy_1MarketPosition=Long since I just launched my "buy1target" and "buy1stop", since I'm assuming that Buy_1 is long at this point.
"An order is not updated or executed as frequently as OnBarUpdate and thus you are only getting the Prints in OnBarUpdate"
As to this statement above, if I do NOT put "Buy_1MarketPosition=Long" in the OnBarUpdate with the entry order and I DO put it in EITHER OnOrderUpdate or OnExecution, it DOES NOT Print.
Let me know if you need any further clarification as to my objectives.
Comment