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

 
Alexandre Roux:

Hi Dmitry Voronkov,

I load the Market Profile on my Darwinex MT5.

Good but:

1- I don't see the secondary POC.

2- I don't see the histogram in live, this Friday.

And too yesterday

My MT5 broker uses 4 days a week (not the sunday) and gmt trading hours.

Could you help me ?

best regards

Alexandre

Nobody had the same matter ?

 

Hi, 


I tried to put it on my MT5

I cannot get it work.
Somebody could just tell me  step by step how to do it?

I mean, 1 put this file here , 2 put these files there ....something like that.
I did it as written, but dosnt work

""""""The source code is located in 4 files. The main file is PriceHistogram.mq5, the other files are: ClassExpert.mqhClassPriceHistogram.mqh and ClassProgressBar.mqh. The files with .mqh extension contain the classes' description and methods. All files must be located in the same directory, My directory is: \MQL5\ Experts\PriceHistogram.""""""


Thanks in advance

 
Alexandre Roux:

Nobody had the same matter ?

I had the same issue, a simple code modification solved it:

Note however , at the start of a new day an array out of range error is thrown by the expert, you'll have to realod it if that happens.

You need to change the follwing code in ClassExpert.mqh on line 104

from

      // We check 0 day is current or not (for shares and Friday)
     if(day_time_open[rates_total-1]+PeriodSeconds(PERIOD_D1)<TimeTradeServer())
         rates_total--;

to

      // We check 0 day is current or not (for shares and Friday)
      if(day_time_open[rates_total-1]+PeriodSeconds(PERIOD_D1)>=TimeTradeServer())
         rates_total--;

MP


#s3gt_translate_tooltip_mini { display: none !important; }
 
Hello, I really like this EA.
I was wondering if you can change EA.

I like to use it in the daily period
but it does not appear the current day.

would it be possible to change it to show the current day?

I tried to use it in the time
but I wanted the accumulated of the current day.
 
Hi, why can't I see the POC of the day in progress?
 

Want to see something cool!!

       File  classexpert.mqh   Line 104 ::   change    >=      back to   

      if(day_time_open[rates_total-1]+PeriodSeconds(PERIOD_D1) < TimeTradeServer())
         rates_total--;
 
Alberto Lucadello :

Hello,


I tried putting it on my MT5

I can't get it to work.
Could someone simply tell me the step after step how to do it?

I mean, 1 put this file here, 2 put these files there ... something like that.
I did it as written, but it doesn't work

"" "" "" "The source code is in 4 files. The main file is PriceHistogram.mq5 , the other files are: ClassExpert.mqh , ClassPriceHistogram.mqh and ClassProgressBar.mqh . Files with the extension .mqh contain the description .and Class Methods All files must be in the SAME directory, my directory, and: MQL5 experts PriceHistogram "" "" ""


Thanks in advance

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.

 
apirakkamjan:

Want to see something cool!!

       File  classexpert.mqh   Line 104 ::   change    >=      back to   

 I followed the instructions but it still shows the current day. I found the solution on the PriceHistogram code
 

 
birbante16:
On the PriceHistogram file on line 17, add the missing round bracket to the end

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

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


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