hello guys
I have a question here... how do I change the following;
extern double MaxLot = 1.50;
double max_lot = GetMaxLot(OP_BUY, OP_SELL);
if (max_lot >= MaxLot) lot = CalcHedgeLot(order_type);
(order_type)]: ", lot);
if (lot == -1) return (lot);
lot = NormalizeDouble(lot, LotPrec);
if (lot > MaxLot) lot = MaxLot;
if (lot < MinLot) lot = MinLot;
return (lot);
}
the above check for OP_BUY AND OP_SELL
question: how do I change it to any OP_BUY OR any OP_SELL
appreciate
I have a question here... how do I change the following;
extern double MaxLot = 1.50;
double max_lot = GetMaxLot(OP_BUY, OP_SELL);
if (max_lot >= MaxLot) lot = CalcHedgeLot(order_type);
(order_type)]: ", lot);
if (lot == -1) return (lot);
lot = NormalizeDouble(lot, LotPrec);
if (lot > MaxLot) lot = MaxLot;
if (lot < MinLot) lot = MinLot;
return (lot);
}
the above check for OP_BUY AND OP_SELL
question: how do I change it to any OP_BUY OR any OP_SELL
appreciate
green pips