You need to start to use a bit with alerts for GetLastError()
Alert(GetLastError()) ;
or Print(GetLastError())'
the stop loss and the take profit are absolute values ? they are not automatically translated by the server / program depending on BUY or SELL intention ? Looks like it.
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
I have this code
if (orders==0)
{
OrderSend(Symbol(),OP_BUY,0.01,Ask,3,Bid-30*Point,Ask+30*Point,"ORDER_BUY",11111,0,DarkBlue);
}
-------------------------------------
if (orders==0)
{
OrderSend(Symbol(),OP_SELL,0.01,Bid,3,Bid-40*Point,Bid+30*Point,"ORDER_SELL",22222,0,Red);
}
-------------------------------------
The OrderSend code to BUY works fine, the OrderSend code to SELL does not do anything. I run either one or the other
Why will the OrderSend to SELL not work ?