Forum

moving average expressions not working correctly

The ea is like this: If two bars form higher highs and the third bar closes 50% of second bar AND is below the moving average, then place order to sell. Placing an order to buy would be just the opposite. The buys happen when the statement is not even true, and the sells do not happen at all. The

Hedge EA WILL NOT WORK: ERROR 130, 4107, AND 4109

Can someone please help me with this code. It is a hedge strategy I am trying to write but I can not get it to work. It is suppose to open a buy and sell simultaneously. When either side is stopped out, the stop of the winning order should move to the opening price of the order(Break-even) then