Support Board
Date/Time: Mon, 10 Feb 2025 01:55:23 +0000
Post From: How to enter two orders(no contracts)at the same time but with different targets/stop/trai
[2020-08-14 17:12:44] |
Hammerhead - Posts: 14 |
Hi, Your puzzle here is a bit of a doozy, but I'll take a crack at it. You should be able to use the same order structure for different orders, and set the structure members individually. Also, you probably would have to set what you're trying to accomplish up as a one triggers the other so as to have two separate code blocks where you are able to set structure members. For example, and hopefully this makes some sense: s_SCNewOrder NewOrder; if (Submit 1st order = true) { NewOrder.OrderQuantity; NewOrder.OrderType; etc... etc... int Result = (int)sc.BuyEntry(NewOrder); if (Result that would trigger another order = true) { NewOrder.OrderQuantity; NewOrder.OrderType; etc... etc... sc.BuyEntry(NewOrder); } } Maybe this will help you out a little, but if not, I apologize in advance. Regards, Date Time Of Last Edit: 2020-08-14 17:15:29
|