Topics

Forum Topics not found

Replies

Сергей Кутепов
03 Sep 2016, 11:29


            var longPosition = Positions.FindAll("myLabel", Symbol, TradeType.Buy);
            var shortPosition = Positions.FindAll("myLabel", Symbol, TradeType.Sell);


            if (longPosition.Length > MaxOrders)
            {
                 Print("Покупка не возможна");
            }
                 else
            {
            ExecuteMarketOrder(TradeType.Buy, Symbol, Volume, "myLabel", StopLoss, TakeProfit);
            }

 


@Сергей Кутепов