Libraries: Virtual - page 3

 
fxsaber:

Off topic. If anyone can post it, it would be good.

On known ones like archive.org, I'm out of luck, because they don't like pages in Russian very much (this is, by the way, an additional reason to publish in the English codebase and write self-references in English). If I find an old copy somewhere, I'll write it down.

 
fxsaber:

Off topic. If anyone can post it, it would be good.

It's a pain in the arse to restore from the archives, but I think I have November.

https://web.archive.org/web/20201124223612/https://www.mql5.com/en/forum

That's the English version.

https://web-arhive.ru/page?url=https%3A%2F%2Fwww.mql5.com%2Fru%2Fforum%2F282062%2Fpage19&date=20201125

This is our Russian.

 
Valeriy Yastremskiy:

It's a pain in the arse to restore from the archives, but I think we've got November.

https://web.archive.org/web/20201124223612/https://www.mql5.com/en/forum

It's in English

https:// web-arhive.ru/page?url=https%3A%2F%2Fwww.mql5.com%2Fru%2Fforum%2F282062%2Fpage19&date=20201125

This is our Russian.

And this site keeps giving me an error - "failed to retrieve archive page", and the above link "works" like that. Besides, we do not need the start page of the forum, but a specific topic.

 

What's this?

https://www.mql5.com/ru/forum/282062

Looks like someone posted the code of the same name instead of adding a new version in the former code? Or is that how QB works now?
Библиотеки: Virtual
Библиотеки: Virtual
  • 2018.10.03
  • www.mql5.com
Статьи и техническая библиотека по автоматическому трейдингу: Библиотеки: Virtual
 
Stanislav Korotky:

What's this?

https://www.mql5.com/ru/forum/282062

Looks like someone posted the code of the same name instead of adding a new version in the former code? Or is that how QB works now?

Cool!!! Didn't do the same-named code. The link from the first post of both threads leads to the same code in KB.

 
Stanislav Korotky:

And I have this site all the time gives an error - "failed to get the archive page", and the specified link so "works". Besides, we do not need the start page of the forum, but a specific topic.

I just scored the forum, the archive found, there on not the latest dates load. There are 30 pages in the topic. 19 loaded. 30 and 29 didn't. I didn't check further.

 
fxsaber:

Cool! Didn't do the same code with the same name. The link from the first post of both threads leads to the same code in KB.

Bummer.

 
It turns out that the link should be inserted here https://www.mql5.com/ru/forum/282062/page31.
Библиотеки: Virtual
Библиотеки: Virtual
  • 2020.12.02
  • www.mql5.com
Статьи и техническая библиотека по автоматическому трейдингу: Библиотеки: Virtual
 

Hi fxsaber,


Amazing and interresting work.

I just tried to compare results from virtual to real TS and so add the following lines in the DeInit procedure :


void OnDeinit(const int reason)
{
  VIRTUAL::SelectByHandle();
  PrintFormat("(%s-%s)::%s - Initial deposit=%.2f, Balance=%.2f, Equity=%.2f, Profit=%G, Trades=%d", _Symbol, EnumToString(_Period), "Real", 0,AccountBalance(), AccountEquity(), AccountProfit(), OrdersHistoryTotal());
  VIRTUAL::SelectByHandle(handle);
  PrintFormat("(%s-%s)::%s - Initial deposit=%.2f, Balance=%.2f, Equity=%.2f, Profit=%G, Trades=%d", _Symbol, EnumToString(_Period), "Virtual", 0,AccountBalance(), AccountEquity(), AccountProfit(), OrdersHistoryTotal());
                                                                        
  Comment("");
}

And as a result, I cannot get the correct value for Profit (AccountProfit()). It seems Deposit is in the first 'Order' and is not correctly taken in consideration, also in the trades count.



What I am doing wrong?

Best regards,

och

 
och:

I just tried to compare results from virtual to real TS and so add the following lines in the DeInit procedure :

 void OnDeinit ( const int reason)
{
  VIRTUAL::SelectByHandle();
   PrintFormat ( "(%s-%s)::%s - Initial deposit=%.2f, Balance=%.2f, Equity=%.2f, Profit=%G, Trades=%d" , _Symbol , EnumToString ( _Period ), "Real" , 0 ,AccountBalance(), AccountEquity(), AccountProfit(), OrdersHistoryTotal());
  VIRTUAL::SelectByHandle(handle);
  VIRTUAL::Stop();
   PrintFormat ( "(%s-%s)::%s - Initial deposit=%.2f, Balance=%.2f, Equity=%.2f, Profit=%G, Trades=%d" , _Symbol , EnumToString ( _Period ), "Virtual" , 0 ,AccountBalance(), AccountEquity(), AccountProfit(), OrdersHistoryTotal());
                                                                        
   Comment ( "" );
}