Errors, bugs, questions - page 2819

 
fxsaber:

Or, for example, you want to investigate the effect of the tester's delay functionality on the EA's result. To do this, you need to estimate what the slippage was becoming. And it cannot be done. Specifically, I cannot do it.

In the Strategy Tester we managed to do it in the standard way. We change the value of the execution field as shown in the screenshot.


The result.


Zeros disappeared and we can estimate slippage in the tester. The problem is open for Real.

 
Andrei Trukhanovich:

replacing the marker with a fixed limit will not help?

It won't, because the non-exchange limit in the tester is executed on the next tick, not the current one. As on most reals.

Forum on trading, automated trading systems & strategy testing

Limits/tickets at the current price in terminal (not in tester)

fxsaber, 2020.05.19 11:17

MT5


Another platform


I tried to record a video on MT5 several times, because I wanted the video to be short - the execution happened in few seconds.

 
SanAlex:

I have a similar function - template change on the chart. before the update everything worked fine, now it changes but, on one chart it can happen, several windows with a template

I have the same thing, a way around the bug is to first close then open the chart, the second and further application of the template duplicates the windows

In the example applying an empty template several times


 
Aleksander:

no - this is really my first time using the Signals service... and what do i see? one week the percentages are counted this way and that way... and next week what should i expect in the widget? another 0%???

i get cognitive dissonance - when i see one thing here - and then i see another - and what should i believe then????

How do widgets calculate percentages in this way?

The widget shows data that "seemingly can be trusted". And you can print out the 4333% figure and hang it on the wall.

The system automatically excludes the months with abnormally high growth from the total calculation, as well as all months before that, if it detects that the current results on the signal don't match the past ones.



 

CHART_BRING_TO_TOP not working

void OnStart()
{
        long first = ChartFirst();
        long next  = ChartNext( first );
        ChartSetInteger( next , CHART_BRING_TO_TOP, 0, true );
        ChartSetInteger( first, CHART_BRING_TO_TOP, 0, true );
}

Running the script on the 1st (left) chart... result:

Focus on 2nd (right) chart and should have gone back to 1st (left) chart

I don't know what build this error is from, but it worked fine before (build 2085)

 
A100:

CHART_BRING_TO_TOP not working

Running the script on the 1st (left) chart... result:

Focus on 2nd (right) chart and should have gone back to 1st (left) chart

I don't know what build this bug is, but it worked fine before (build 2085)

It is not working after last update, but for some reason technical support did not report it as a bug

Forum on trading, automated trading systems and trading strategies testing

Bugs, bugs, questions

SEM, 2020.08.08 10:31

Function is not working anymore after upgrade

ChartSetInteger(0,CHART_BRING_TO_TOP,0,true)

Not switching to 0 chart, what should be the bug?

void OnStart()
  {
   long currChart,prevChart=ChartFirst();
   int z=0,limit=100;
     while(z<limit)
     {
      currChart=ChartNext(prevChart);
      string __simvol=ChartSymbol(currChart);
      ENUM_TIMEFRAMES __period=ChartPeriod(currChart);
      if(currChart==-1)
        {
         __simvol=Symbol();
         currChart=0;
        };
         if(!ChartSetInteger(currChart,CHART_BRING_TO_TOP,0,true))
        {
         //--- выведем сообщение об ошибке в журнал "Эксперты"
         Print(__FUNCTION__+", Error Code = ",GetLastError());
         //return(false);
        };
      Print(currChart, "  ", __simvol);

      Sleep(2000);
      if(currChart==0)
         {break;};
     prevChart=currChart;
      z++;

     };
  }

 

Hi !!! What's wrong with this sample script ?


void OnStart()
  {
   datetime time= iTime(
                     "NULL",          // символ
                     PERIOD_CURRENT,  // период
                     0                // сдвиг
                  );
   Alert("Time= ",time);
  }

it says --- D'1970.01.01 00:00:00'

Документация по MQL5: Константы, перечисления и структуры / Константы графиков / Периоды графиков
Документация по MQL5: Константы, перечисления и структуры / Константы графиков / Периоды графиков
  • www.mql5.com
Все предопределенные периоды графиков имеют уникальные идентификаторы. Идентификатор PERIOD_CURRENT означает текущий период графика, на котором запущена mql5-программа.
 
Kira27:

Hi !!! What's wrong with this sample script ?


it gives out --- D'1970.01.01 00:00:00'

It means that the character with the name

"NULL"

does not exist.

It happens

"EURUSD"

happens

"USDJPY"


but there is no such symbol:

"NULL"

does not exist.


Added: that is correct:


 
Vladimir Karputov:

This means that a symbol with the name

does not exist.

It is

happens


but there is no such symbol:

does not exist.


Added: that's correct:

Thank you!!!


Thank you!!!
 
Vladimir Karputov:

This means that a symbol with the name

does not exist.

It is

happens


but there is no such symbol:

does not exist.


Added: that is correct:


The reference threw me into a stupor)))