Stop EA after open a trade.

 

hi

im start learning programming EA.

i have a simple EA.

i want the EA go offline mode after OPEN a trade for a while.

it's better if any function that EA can wait for xx time/bar then start working again.

if not, EA must be start manually by user is no problem.

any one can help ? what code i must write ?


here im provide the source file.

Files: