MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading and Strategy Testing Forum

MetaTrader 5: Publishing trading forecasts and live trading statements via e-mail on blogs, social networks and dedicated websites MetaTrader 5: Publishing trading forecasts and live trading... Subscribe to signal
Good Friend Trojan
12.54%, 544.53 USD
Screenshot
IBERDROLA, H1
Real
SmartMA on History DealsSmartMA on History Deals Try product
SmartMA on History Deals
Author: song_song
PositionInfo Indicator
PositionInfo
Author: GODZILLA

// OPEN 2 ORDERS MT5

To add comments, please log in or register

Pablo
8
Pablo 2012.08.02 11:31
Pessoal no MT4, a única alteração foi mcdsample 1-2
Ele abriu duas ordens de uma só vez, mas não sei onde alterar MT5

MT4
/ Para simplificar a codificação e acelerar o acesso
/ / Os dados são colocados em variáveis ​​internas
    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);

    Total de OrdersTotal = ();
    if (total <1)
/

To add comments, please log in or register