Forum

Making a range on mql4 coding

Hi, My problem is the following code snip below: if ( (ReferencePrice - 10*Point) < Bid < (ReferencePrice - 10*Point)) ; OrderSend (...............) My order executes at any point above (ReferencePrice - 10*Point) and vice versa. Is there any way of creating a range, so that when the Bid is

How to stop EA from placing multiple trades.

Summary of Problem/background: I am trying to place a buy stop order when the price hits a certain price, but I only want this to happen once, however I keep producing pending orders. For example if on "EURUSD" , the price reaches 1.06700 and then places a buy stop at 1.06725. How do I ensure this