Forum

Sell Order Opening and Closing position on Entry

Hi Guys I'm new to coding and I've got a problem with my sell order opening and closing the trade as soon as it enters. Can anyone figure out why. Im trying to sell when the MinusDi crosses the PlusDI, or when MinusDI is Higher than PlusDI. Any help would be great. //....................ENTERING

Sell Trade is opening and Closing on Entry

Hi Guys Im new to coding but does anyone know why my sell trade is opening and closing on entry. Ive put my code below feel free to stick it into MT4. #property strict //Always Keep // FIND OUT WHY SELL ARE NOT WORKING AS EXPECTED //.............Input