Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1817

 
Alexander Avksentyev #:

Here's the code, maybe I'm specifying something wrong, but there's no effect.

You've commented out the trawl!!!

 /*  iTrailStart= MarketInfo(Symbol(), MODE_STOPLEVEL * Point);
   iTrailSL();
 */ 
 
Tretyakov Rostyslav #:

Do you know about this button?


ok

Files:
Test34.mq4  37 kb
 
Tretyakov Rostyslav #:

You're the one who recommended the trawl!!!

there are several

 
Alexander Avksentyev #:

there are several

You have commented out the trawl in OnTick()
 
Tretyakov Rostyslav #:
You commented out the trawl in OnTick()

There were two trawls, one of yours and one of mine, disassembled.

Fixed it all up. It's working.

I deleted everything and rewrote it.

Thanks for your help!

I'll keep digging to find out why the old trawl didn't work.

 
Alexander Avksentyev #:

There were two trawls, one yours and one mine, disassembled.

Fixed it all up. It's working.

I deleted everything and rewrote it.

Thanks for your help!

I'll keep digging to find out why the old trawl didn't work.

I saw that there were two trawls, but you have commented on the trawl.
 


It is not quite clear what "active" means. Does it include market orders accepted by the server but not yet executed? Where does the documentation say that?

 
secret #:


It is not quite clear what "active" means. Does it include market orders accepted by the server but not yet executed? Where does the documentation say about this?

A triggered pending order becomes a market order. And this market order may no longer be accepted. That is, an active order is the one that has not been reached by the price and has not yet been triggered.

 
Are market orders accepted by the server but not yet executed included in "active" orders?
 
secret #:
Are market orders accepted by the server but not yet executed included in "valid" orders?

Is the answer above unsatisfactory?

Reason: