Forum

stop repeating orders in same point

How i can stop Duplicate Transactions in EA Please help me bool OrderIsActive(int ordertype) { for(int i=0;i<OrdersTotal();i++) { OrderSelect(i, SELECT_BY_POS, MODE_TRADES); if (OrderMagicNumber()==MagicNumber && Symbol()==OrderSymbol() && OrderType()==ordertype) return(true); }

coding help

The robot I work on opens multiple deals about the same price, I want to stop repeating trades from the same point. For example, if the price of 1.200 opens only one transaction regardless of its type, and continues until the condition is met again and opens one deal at the new price. Question 2: I

coding help

The robot I work on opens multiple deals about the same price, I want to stop repeating trades from the same point. For example, if the price of 1.200 opens only one transaction regardless of its type, and continues until the condition is met again and opens one deal at the new price. Question 2: I

learning

how i can learn language mql4 in the best and fast way for programming an expert advisor and writing it's conditionals in easy way and like i want.please help