buy and sell order
Hi,
I have written a small expert advisor.
If the price is above the moving average you buy and if the price is below moving average you sell.
But it only sells... what am I doing wrong?
If I remove the code to sell it only buys.
Help!
If you look at the picture below, in the results I only have sell trades, no buy trades. what is happening?
https://imgur.com/a/8SAyJgn
If I remove the OrderSend and if statement for sell, I get only buys...
Hi,
I have written a small expert advisor.
If the price is above the moving average you buy and if the price is below moving average you sell.
But it only sells... what am I doing wrong?
If I remove the code to sell it only buys.
Help!
If you look at the picture below, in the results I only have sell trades, no buy trades. what is happening?
https://imgur.com/a/8SAyJgn
If I remove the OrderSend and if statement for sell, I get only buys...