I have an indicator with a custom button on chart, that buys/sells based on conditions. See code snippet below.
In the strategy, SetProfitTarget/SetStopLoss can achieves this. What is the equivalent way in Indicator class, to submit OCO bracket orders?
account.CreateOrder(Instrument, OrderAction.Buy, OrderType.Market, OrderEntry.Automated, TimeInForce.Day, 1, 0, 0, string.Empty, "Long", new DateTime(), null); account.Submit(new Order[] { mar****rder });
Comment