mrchuckw:
if(SARCurrent > Ask) {ticket =OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0, "SAR Sell",MagicNumber,0,Red); send.text.3();}
why would this execute the send.text.3(); subroutine, but not open an order?
The Journal shows nothing except the mail: text being sent.
Read the documentation for OrderSend() and call the function with the correct parameters . . .
you have
Parameter | Your Value |
---|---|
symbol | Symbol() |
cmd | OP_SELL |
volume | Lots |
price | Bid |
slippage | 3 |
stoploss | 0 |
takeprofit | "SAR Sell" |
comment | MagicNumber |
magic | 0 |
expiration | Red |
arrow-color |
Do you see the problem ?
thanks... after the researching and testing on my own, it turned out to have a wrong parameter count.
But the compiler didn't tell me that, and the Journal didn't tell me that...
It was a real head scratcher.

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
if(SARCurrent > Ask) {ticket =OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0, "SAR Sell",MagicNumber,0,Red); send.text.3();}
why would this execute the send.text.3(); subroutine, but not open an order?
The Journal shows nothing except the mail: text being sent.