Anyone who wanted to see charts without missing bars - here =) - page 6

 
solandr:
I would also like to know about the following occasional error that pops up when the terminal is switched on:

These are shutdown errors, not switch-on errors)

If the computer shuts down normally, it closes the files and then opens normally on the next boot.

A maximum of 32 files can be opened.
If MT mute, then the previous files are not closed, and together with the new files you get too many.
Although, maybe other scripts/experts open files too?

What is errors in HistoryBase - do not know.
If you manage to reproduce the problem and understand what it is, please let me know. We will try to fix it ;)
 
komposter писал (а):

A maximum of 32 files can be opened.
If MT mates, it means the previous files are not closed, and together with the new ones there are too many.
Although maybe other scripts/experts are opening files too?

My Expert Advisors do not work with files. They actively work only with global variables of the terminal. But they have never had any problems before. It's been a month since I've watched them working on the real.

Well, if I manage to analyze error conditions, I'll let you know. The only thing I can say in advance is that at the moment of the terminal's initial start the Expert Advisors and necessary indicators are initialized, the initialization takes about 20 seconds. Due to the large number of calculations performed for 12 currency pairs at once the terminal simply hangs up. But then, after the initialization, the calculations are performed very sparingly with time distribution using a random number generator. In other words, an interval is chosen at random (from 10 to 30 minutes), after which the next channel calculation for the currency pair will be performed. The value is written into a global variable of the terminal and then compared in the Expert Advisor. Thus, voluminous calculations for 12 currency pairs can work perfectly well with the VIA C3 800MHz processor-based controller without tearing it down. The sense consists in usability of this controller - compact size, weight 1 kg, Win2000 is working normally on it and the most important is that it is fanless - you can put it even near your head and sleep easily - it does not produce any noise as usual PCs do with their coolers. http://www.compactpc.com.tw/ebox-3851.htm
True, it gets a bit warm. But I solved this problem by hanging copper radiators from P4 on each side of the case. It's cooler now.
I access it via RawAdmin utility from any place with internet. That is, I only need the monitor for the initial installation of the operating system on this minicomputer.
 
solandr:
Thus voluminous calculations for 12 currency pairs work perfectly on the controller based on VIA C3 800MHz processor without tearing it off. The whole sense consists of usability of this controller in operation - compact size, weight 1 kg, Win2000 normally works on it and the most important is that it is fanless - you can put it even near your head and sleep easily - it does not produce any noise as it does in usual computers with their coolers. http://www.compactpc.com.tw/ebox-3851.htm
True, it gets a bit warm. But I solved this problem by hanging copper radiators from P4 on each side of the case. It's cooler now.
I access it via RawAdmin utility from any place with internet. That is, I only need the monitor for the initial installation of the operating system on this minicomputer.
How much does it cost? I couldn't find a price right away.
 
Rosh:
How much does a toy like this cost? I couldn't find a price right away.

I bought it for 185USD for the product itself + 70USD for a 2.5HD 40GB. But in Russia it would probably cost twice as much.
 

Here I saw the error described again. I think it most often occurs in an inactive market. When the market is very inactive, the error appears very regularly. When the market is active, the error may not occur for a long time. When the market is active, the error may stay for a long time. Here is the error description.
At first, when opening the terminal the normal price axis disappears vertically to the right. It may happen, for example, on 8 charts out of 12. It may occur differently each time. Screenshots below. At the same time we do not see any error messages in the log!
We switch off the terminal and switch it on again. Charts return to normal state, but in terminal log the following error record appears:
2006.10.31 12:20:30 HistoryBase: 48 errors in 'WS_AUDJPYm1440'
2006.10.31 12:20:30 HistoryBase: 42 errors in 'WS_NZDUSDm1440'
2006.10.31 12:20:30 HistoryBase: 272 errors in 'WS_EURJPYm1440'
2006.10.31 12:20:30 HistoryBase: 272 errors in 'WS_EURCHFm1440'
2006.10.31 12:20:30 HistoryBase: 272 errors in 'WS_AUDUSDm1440'
2006.10.31 12:20:30 HistoryBase: 272 errors in 'WS_EURGBPm1440'
2006.10.31 12:20:30 HistoryBase: 273 errors in 'WS_USDJPYm1440'
2006.10.3131 12:20:30 HistoryBase: 272 errors in 'WS_USDCADm1440'
2006.10.31 12:20:30 HistoryBase: 273 errors in 'WS_GBPUSDm1440'
2006.10.31 12:20:30 HistoryBase: 78 errors in 'WS_CHFJPYm1440'
2006.10.31 12:20:29 HistoryBase: 273 errors in 'WS_USDCHFm1440'
2006.10.3131 12:20:29 HistoryBase: 273 errors in 'WS_EURUSDm1440'
2006.10.31 12:19:59 HistoryBase: 48 errors in 'WS_AUDJPYm1440'
2006.10.31 12:19:59 HistoryBase: 42 errors in 'WS_NZDUSDm1440'
2006.10.31 12:19:59 HistoryBase: 272 errors in 'WS_EURJPYm1440'
2006.10.10.31 12:19:59 HistoryBase: 272 errors in 'WS_EURCHFm1440'
2006.10.31 12:19:59 HistoryBase: 272 errors in 'WS_AUDUSDm1440'
2006.10.31 12:19:59 HistoryBase: 272 errors in 'WS_EURGBPm1440'
2006.10.3131 12:19:59 HistoryBase: 273 errors in 'WS_USDJPYm1440'
2006.10.31 12:19:59 HistoryBase: 272 errors in 'WS_USDCADm1440'
2006.10.31 12:19:59 HistoryBase: 273 errors in 'WS_GBPUSDm1440'
2006.10.31 12:19:59 HistoryBase: 78 errors in 'WS_CHFJPYm1440'
2006.10.31 12:19:59 HistoryBase: 273 errors in 'WS_USDCHFm1440'
2006.10.31 12:19:59 HistoryBase: 273 errors in 'WS_EURUSDm1440'

Why such repeated record for 12 currency pairs? Perhaps, the log contains information about errors that occurred before the terminal was shut down but were not output in time? I suppose that an error cannot be excluded somewhere in the logic of file opening-closing either by Expert Advisor or by the terminal itself. Otherwise, how could this log appear every second terminal start-up when this error occurs?

Sometimes, when terminal starts without any visual errors, the above described log can also appear, although graphs look normal.












 

I have already started testing the Expert Advisor again on one currency.
I found out one peculiarity. The error
HistoryBase: 273 errors in 'WS_EURUSDm1440'
appears at the moment when the chart of modified quotes is opened.
If we don't open the chart, the error will not appear.

What could it be? Invalid closing of the modified quote file (file format errors) or is it a terminal glitch?
Could the developers try to reproduce this problem and give their opinion?

Broker InterBankFX, period D1, limit the number of bars in the window is 2000.
Expert Advisor settings:
//---- List of charts to be processed, separated by comma (",")
extern string ChartList = "EURUSD1440m";
extern bool SundayToMonday = true;
//---- Frequency at which the charts will be updated in milliseconds
//---- The higher the value, the less resources the script will use.
extern int RefreshLuft = 30000;

It's also allowed to import functions from DLL.

2006.10.31 14:55:53 HistoryBase: 273 errors in 'WS_EURUSDm1440'.
2006.10.31 14:55:21 HistoryBase: 273 errors in 'WS_EURUSDm1440'
2006.10.31 14:54:49 HistoryBase: 273 errors in 'WS_EURUSDm1440'
2006.10.31 14:54:18 HistoryBase: 273 errors in 'WS_EURUSDm1440'
2006.10.31 14:53:46 HistoryBase: 273 errors in 'WS_EURUSDm1440'
2006.10.31 14:53:14 HistoryBase: 273 errors in 'WS_EURUSDm1440'
2006.10.31 14:52:43 PM HistoryBase: 273 errors in 'WS_EURUSDm1440'
2006.10.31 14:52:13 HistoryBase: 273 errors in 'WS_EURUSDm1440'
2006.10.31 14:51:42 HistoryBase: 273 errors in 'WS_EURUSDm1440'
2006.10.31 14:51:11 HistoryBase: 273 errors in 'WS_EURUSDm1440'
2006.10.31 14:50:40 HistoryBase: 273 errors in 'WS_EURUSDm1440'


 
Error messages appear when checking the read charts from your generated file.
These indicate the presence of the most primitive errors:
  • incorrect OHLC (e.g. High below Open, etc.)
  • wrong or zero volumes
  • time bar striping error, when bars are interleaved
These erroneous bars are automatically cut from the history. Check your script in detail.
 
Renat:
Check your script in detail.

I'll be sure to check it today...
 
Renat:
Error messages appear when checking the graphs read from your generated file.
These mean that the most basic errors are present:
Or, in our case, an invalid Digits value in the file header. ...

Investigated.
- in the code, change #define DELETE_DAY 0 to #define DELETE_DAY 1 (so it would delete Mondays, not Sundays =)
- run the Expert Advisor with ChartList = "EURUSD1440"
- open the autogenerated chart (WS_EURUSD, D1)
- go to the directory that stores the history of the current broker
- copy from there file WS_EURUSD1440.hst file into any other directory
- close MT (before this you can delete the EA - does not matter)
- open MT

And now the most interesting thing =)
We take that file, which we saved, and compare it with the one left in the MT directory.
Copyrights are not mine (sorry, what? ;), and Digits = 0. Didn't check further. ...

Mind you, it's not the EA that does this - it can be deleted before shutting down the terminal.
Will you check it?
 

komposter, InterBankFX broker is not really an ordinary broker ;o). It has some specific settings, which I learned already during real trading!
For example, the function MarketInfo(symbol_for_work,MODE_SPREAD), which simply works perfectly on the Alpari demo (gives a fixed value in any market, equal to the difference between Ask and Bid, expressed in points) in real InterBankFX can change its value by 1 point. And it happens extremely often. I noticed it by accident because my pending orders are changing by 1 point here and there every few minutes and it happens at night, which I have never seen at Alpari.
So instead of arguing with broker or MT4 developers I just replaced this function with my own, which solved the problem "with little effort":

int _MarketInfo(string symb_for_work)
{
if(symb_for_work=="USDCHFm") return(4);
if(symb_for_work=="CHFJPYm") return(5);
if(symb_for_work=="GBPUSDm") return(3);
if(symb_for_work=="USDCADm") return(5);
if(symb_for_work=="USDJPYm") return(3);
if(symb_for_work=="EURGBPm") return(4);
if(symb_for_work=="AUDUSDm") return(4);
if(symb_for_work=="EURCHFm") return(4);
if(symb_for_work=="EURJPYm") return(5);
if(symb_for_work=="EURUSDm") return(2);
if(symb_for_work=="NZDUSDm") return(6);
if(symb_for_work=="AUDJPYm") return(6);

return(0);
}

I hope you get the hint. ;o)))
Could you build something similar in EA? Especially since everything is much simpler with Digits! For yen courses it is 2, and for all others it is 4.