[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 356

 

The order is modified correctly all the time, here are some of the results

...
633 2011.04.22 15:45 modify 1 1.00 1.40997.4565 0.0000 0.00 10000.00
634 2011.04.22 16:00 modify 1 1.00 1.40997.4564 0.0000 0.00 10000.00
635 2011.04.22 16:15 modify 1 1.00 1.40997.4562 0.0000 0.00 10000.00
636 2011.04.22 16:30 modify 1 1.00 1.40997.4561 0.0000 0.00 10000.00
637 2011.04.22 16:45 modify 1 1.00 1.40997.4559 0.0000 0.00 10000.00
...

The question is why the stop is not triggered in time?

 
_Aybulat_:

The order is modified all the time, here are some of the results

...
633 2011.04.22 15:45 modify 1 1.00 1.4099 7.4565 0.0000 0.00 10000.00
634 2011.04.22 16:00 modify 1 1.00 1.4099 7.4564 0.0000 0.00 10000.00
635 2011.04.22 16:15 modify 1 1.00 1.4099 7.4562 0.0000 0.00 10000.00
636 2011.04.22 16:30 modify 1 1.00 1.4099 7.4561 0.0000 0.00 10000.00
637 2011.04.22 16:45 modify 1 1.00 1.4099 7.4559 0.0000 0.00 10000.00
...

The question is why the stop is not triggered in time?


what does "that" have to do with it? where is error #1 in this report?
 
The parabola is reversed, but the stop is not triggered, and when the parabola moves back towards the previous trade the modification of the previous order continues.
 
 
abolk:

What do you mean "in this case"? Where is error #1 in this report?


This is not the log, this is the result, in the log itself besides the error

OrderModify error 1

there's nothing

 
_Aybulat_:


This is not the log, it is the result, in the log itself apart from the error

OrderModify error 1

there is no error


Yes - with such "exhaustive" "unambiguous" questions - the answer will take a long time to come

if there is error #1 when modifying - there is no order modification

read when error #1 occurs during modification

https://docs.mql4.com/ru/trading/OrderModify

 
Grein:
Better to give up the start function then

. And outside it, organize its own interrupt function, with desired intervals in sec, min, by setting interrupt flags. And main body of program just run through these flags in loop, and when they are ready, execute custom procedures. And one of these procedures can be used for obtaining a fresh quote, it won't be tick-based, but we can set the right load factor in seconds and get it as needed. Thus, it will be a real time system, not connected with events - tick. That's the way it is.
Can you lay out the code? Maybe some pseudo-code. How can it be without start...? It's a basic function, like main() in C++.
 

Dear Professionals, could you please tell me how stable the terminal is if it has been running for a long time?

I've noticed that after 2-3 days the EA has been working, the work of sending email notifications falls off. May be the terminal gets tired somehow ?

What should I do to prolong the stable operation of the terminal ? There was a discussion about rebooting PC - maybe it's for the same thing ...

I would be grateful for any comments based on practice.

Vitaly.

 

Yes, "any newcomer's question"!

Have you read your branch? Or do you, like grouse, hear only your petty, very necessary and understandable to newcomers, techno-talk?

 
No one seems to have looked at the code, that's OK, already fixed. Thank you. (chuckles)
Reason: