samsungj4:
What is the value of order when unsuccessful... and try a print of GetLastError() ?
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...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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...