Download MetaTrader 5

/end_of_program'-

To add comments, please log in or register
Vivek Vyas
217
Vivek Vyas  
void BuyOrderModifyFlex60()
{
    for (int i=OrdersTotal()-1; i >= 0; i--)
    if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))
    {
        if (OrderType() == OP_BUY && OrderSymbol() == Symbol() && OrderMagicNumber() == 1)
        {
            double SL = NormalizeDouble(iCustom(NULL, NULL, "superdupertrend",22,0,15,6,0), NDigits);
            double TP = NormalizeDouble(iCustom(NULL, NULL, "superdupertrend",22,0,15,0,0), NDigits);
            bool ret = OrderModify(OrderTicket(), OrderOpenPrice(), SL, TP, 0, White);
            if (ret == false)
            Print("OrderModify() error - ", ErrorDescription(GetLastError()));
        }
    }
    
}



int deinit()
{
    if (false) ObjectsDeleteAll();
    
   
}

ERROR LOG IS '\end_of_program' - unbalanced left parenthesis

ERROR LINE MARKED YELLOW PLEASE KINDLY ADVICE HAVE COME HERE AFTER GOOGLING TOPIC AND ALL RESEARCH WORK.


whroeder1
15321
whroeder1  
Error is always above the indicated line.
Vivek Vyas
217
Vivek Vyas  
Thanks WHRooeder !!cheers !!it was really helpful !!
To add comments, please log in or register