Re: MT4 Indicators with alerts/signals

4361
mazibee wrote: Mon Nov 03, 2025 11:57 am Dear MrTools,

I am extremely thankful to you for selflessly fulfilling every user wish & requests, especially for new members like me.

Your unmatched dedication to tweaking indicators and developing brand new tools truly makes this community shine.

The updated Moving Average Histogram works flawlessly.

If time permits, I have two further request requests:

1) Stacked 3 Histogram Version Same logic as the current one, but three histograms stacked vertically, each with independent inputs.

MA Period = 9,9,9
MA Price = Average Median Body, Average Median Body, Average Median Body
MA Type = LWMA, LWMA, LWMA
MA Timeframe = Current, First Higher, Secod Higher


2) MTF LWMA Indicator that Plots three LWMA lines on chart:
LWMA of Open
LWMA of Close
LWMA of Average Body Mean (Open+Close)/2, Two colored matching the current histogarm,
I assume the color change of the average line should math the histo color.[url][/url]
With individual on/off toggles via input parameters.

MrTools thank you once again for your generosity and mastery.

Huge respect and heartfelt gratitude

Stay blessed always.
Hello, for the first part I can stack as you are requesting, but if you are requesting a different time frame for every ma am not able to do that maybe something of the 4-time frame type of indicator can do something like that.
These users thanked the author mrtools for the post:
mazibee


Re: MT4 Indicators with alerts/signals

4362
mazibee wrote: Mon Nov 03, 2025 11:57 am Dear MrTools,

I am extremely thankful to you for selflessly fulfilling every user wish & requests, especially for new members like me.

Your unmatched dedication to tweaking indicators and developing brand new tools truly makes this community shine.

The updated Moving Average Histogram works flawlessly.

If time permits, I have two further request requests:

1) Stacked 3 Histogram Version Same logic as the current one, but three histograms stacked vertically, each with independent inputs.

MA Period = 9,9,9
MA Price = Average Median Body, Average Median Body, Average Median Body
MA Type = LWMA, LWMA, LWMA
MA Timeframe = Current, First Higher, Secod Higher


2) MTF LWMA Indicator that Plots three LWMA lines on chart:
LWMA of Open
LWMA of Close
LWMA of Average Body Mean (Open+Close)/2, Two colored matching the current histogarm,
I assume the color change of the average line should math the histo color.[url][/url]
With individual on/off toggles via input parameters.

MrTools thank you once again for your generosity and mastery.

Huge respect and heartfelt gratitude

Stay blessed always.
Try here.
These users thanked the author mrtools for the post:
mazibee

Re: MT4 Indicators with alerts/signals

4363
mrtools wrote: Tue Nov 04, 2025 12:24 am Hello, for the first part I can stack as you are requesting, but if you are requesting a different time frame for every ma am not able to do that maybe something of the 4-time frame type of indicator can do something like that.
Thanks again Mrtools for your time.

I will be more than happy if you can stack the three histograms as per my image attached.

I am feeling so lucky to be part of this wonderful forum.

Thanks in advance.

Mazi

Re: MT4 Indicators with alerts/signals

4364
mazibee wrote: Tue Nov 04, 2025 1:07 am Thanks again Mrtools for your time.

I will be more than happy if you can stack the three histograms as per my image attached.

I am feeling so lucky to be part of this wonderful forum.

Thanks in advance.

Mazi
Sorry, not understanding why you would want to stack 3 histograms with the same period, price, and time frame.
These users thanked the author mrtools for the post:
mazibee

Re: MT4 Indicators with alerts/signals

4365
mrtools wrote: Tue Nov 04, 2025 1:11 am Sorry, not understanding why you would want to stack 3 histograms with the same period, price, and time frame.
My bad MrTools

Stacking the same histogram 3 times is of no use , you are 100 % right.

Please if you can you direct me to the link where I can find one that can accomplish that (4-time frame type of indicator can do something like that)

Thanks, thanks and thanks again for your help.


Re: MT4 Indicators with alerts/signals

4366
mrtools wrote: Tue Nov 04, 2025 1:07 am Try here.
Good Day MrTools,

If possible and time permitted please can you can you add an
-- 0ption to display/ hide the (open/close) line. One option to display / hide both the lines of open and close.
-- Option to display/hide ( Open+close)/2 line in the input menu

Also when I attached the indicator to the chart, changed color settings, line widths, on switching time frames it revert back to default setting.

Kindlly if you can check that also

Thanks in advance

Re: MT4 Indicators with alerts/signals

4367
mazibee wrote: Wed Nov 05, 2025 6:45 pm Good Day MrTools,

If possible and time permitted please can you can you add an
-- 0ption to display/ hide the (open/close) line. One option to display / hide both the lines of open and close.
-- Option to display/hide ( Open+close)/2 line in the input menu

Also when I attached the indicator to the chart, changed color settings, line widths, on switching time frames it revert back to default setting.

Kindlly if you can check that also

Thanks in advance
Try here.
These users thanked the author mrtools for the post:
mazibee

Re: MT4 Indicators with alerts/signals

4369
srinarayani13 wrote: Fri Oct 24, 2025 7:07 pm I went short here and was stopped out, traded in direction of higher trend
but got stopped out in correction MACD signal EMA was positive after MACD signal EMA turned negative price started following larger trend

MACD EMA signal can help us to reduce loss making trade and can help for perfect entry

Global can you please add histogram for signal EMA cross at bottom so that it will be easy to see the direction.
I updated the QFF-MACD v1.mq4 indicator to QFF-MACD Histo.mq4 that includes an option to show the default MACD histogram OR the Signal/MA cross trend histogram.

Key Changes & Fixes

Increased to 13 buffers and added zeroAnchor[] buffer.

Features Included:

• Dual-mode display: Full MACD histogram OR Signal/MA cross trend histogram
• Automatic scaling in both modes using zero-anchor technique
• Clean, efficient code with proper boundary checks
• Customizable colors and histogram width
• No scaling bugs — works perfectly when switching modes

When ShowSignalMaHisto = true:

• Displays the trend of the MACD Signal/Signal Ma Cross.
• The trend strength, based on the Signal line's slope, is also shown.
• Buffers 8–11 draw colored histograms at height 1.0.
• Buffer 12 draws an invisible (zero-height) black histogram at 0.0 on every bar.
• This forces auto-scaling to exactly 0 to 1, with full-height colored bars.

When ShowSignalMaHisto = false:

• Standard MACD histograms (buffers 0–3) with signal/MA lines.
• Auto-scales to MACD data range (includes negatives and positives).

• Removed manual buffer reset logic (unnecessary with MT4's reinitialization on parameter changes).
• Removed _StopFlag checks (undefined; prevents potential compile errors).
• Added boundary check i < Bars - 1 in trend calculation to avoid array out-of-bounds.
• Cleaned up unused code (e.g., Max function).

Behavior on switching:

• Changing ShowSignalMaHisto and pressing OK reinitializes the indicator.
• Scaling automatically adjusts correctly in both modes—no clipping, no stuck scales.
• No need to remove/reattach the indicator.

This works reliably because MT4's auto-scaling now includes the anchor at 0.0 in signal mode while remaining invisible.