Good afternoon, I wanted to ask a question as I have a problem when making a OrderSend. Is it possible that the same Expert Advisor in MT4 platform from a broker to work properly and the same version but with another broker MT4 me of the error 130 to do OrderSend?
- Virtual hosting in MetaTrader 4 and MetaTrader 5: How it works
- Limitations and advantages of indicators
- Shared use of resources of different MQL programs
jugivi:
Good afternoon, I wanted to ask a question as I have a problem when making a OrderSend. Is it possible that the same Expert Advisor in MT4 platform from a broker to work properly and the same version but with another broker MT4 me of the error 130 to do OrderSend?
Good afternoon, I wanted to ask a question as I have a problem when making a OrderSend. Is it possible that the same Expert Advisor in MT4 platform from a broker to work properly and the same version but with another broker MT4 me of the error 130 to do OrderSend?
Yes, that's possible
Can you display your OrderSend function ?? and give some detail what broker it works and what broker it fails ??
deVries:
Yes, that's possible
Can you display your OrderSend function ?? and give some detail what broker it works and what broker it fails ??
Thanks, I do well with Alpari-UK and does not work with ActivTrades??
double cantidad_jugada_entrada = 0.10;
int slippage_entrada = 30;
int take_profit_entrada = 200;
int stop_loss_entrada;
if (ticket_compra > 0) // Got it!:)
{
Alert ("Open Order... ", ticket_compra);
break;
}
//
//Error Control
int Error=GetLastError(); // Failed :(
Alert ("Error...", Error);
switch(Error) // Overcomable errors
{
case 129:Alert("Precio no válido. Reintenta...");
RefreshRates();
Sleep(300);
continue;
case 130:Alert("Stop Loss invalido... ", stop_loss_entrada);
RefreshRates();
Sleep(300);
continue;
jugivi:
Please edit your post . . . . Thanks, I do well with Alpari-UK and does not work with ActivTrades??
<SNIP>
Please use this to post code . . . it makes it easier to read.

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