New MetaTrader 5 platform build 1930: Floating window charts and .Net libraries in MQL5 - page 10

To add comments, please log in or register
Sergey Golubev
Moderator
108342
Sergey Golubev  

Forum on trading, automated trading systems and testing trading strategies

Build terminal before 1970

Renat Fatkhullin , 2019.01.16 22:12

Upgrade to build 1972, please. They fixed a number of errors.

To avoid updates, do not work on our test server MetaQuotes-Demo.


Sergey Golubev
Moderator
108342
Blahtech Limited
9474
James Cater  

MT5 Strategy Tester issue

Ctrl and Shift keys are not recognised in the "Strategy Tester"

#property strict
#property indicator_chart_window
#property indicator_plots 0

int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
{
   return rates_total;
}

void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam)
{
   Comment("Ctrl=", TerminalInfoInteger(TERMINAL_KEYSTATE_CONTROL), " Shift=", TerminalInfoInteger(TERMINAL_KEYSTATE_SHIFT));
}


This works on the live charts, but not in the Strategy tester

Sergey Golubev
Moderator
108342
Sergey Golubev  
To add comments, please log in or register