Questions on MQL5 Wizard and standard library of trading classes - page 3

 

In the article "Creating information boards using classes from the Standard Library and Google Chart API", the author writes in particular:

...Все классы библиотеки (кроме торговых) происходят от базового класса CObject. Для более наглядного представления, попытаемся построить Диаграмму классов , ведь у нас для этого всё есть - базовый класс и его наследники...

I look at the declaration of trading classes and see:

class CTrade : public CObject

The same declaration is in the file Trade.mqh.

As they say, who's right? :-)

 
denkir:

In the article "Creating information boards using classes from the Standard Library and Google Chart API", the author writes in particular:

I look at the declaration of trading classes and see:

As they say, who's right? :-)
The article was written before... The standard library lives and evolves. Sometimes you have to change something. For the most part, it goes painlessly (and therefore unnoticed).
 
uncleVic:
This article was written before... The standard library lives and grows. Sometimes things have to change. For the most part, it goes painlessly (and therefore unnoticed).
That's all well and good, of course. But I think that if the article is not in the archive, but in direct access, you have to make adjustments to it. Otherwise the reader is misled, imho...
 
denkir:
That's all well and good, of course. But I think that if the article is not in the archive, but in direct access, then corrections should be made to it. Otherwise the reader is misled, imho...
Thanks for the comment. We'll give it to whoever needs it.
 

uncleVic:
В следующем билде заработает, но должен Вас предупредить, что при тестировании на "мелких" таймфреймах, Тестер имеет "запас истории" 1 год. Т.о. недельным и месячным индикаторам может её (истории) нехватить для корректной работы. Это всё, чего удалось добиться.

OK! If I work on hourly indicators and use weekly indicators, does that mean I can't use values greater than 52 in them? I guess that's acceptable!

Maybe in time you will make a more accurate description of the amount of history loaded into the tester for different timeframes. In general, this issue, frankly, in the tester is not very elaborated!

 

Erm95, we once talked to you on this topic regarding monthlies.

Let me repeat (and this is described in the documentation or in articles on testing), when testing on timeframes up to and including D1, the history starts from the beginning of the previous year relative to the date of testing. It means that if you have been testing since March 2, 2004, the history will be provided since January 1, 2003.

For weeks, you will get the history of two years from the date of testing - 100 bars (there are 52 weeks in a year)

For months, you will be provided with the history of 8 years ago - 100 bars.

 

uncleVic:
В следующем билде заработает, но должен Вас предупредить, что при тестировании на "мелких" таймфреймах, Тестер имеет "запас истории" 1 год. Т.о. недельным и месячным индикаторам может её (истории) нехватить для корректной работы. Это всё, чего удалось добиться.

It hasn't worked yet after all! Build 478.

2011.07.12 14:45:44 Core 1 connection closed
2011.07.12 14:45:44 Core 1 log file "D:\Program\MetaTrader 5\Tester\Agent-127.0.0.1-3000\logs\20110712.log" written
2011.07.12 14:45:44 Core 1 tester stopped because of OnInit critical error
2011.07.12 14:45:44 Core 1 2011.01.01 00:00:00 OnInit: error initializing indicators
2011.07.12 14:45:44 Core 1 2011.01.01 00:00:00 CExpert::InitIndicators: error initializing indicators of signal object
2011.07.12 14:45:44 Core 1 2011.01.01 00:00:00 CSignalAC::InitAC: error initializing object
2011.07.12 14:45:44 Core 1 USDCHF,M1: history begins from 2010.01.04 00:00
2011.07.12 14:45:44 Core 1 USDCHF,M1: history cache reserved for estimated 498857 bars
2011.07.12 14:45:44 Core 1 USDCHF: contains 367657 M1 records of beginning data from 2010.01.04 00:00 to 2010.12.31 22:58
2011.07.12 14:45:44 Core 1 USDCHF, Weekly: history begins from 2010.01.03 00:00
2011.07.12 14:45:44 Core 1 USDCHF,Weekly: history cache reserved for estimated 70 bars
2011.07.12 14:45:44 Core 1 USDCHF: contains 367657 M1 records of beginning data from 2010.01.04 00:00 to 2010.12.31 22:58
2011.07.12 14:45:44 Core 1 Trailing_FixedPips_StopLevel=400
2011.07.12 14:45:44 Core 1 Signal_1_Envelopes_Weight=0.3
2011.07.12 14:45:44 Core 1 Signal_1_Envelopes_Deviation=0.9
2011.07.12 14:45:44 Core 1 Signal_1_Envelopes_PeriodMA=40
2011.07.12 14:45:44 Core 1 Signal_2_AC_Weight=0.3
2011.07.12 14:45:44 Core 1 Signal_0_Envelopes_Weight=0.3
2011.07.12 14:45:44 Core 1 Signal_0_Envelopes_Deviation=2.4
2011.07.12 14:45:44 Core 1 Signal_0_Envelopes_PeriodMA=21
2011.07.12 14:45:44 Core 1 Signal_1_AC_Weight=0.3
2011.07.12 14:45:44 Core 1 Signal_0_AC_Weight=0.3
2011.07.12 14:45:44 Core 1 Signal_Expiration=0
2011.07.12 14:45:44 Core 1 Signal_TakeLevel=100
2011.07.12 14:45:44 Core 1 Signal_StopLevel=500
2011.07.12 14:45:44 Core 1 Signal_PriceLevel=0
2011.07.12 14:45:43 Core 1 Signal_ThresholdClose=15
2011.07.12 14:45:43 Core 1 Signal_ThresholdOpen=6
2011.07.12 14:45:43 Core 1 Expert_Title=Prim44
2011.07.12 14:45:43 Core 1 USDCHF,H4: testing of experts\Prim44.ex5 from 2011.01.01 00:00 to 2011.05.01 00:00 started with inputs
2011.07.12 14:45:43 Core 1 USDCHF,H4 (MetaQuotes-Demo): 1 minute OHLC ticks generating. OnTick execute on the bar begin only
2011.07.12 14:45:43 Core 1 USDCHF,H4: history begins from 2010.01.04 00:00
2011.07.12 14:45:43 Core 1 USDCHF,H4: history cache reserved for estimated 2078 bars
2011.07.12 14:45:43 Core 1 USDCHF: contains 367657 M1 records of beginning data from 2010.01.04 00:00 to 2010.12.31 22:58
2011.07.12 14:45:43 Core 1 USDCHF: history synchronized from 1993.05.11 to 2011.07.08
2011.07.12 14:45:43 Core 1 USDCHF: load 27 bytes of history data to synchronize
2011.07.12 14:45:43 Core 1 USDCHF: symbol synchronized, 2904 bytes of symbol info received
2011.07.12 14:45:43 Core 1 Intel Core i5 M 430 @ 2.27GHz, 2996 MB
2011.07.12 14:45:43 Core 1 9028 bytes of total initialization data received
2011.07.12 14:45:43 Core 1 successfully initialized
2011.07.12 14:45:43 Core 1 initial deposit 10000.00 USD, leverage 1:500
2011.07.12 14:45:43 Core 1 8888 bytes of input parameters loaded
2011.07.12 14:45:43 Tester quality of analyzed history is 100%
2011.07.12 14:45:42 Core 1 common synchronization completed
2011.07.12 14:45:42 Tester USDCHF,H4 (MetaQuotes-Demo): testing of experts\Prim44.ex5 from 2011.01.01 00:00 to 2011.05.01 00:00 to be started
2011.07.12 14:45:42 Core 1 authorized (agent build 478)
2011.07.12 14:45:42 Core 1 connected

Files:
Prim44.mq5  10 kb
69obv1.PNG  21 kb
 
Erm955:
Recompiled?
 
uncleVic:
Recompiled?

Already figured out that YES.

Found a bit of a bummer. Take the file.

Files:
Series.mqh  16 kb
 

uncleVic:
Recompiled?

This is the new advisor in build 478.