Discussion of article "The Price Histogram (Market Profile) and its implementation in MQL5" - page 4

To add comments, please log in or register
birbante16
34
birbante16  
rascal16 :

Hi Alberto, I try to help you:

1) first you have to open metaeditor that you find inside the Metatrader in the programs directory of your pc;

2) in the metaeditor you have to open the expert folder and inside copy the 4 files that contain the indicator;

3) after copying the files to the expert folder close all,

4) open the Metatrader and position yourself on the chart where you want to load the indicator;

5) open the browser where all the indicators are loaded and there is also the expert folder;

6) click on and open the expert folder where all the copied files must be located;

7) Click 2 times on PriceiHistogram and it will be loaded on your chart.

Obviously you have to wait a few seconds for the data to be uploaded.

Last tip, it will not load the current day as there is a simple correction to make in the source code of PriceHistogram.

Hi Alberto below I indicated to another user how to solve the problem concerning the failure to load the histogram for the current day.

Keith Watford
Moderator
19118
Keith Watford  
birbante16:

This is an English language forum.

Please only post in English.

Use the site's translation tool if necessary.

I have translated your posts this time (Using the tool).

Alberto Lucadello
171
Alberto Lucadello  
birbante16:

 thanks a lot, i try :)

   From :  input int         DaysForCalculation= 500;         // Days for calculation(-1 all


    to   :   input int         DaysForCalculation= 500;         // Days for calculation(-1 all)

Pittaya Thaosombut
13
Pittaya Thaosombut  
apirakkamjan
66
apirakkamjan  
birbante16:

   From :  input int         DaysForCalculation= 500;         // Days for calculation(-1 all


    to   :   input int         DaysForCalculation= 500;         // Days for calculation(-1 all)

Oh no!!! dude,

Any  text after double slash ("//") is just a comment. It won't change a thing...  

Imran Khan
334
Imran Khan  
Hi,

I compiled with new MT5 version 2085 and now I have 1 error "Delete funtion already defined in class "ClassPriceHistogram.mqh" line 375. 

Could you please update the code

Thanks
joeef
16
joeef  
Imran Khan:
Hi,

I compiled with new MT5 version 2085 and now I have 1 error "Delete funtion already defined in class "ClassPriceHistogram.mqh" line 375. 

Could you please update the code

Thanks

Only add "void" as return type in that method:

void CPriceHistogram::Delete()
  {
   if(POCLine!=NULL) delete POCLine;
   if(POCLable!=NULL) delete POCLable;
   if(SecondTopPOCLine!=NULL) delete SecondTopPOCLine;
   if(SecondBottomPOCLine!=NULL) delete SecondBottomPOCLine;
  }

regards

Imran Khan
334
Imran Khan  
joeef:

Only add "void" as return type in that method:

regards

Thanks for the help.Joeef
To add comments, please log in or register