Experts: Auto Trader

 

Auto Trader:

The Expert Advisor enables and disables the "AutoTrading" button at a certain time and closes all opened positions on the account once the specified period of time expires.

Author: Andrew Kornishkin

 

Hi my friend  Andrew Kornishkin.

In this program, this loop is wrong:

                 for(int i=0; i<PositionsTotal(); i++)
                                {

                                }

and the right:

                    for(int i=PositionsTotal()-1; i>=0; i--)
Thank with this program.

 

Nice code..

But it toggles the ctrl+e even outside the mt terminal..

Reason: