Home Technical Indicator Post

Mastering the PriceHistogram OnClick Event for MetaTrader 4

Attachments
13540.zip (3.03 KB, Download 0 times)

The PriceHistogram OnClick Event indicator is a handy tool for traders using MetaTrader 4. This nifty little indicator showcases four distinct price histograms whenever you trigger a click event.

I originally developed this indicator for personal use during testing, but I decided to share it with the trading community. Let’s dive into what’s new and improved!

Latest Updates (30/07/2015):

Version 1.01

  • Fixed bugs related to InpCalcTime not functioning correctly.
  • Adjusted the BinRangeScale from 6 to 4 for better accuracy.

Version 1.02

  • A significant bug was identified, and this version is crucial. Make sure to update!

Code Correction:

Before:
   calc_histgram(lt_vh,lt_vhZO,m30high,m30low,m30vol,offset,limit,InpBinRange*8,lt_period);
   calc_histgram(mt_vh,mt_vhZO,m30high,m30low,m30vol,offset,limit,InpBinRange*8,mt_period);

After:
   calc_histgram(lt_vh,lt_vhZO,m30high,m30low,m30vol,offset,limit,InpBinRange*BinRangeScale,lt_period);
   calc_histgram(mt_vh,mt_vhZO,m30high,m30low,m30vol,offset,limit,InpBinRange*BinRangeScale,mt_period);

Oops! That was my oversight.

Histogram Displays:

  • Red: 1-day histogram (Best viewed on M5 timeframe).
  • Gold: Short-term histogram (Best viewed on M5 timeframe).
  • Pink: Medium-term histogram (Best viewed on M30 timeframe).
  • Blue: Long-term histogram (Best viewed on M30 timeframe).

Here’s what’s new in version 1.02:

PriceHistogram OnClick v1.02

And here’s the older version (v1.00):

PriceHistogram OnClick

Settings Overview:

PriceHistogram OnClick Settings

Related Posts

Comments (0)