Download MetaTrader 5
To add comments, please log in or register
Use the Pocket to paste your content. It is convenient!
rob
8
rob 2014.02.19 20:47 

Hi,

my script is:

double lots = 0.1; // Lotsize


int ticket;

int start()
{
ticket=OrderSend(Symbol(), OP_BUY, lots, Bid, 3, 0, 0);
return(0);
}

it gives the error:
buy-with-sl EURUSD,M5: trade operations not allowed by settings

when i want to run it on my Chart...

why?

Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2014.02.19 21:00  
RobDust:

Hi,

my script is:

<REMOVED>

Please use the SRC button to post code . . .
Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2014.02.19 21:03  
RobDust:

Hi,

my script is:

why?

You OP_BUY at Ask not Bid . . .

Check the Return value from your OrderSend() and report errors: What are Function return values ? How do I use them ?

Did you allow live trading ?

rob
8
rob 2014.02.19 21:11  
GREAT! Your Screensho saved me :) works now ;)
/
To add comments, please log in or register