Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 610

 

Hello, dear friends.

I'm stumped, last week the owl was working fine, this week it's giving the following error in the log

2014.05.23 18:30:11.877 '91314348': order buy 1.02 USDCADpro opening at 0.00000 sl: 1.08941 tp: 1.09161 failed [Invalid S/L or T/P]

2014.05.23 18:30:10.519 '91314348': order buy market 1.02 USDCADpro sl: 1.08941 tp: 1.09161

Here is a bit of code

ticket=OrderSend(Symbol(),OP_BUY,Lot,Ask,Slippage,Ask-stop_loss*Point,Ask+take_profit*Point,"!",0,0,Blue);


Parameters are as follows

extern int take_profit=100;
extern int stop_loss=120;
extern double lot=0.10;
extern int Slippage=30
;

I have not changed anything in the code, I have only entered the Slippage parameter.

I don't seem to have changed anything else, but the robot stopped working after that.

Please help me to understand this problem.

 

Oops, sorry. The lot is regulated by the MM. It's not 0.1. But it doesn't matter here.

I added this clarification so that you are not confused by this point.

 
Share the basement No-Loss indicator, kind people. (Other than Urdala).
Maybe someone has an iEposure with a BU column, that would be awesome!
 
FOReignEXchange:

Hello, dear friends.

I'm stumped, last week the owl was working fine, this week it's giving the following error in the log

2014.05.23 18:30:11.877 '91314348': order buy 1.02 USDCADpro opening at 0.00000 sl: 1.08941 tp: 1.09161 failed [Invalid S/L or T/P]

2014.05.23 18:30:10.519 '91314348': order buy market 1.02 USDCADpro sl: 1.08941 tp: 1.09161

Here is a bit of code

ticket=OrderSend(Symbol(),OP_BUY,Lot,Ask,Slippage,Ask-stop_loss*Point,Ask+take_profit*Point,"!",0,0,Blue);


Parameters are as follows

extern int take_profit=100;
extern int stop_loss=120;
extern double lot=0.10;
extern int Slippage=30
;

I have not changed anything in the code, I have only entered the Slippage parameter.

I don't seem to have changed anything else, but the robot stopped working after that.

Please help me to understand this problem, I can't understand this problem.


FOReignEXchange:

Hello, Dear Sirs.

Something i am stumped, last week the owl was working fine, this week it gives this error in the log

2014.05.23 18:30:11.877 '91314348': order buy 1.02 USDCADpro opening at 0.00000 sl: 1.08941 tp: 1.09161 failed [Invalid S/L or T/P]

2014.05.23 18:30:10.519 '91314348': order buy market 1.02 USDCADpro sl: 1.08941 tp: 1.09161

Here is a bit of code

ticket=OrderSend(Symbol(),OP_BUY,Lot,Ask,Slippage,Ask-stop_loss*Point,Ask+take_profit*Point,"!",0,0,Blue);


Parameters are as follows

extern int take_profit=100;
extern int stop_loss=120;
extern double lot=0.10;
extern int Slippage=30
;

I have not changed anything in the code, I have only entered the Slippage parameter.

I don't seem to have changed anything else, but the robot stopped working after that.

Please help me to understand this problem.

Did you change the type of account?
 

I have not changed the account type. I have not even reinstalled the terminal. I haven't even reinstalled the terminal. In short, everything is as it was. I only changed the owl code.

I programmed this robot myself. I programmed a lot of things before that, too. But now I'm just stumped. I don't understand anything. Why the opening price is 0.00000. I can't understand what it is.

Please help, people of goodwill )

 

Example2:
Здравствуйте. Корзиночный советник, при наступлении условии должен закрыть все ордера, но он сначала закрывает ордер, потом пытается закрыть его снова (сервер выдает ошибку "Неверный тикет") и только потом идет дальше. Вот пример кода и сам советник.

Answer:

Hello, hanny. Sorry, but my logic tells me that there's no hint of a ticket number in this piece of code. Where does it come from?

 
FOReignEXchange:

I have not changed the account type. I have not even reinstalled the terminal. I haven't even reinstalled the terminal. In short, everything is as it was. I only changed the owl code.

I programmed this robot myself. I programmed a lot of things before that, too. But now I'm just stumped. I don't understand anything. Why the opening price is 0.00000. I don't understand what it is.

Please help, people of goodwill )


Maybe try a different terminal?

 

Tried on two different terminals, on different computers. The trades do not open.

 
FOReignEXchange:

Simply, if the closing fails, the ERRORS function is called and it already generates error 4108 and returns 2. After that, while should stop, but it goes to the second round and only then stops
 
FOReignEXchange:

Tried on two different terminals, on different computers. The trades do not open.


Who knows, I've never seen an opening price of 0.00000, maybe RefreshRates() try.......
Reason: