for MT support

 
Hi MT support

I have a question for you

example code:

start()
{
a = 5;
b = 10;
etc another istruction..........

if ( c == 20 )
myFunction( parametres ); // this function not found and stop the expert when the myFunction is called

if ( IsStopped() )
Alert(" the expert advisor was stopped");
}

the new quote arrives and the start function run but we suppose that for the first 5 quote the if ( c== 20 ) condition is false. when the six quote arrives , the if ( c == 20 ) condition will be true and myFunction is called and the expert advisor is stopped because the myFunction is not found

Now I want to receive an alert.
The problem is that the code is not read after the expert is stopped

On help of metaeditor there is writen that the code continue to read for another 2.5 second after the expert stopped but this is false else the istruction if ( IsStopped() ) Alert(".......") that follow the if ( c == 20 ) condition where the expert is stopped will be run.

I hope that my example is clear

genio
Reason: