Forum

Is it possible to close order using price action or indicator

What i mean is that i want my EA to close my position if a certain criteria occurs. For example, my EA works on stochastic operation and i want to close a buying position if stochastic is above 80, and vice versa on selling position

My EA opens multiple orders in a pair... Any Solution to this.

I designed an EA using parabolic Sar and price action. But the EA continue to open multiple order in the same pair. And i only want to open a trade in a single pair. Any solution will be appreciated please. Here is the code for execution if (direction== 1 ) { ssl= 0 ; stp= 0 ;

Expert Advisor only open one chart

i need help on my ea. it does not enter orders on another chart if there is any open order on mt4. e.g if there is order on eurusd, then ea will not open order on another chart like gbpusd or usdcad or anyother. i tried changing the magicnumber but it does not work. please any help will do