Page 151 of 152

Re: Various (Specialist) indicators for MT4

Posted: Fri Apr 25, 2025 3:02 am
by delp
MACD Alert2_fixed

Re: Various (Specialist) indicators for MT4

Posted: Sat Apr 26, 2025 1:08 pm
by Ganesh
hi,kvak, kindly add to dispilay LOT SIZE TRADED to this attached indicator

Re: Various (Specialist) indicators for MT4

Posted: Sun Apr 27, 2025 7:50 am
by kvak
Ganesh wrote: Sat Apr 26, 2025 1:08 pm hi,kvak, kindly add to dispilay LOT SIZE TRADED to this attached indicatormn Show Profit Alerts - with PipValue.mq4
sorry don't know....

Re: Various (Specialist) indicators for MT4

Posted: Thu May 15, 2025 6:52 am
by kvak
kvak wrote: Sun Mar 23, 2025 7:40 am Here is updated version with filter and signal as PM request.
Updated version as pm request.

Re: Various (Specialist) indicators for MT4

Posted: Thu May 15, 2025 7:58 am
by Kjamie993
delp wrote: Fri Apr 25, 2025 3:02 am MACD Alert2_fixed
Hey! What is the yellow/dots on main chart can you please share?

Re: Various (Specialist) indicators for MT4

Posted: Sun May 18, 2025 6:42 pm
by kvak
Modified DIDI Index with new multiple coloring changing signal logic

Didi index mod as request, new coloring mode.

EDIT : For corrected code look here, This version working with different MA's.

PS: For the MT5 version by member ZigZag, please see: DIDI Index for MT5.

Re: Various (Specialist) indicators for MT4

Posted: Sun May 18, 2025 10:22 pm
by ZigZag
kvak wrote: Sun May 18, 2025 6:42 pm Didi index mod as request, new coloring mode.
In the original code, the calculation and handling of the median value were inadequate for different moving average (MA) methods. When a method other than exponential (EMA) was selected, situations could arise where the M_MA variable received a zero or negative value leaving indicator not drawing oscillatir at all. This caused problems because the value is used as a divisor, leading the indicator to "go dark."

I took rights fior my own hand and made few changes for it:

Added validation for the M_MA value:
Ensures that M_MA is a positive value before using it as a divisor
If M_MA is not positive, values from the previous bar are used instead
Modified handling of the median value:
Set the median value explicitly to 1.0 (previously just 1, which could cause inaccuracies)
Ensured that curta and longa are calculated only when M_MA is valid

Improved error handling:
Added logic to prevent division by zero
Ensured that the first bar has reasonable default values if values cannot be calculated
These changes make the indicator more stable across all MA methods, not just the exponential method.

This could be good candidate as MT5 version tool also.

EDIT : Corrected mtf , redownload new version

Re: Various (Specialist) indicators for MT4

Posted: Sun May 18, 2025 10:57 pm
by ZigZag
kvak wrote: Sun May 18, 2025 6:42 pm Didi index mod as request, new coloring mode.
Coded it for MT5 now too, but got few idea to make it better.........lets see........

Re: Various (Specialist) indicators for MT4

Posted: Sun May 18, 2025 11:01 pm
by kvak
ZigZag wrote: Sun May 18, 2025 10:22 pm In the original code, the calculation and handling of the median value were inadequate for different moving average (MA) methods. When a method other than exponential (EMA) was selected, situations could arise where the M_MA variable received a zero or negative value leaving indicator not drawing oscillatir at all. This caused problems because the value is used as a divisor, leading the indicator to "go dark."

I took rights fior my own hand and made few changes for it:

Added validation for the M_MA value:
Ensures that M_MA is a positive value before using it as a divisor
If M_MA is not positive, values from the previous bar are used instead
Modified handling of the median value:
Set the median value explicitly to 1.0 (previously just 1, which could cause inaccuracies)
Ensured that curta and longa are calculated only when M_MA is valid

Improved error handling:
Added logic to prevent division by zero
Ensured that the first bar has reasonable default values if values cannot be calculated
These changes make the indicator more stable across all MA methods, not just the exponential method.

This could be good candidate as MT5 version tool also.
Yes, you are right.
Unfortunately, I haven't tested the code with different ma's. Thank you for correcting code.

Re: Various (Specialist) indicators for MT4

Posted: Mon May 19, 2025 6:08 am
by Madsakz169
Thanks Kvak

Your a legend