Forum

Close Old Orders

Hi All - I need help with the following scenario: Example I am creating an EA based on the EMA cross over/order. So when an EMA cross under I would do a sell and when it cross over I would do a buy. I am trying to close any previous position (buy/sell) when the EMA goes opposite to the order. If

Understanding Input Doubles Relative to Price

I am trying to understand regarding input price as a double values against the actual market price in pips. For example I am working on a simple indicators where a user specify how close the price is relative to the 8 day EMA and then it will alert to buy or sell as an example. Per the scenario