Download MetaTrader 5

Please Help

To add comments, please log in or register
Do you want to order an application? Find out how to obtain the desired result
Pablo
10
Pablo 2012.08.02 02:48 
Staff in MT4, the only change was mcdsample 1 to 2
He opened two orders at once, but do not know where to change MT5

MT4
/ To simplify the coding and speed up access
/ / Data are put into internal variables
    MacdCurrent iMACD = (NULL, 0,12,26,9, PRICE_CLOSE, MODE_MAIN, 0);
    MacdPrevious iMACD = (NULL, 0,12,26,9, PRICE_CLOSE, MODE_MAIN, 1);
    SignalCurrent iMACD = (NULL, 0,12,26,9, PRICE_CLOSE, MODE_SIGNAL, 0);
    SignalPrevious iMACD = (NULL, 0,12,26,9, PRICE_CLOSE, MODE_SIGNAL, 1);
    MaCurrent = IMA (NULL, 0, MATrendPeriod, 0, MODE_EMA, PRICE_CLOSE, 0);
    MaPrevious = IMA (NULL, 0, MATrendPeriod, 0, MODE_EMA, PRICE_CLOSE, 1);

    OrdersTotal total = ();
    if (total <1)
To add comments, please log in or register