Discussion of article "The Last Crusade"

 

New article The Last Crusade is published:

Take a look at your trading terminal. What means of price presentation can you see? Bars, candlesticks, lines. We are chasing time and prices whereas we only profit from prices. Shall we only give attention to prices when analyzing the market? This article proposes an algorithm and a script for point and figure charting ("naughts and crosses") Consideration is given to various price patterns whose practical use is outlined in recommendations provided.

Рис. 3. Результат построения графика крестики-нолики для Light Crude Oil при помощи нашего скрипта


Author: Roman Rich

 

hmm, is it possible to add some kind of progress bar or something else to avoid sitting in front of the monitor waiting for a miracle, a miracle has happened, an entry has appeared in the log:

2012.03.13 23:24:12 Scripts script PnF (EURUSD,H1) removed
2012.03.13 23:24:11 MemoryException 1048576 bytes not available
2012.03.13 23:24:11 MemoryException 1048576 bytes not available
2012.03.13 23:24:10 MemoryException 1048576 bytes not available
2012.03.13 23:19:48 Scripts script PnF (EURUSD,H1) loaded successfully

in the experts tab:

2012.03.13 23:24:11 PnF (EURUSD,H1) array out of range in 'cIntBMP.mqh' (348,21)

SZY: I understand perfectly well that 2Ga of RAM (my Win uses no more than 470 - 600M) is not authoritative nowadays, but imho something is wrong.

 

It works:


But I have 8 GB of memory.
 
IgorM:

hmm, is it possible to add some kind of progress bar or something else to avoid sitting in front of the monitor waiting for a miracle, a miracle has happened, an entry has appeared in the log:

in the experts tab:

ZY: I understand perfectly well that 2Ga of RAM (my Win uses no more than 470 - 600M) is not authoritative nowadays, but imho something is wrong

I took the cIntBMP module as it is. I'll try to figure it out and report back. I work on 2Ga, but the history of about 100000 bars and MarketWatch 10 instruments.
 
Rich:but the history of about 100000 bars and MarketWatch 10 instruments.

history of 50 000 bars, one open TF, only majors in the market overview, history is loaded completely, but apparently the terminal loaded the history - downloaded about 40 Mb, the script tried to run twice, after restarting the terminal the second time the history was not loaded, default settings in the script, MT5 607 build for 32-bit Win

 

I cannot reproduce the error.

Tried it on 10 majors, 100000 minutes on each, boxing 2 (TWO) pips, reversal 5.

Worked for 5 and a half minutes

1

I got this size pictures,

2

but nothing was wrong.

 
Rich: I can't reproduce the error.

I can only assume:

1.I have Win 32, do you?

2.I used the script from the atach article with parameters on silence, do you?

ZY: thanks to Integer for the possibility to use MT5 graphics, but imho, developers should realise similar functions at the level of terminal functionality, and I don't even want to go on about the possibility to create custom offline charts.

 
IgorM:

I can only assume:

1.I have Win 32, do you?

2.I used the script from the article atach with parameters on silence, do you?

ZY: thanks to Integer for the possibility to use MT5 graphics, but imho, developers should implement similar functions at the level of terminal functionality, and I don't even want to go on about the possibility to create custom offline charts.

Perhaps the problem is related to the fact that the history is not loaded. It can be loaded automatically by all symbols using CDownLoadHistory.

Try changing the box size (e.g. increase to 7) and limit yourself to one tool:

As a result, you should get a 1.5mb file in the terminal_data_terminal_directory\MQL5/Images\.

 
Automated-Trading:

Perhaps the problem is due to the fact that the history is not loaded. It can be loaded automatically by all symbols with the help of CDownLoadHistory

I downloaded the history with the script downloadhistoryvisualmode.mq5 with the setting: History download option = All symbols from the market overview.

after the script execution I restarted the terminal, then ran the downloadhistoryvisualmode script again and then ran PnF.mq5 with default settings.

in the log:

2012.03.14 19:38:00 Scripts script PnF (EURUSD,H1) removed
2012.03.14 19:38:00 MemoryException 1048576 bytes not available
2012.03.14 19:27:36 Scripts script PnF (EURUSD,H1) loaded successfully
2012.03.14 19:27:28 Scripts script downloadhistoryvisualmode (EURUSD,H1) removed
2012.03.14 19:26:41 Scripts script downloadhistoryvisualmode (EURUSD,H1) loaded successfully

in the Experts tab:

2012.03.14 19:38:00 PnF (EURUSD,H1) array out of range in 'cIntBMP.mqh' (348,21)
2012.03.14 19:27:28 downloadhistoryvisualmode (EURUSD,H1) Downloaded successfully

ran then with the settings according to your screen, in the log:

2012.03.14 19:56:11 Scripts script PnF (EURUSD,H1) removed
2012.03.14 19:55:57 Scripts script PnF (EURUSD,H1) loaded successfully

in the Experts tab:

2012.03.14 19:56:11 PnF (EURUSD,H1) Ok.

in the MT5 folder:

files with drawings contain images of CW charts, but the terminal did not draw anything,

 

found what the problem was: I have Win swap file set max/min = 2048/2048 with 2G of RAM and never had problems with memory shortage on any application (MATLAB, Statistica, MSOffice, Delphi, debuggers..., including games) until now. I set the swap file "auto", script in the log:

2012.03.14 20:13:02 Scripts script PnF (EURUSD,H1) removed
2012.03.14 20:12:40 Scripts script PnF (EURUSD,H1) loaded successfully

in the experts tab:2012.03.14 20:13:02 PnF (EURUSD,H1) Ok.

hmm..., I don't even want to comment what I think about it....

as far as I understand the script only forms pictures in MT5 folder? if yes, why do I need them? I can make similar screens from different resources in proposed web-platforms, not to mention terminals that provide TFs in the form of HO

ZY: is it really so difficult for developers to make it possible to make MT5 tools to draw on the TF window canvas? I'll just keep silent about custom offline charts......

good luck!

 
IgorM: hmmm..., no desire to even comment on what I think about it....
It's really weird. It's not even that there's enough memory. It's just that I looked at Task Manager and saw that memory consumption of this script is quite low - well, 50 meg at most.