Page 436 of 438

Re: MT4 Indicators with alerts/signals

Posted: Wed Oct 29, 2025 11:58 pm
by global
srinarayani13 wrote: Wed Oct 29, 2025 10:11 pm Thank you so much for perfect coding, God bless you.

When applying this indicator on chart its taking too long to come on chart and mt4 get hanged if I shift time frame, normally all indicator get applied instantly

if possible can you please check, does any part of code is calculating to much ???
Try reducing the number of bars it uses to calculate by simply changing Maximum Bars from 0 to 250 and see if that solves the problem.

Re: MT4 Indicators with alerts/signals

Posted: Thu Oct 30, 2025 12:28 am
by mrtools
srinarayani13 wrote: Wed Oct 29, 2025 10:11 pm Thank you so much for perfect coding, God bless you.

When applying this indicator on chart its taking too long to come on chart and mt4 get hanged if I shift time frame, normally all indicator get applied instantly

if possible can you please check, does any part of code is calculating to much ???
Try now!

Re: MT4 Indicators with alerts/signals

Posted: Thu Oct 30, 2025 1:34 am
by global
srinarayani13 wrote: Wed Oct 29, 2025 10:11 pm Thank you so much for perfect coding, God bless you.

When applying this indicator on chart its taking too long to come on chart and mt4 get hanged if I shift time frame, normally all indicator get applied instantly

if possible can you please check, does any part of code is calculating to much ???
Also, you can reduce the "Max bars in chart" to 5000 or even 1000, which is what I use. That will significantly reduce the CPU load and memory MT4 uses. To change the "Max bars in chart", from the top MT4 menu, just click on Tools->Options->Charts then select or type in the smaller value into the "Max bars in chart" field. Whatever smaller value you use, make sure that all the indicators you use don't need more than that number of bars.

Re: MT4 Indicators with alerts/signals

Posted: Thu Oct 30, 2025 1:39 am
by global
mrtools wrote: Thu Oct 30, 2025 12:28 am Try now!
Hi Mr. Tools, I always thought that one loop is always faster than 3 loops but maybe that's only in theory but not in practice.

Re: MT4 Indicators with alerts/signals

Posted: Thu Oct 30, 2025 2:04 am
by mrtools
global wrote: Thu Oct 30, 2025 1:39 am Hi Mr. Tools, I always thought that one loop is always faster than 3 loops but maybe that's only in theory but not in practice.
Yes, I think one loop is better but from my experience IMAOnArray() must be on a separate loop from the main loop. Far as I am aware that applies to other built in OnArray()'s as well. A lot of times will just use custom indicator functions as a way around that.

Re: MT4 Indicators with alerts/signals

Posted: Sat Nov 01, 2025 10:45 pm
by mazibee
mrtools wrote: Wed Dec 21, 2022 7:54 am Added the alerts not able to verify they work correctly, please verify.
Dear MrTools,

Request for modifctaion if possible.

Please can you add the Price Median Body (open + close)/2 in the price type.
The color of the MA line to change when the the open/close cross happens

Thanks in advance.

Re: MT4 Indicators with alerts/signals

Posted: Sun Nov 02, 2025 3:14 pm
by mrtools
mazibee wrote: Sat Nov 01, 2025 10:45 pm Dear MrTools,

Request for modifctaion if possible.

Please can you add the Price Median Body (open + close)/2 in the price type.
The color of the MA line to change when the the open/close cross happens

Thanks in advance.
Hello, are you asking for the heiken ashi type prices and a regular ma cross? We have regular ma cross indicators already and far as I know they have all the prices.

Re: MT4 Indicators with alerts/signals

Posted: Sun Nov 02, 2025 6:18 pm
by mazibee
mrtools wrote: Sun Nov 02, 2025 3:14 pm Hello, are you asking for the heiken ashi type prices and a regular ma cross? We have regular ma cross indicators already and far as I know they have all the prices.
Sorry for any confusion from my side.
Mrtools if you can add an additional (open+close)/2 in the price

Basically I need the MTF histogram of LWMA (open+close)/2
The one you have already coded does not have the (open+close)/2
Thanks in advance.

Re: MT4 Indicators with alerts/signals

Posted: Mon Nov 03, 2025 2:03 am
by mrtools
mazibee wrote: Sun Nov 02, 2025 6:18 pm Sorry for any confusion from my side.
Mrtools if you can add an additional (open+close)/2 in the price

Basically I need the MTF histogram of LWMA (open+close)/2
The one you have already coded does not have the (open+close)/2
Thanks in advance.
Maybe something like this?

Re: MT4 Indicators with alerts/signals

Posted: Mon Nov 03, 2025 11:57 am
by mazibee
mrtools wrote: Mon Nov 03, 2025 2:03 am Maybe something like this?
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.