Re: Updated PdfMa AO & AC - Trend Indicators for MT4

1821
srinarayani13 wrote: Tue Aug 12, 2025 2:37 am Sir to filter out market noise, we can do as under,

Plot buy if histogram is above signal MA
Plot sell if histogram is below signal MA

In this method market noise is almost filtered out and we don't need to wait for 15 min candle to close

Sir can you please add above condition to indicator and plot signal on chart window
Updated: Please redownload the updated versions below if you downloaded them before Aug 28th, 2025!

Finally, here are the additions you asked for to both the PdfMA Accelerator Oscillator (AC) and the PdfMA Awesome Oscillator (AO).

Below is a screenshot of the AC in the first sub window on the GBPAUD 5 min chart but showing how it would look on the 15 minute chart, and the AO in the second sub window on the 5 min chart. For the AO, I reduced the default "Ma period 2" from 34 to 21 to speed it up a little. Of course you can change it back to the default 34 if you prefer that. Alternatively, if you like, with the "Ma period 2" set to 34, you can reduce the Variance from 2.0 to 1.0 to achieve almost the same result as setting the "Ma period 2" to 21. Also, I prefer to use the "Histo Color on signal + zero cross" as the "Histo color on Trade Entry/Exit Type".

Please experiment with using the two indicators together and share with us what works best for you so we can all benefit. Thanks.

These (mtf + alerts + arrows) Versions:

This version includes multi time frame (mtf), alerts, entry & early exit arrows
and the following 5 Trade Entry/Exit Types:

(1) Histo Color on signal cross
(2) Histo Color on slope change
(3) Histo Color on zero cross
(4) Histo Color on signal + zero cross
(5) Histo Color on slope + zero cross

AC/AO Trade Signals by iCustom Calls:

To access the trade Bias for trade signals by iCustom Calls, just access the valc
buffer #5 which is labelled as the "Bias" buffer.

So if use the variable, Bias to indicate the AO Trade Bias, then the Buy and Sell
Entry and Exit Signals for the 5 Histo color on Trade Entry/Exit Types are:

For: (1) Histo Color on signal cross & (2) Histo Color on slope change:

Buy Trade Signals:
Entry: Bias>0
Exit: Bias<0

Sell Trade Signals:
Entry: Bias<0
Exit: Bias>0

For: (3) Histo Color on zero cross, (4) Histo Color on signal + zero cross &
(5) Histo Color on slope + zero cross:


Buy Trade Signals:
Entry: Bias>2
Exit: Bias<2

Sell Trade Signals:
Entry: Bias<-2
Exit: Bias>-2
-------------------------

Acronyms used for the 5 Trade Entry/Exit Types in the indicator's short name:

Signal Cross: SigCross
Slope Change: SlopeChg
Zero Cross: ZeroCross
Signal + Zero Cross: SigZeroCross
Slope + Zero Cross: SlopeZeroCross

-------------------------

General Usage

You can use color changes (mainly on zero cross) for trend change signals. You can take trades when the AC signals are confirmed by the AO.

Check the User Notes within the code for more detailed information on these two indicators.


Updated: Please redownload the updated versions below if you downloaded them before Aug 28th, 2025!

I updated these two indicators by adding "Use Signal Slope with Signal Trade Entry Types?" to the input options. Once that input option is set to true, then for the "(1) Histo Color on signal cross" and "(4) Histo Color on signal + zero cross" Signal Trade Entry Types, the Signal line must be sloping up for all Buy Trade Signals and it must be sloping down for all Sell Trade Signals. This change only affects the Trade Entry Signals for those Signal Trade Entry Types but not the Early Trade Exit Signals, which function as before without taking the slope of the Signal line into consideration for early trade exits.

I also for the PdfMA Awesome Oscillator (AO), I reset the "Ma period 2" back to it's default value of 34 but I reduced the Variance to 1 since that worked best for me. Of course, if you like you can reset the Variance of the AO back to it's default value of 2.
These users thanked the author global for the post (total 7):
Akela, Nik123, Eis, rudiarius, FXchaos, srinarayani13, Jackson Doh


Re: PdfMa AO & AC - Trend Indicators for MT4

1824
global wrote: Sat Aug 23, 2025 6:31 am Finally, here are the additions you asked for to both the PdfMA Accelerator Oscillator (AC) and the PdfMA Awesome Oscillator (AO).

Below is a screenshot of the AC in the first sub window on the GBPAUD 5 min chart but showing how it would look on the 15 minute chart, and the AO in the second sub window on the 5 min chart. For the AO, I reduced the default "Ma period 2" from 34 to 21 to speed it up a little. Of course you can change it back to the default 34 if you prefer that. Alternatively, if you like, with the "Ma period 2" set to 34, you can reduce the Variance from 2.0 to 1.0 to achieve almost the same result as setting the "Ma period 2" to 21. Also, I prefer to use the "Histo Color on signal + zero cross" as the "Histo color on Trade Entry/Exit Type".

Please experiment with using the two indicators together and share with us what works best for you so we can all benefit. Thanks.

These (mtf + alerts + arrows) Versions:

This version includes multi time frame (mtf), alerts, entry & early exit arrows
and the following 5 Trade Entry/Exit Types:

(1) Histo Color on signal cross
(2) Histo Color on slope change
(3) Histo Color on zero cross
(4) Histo Color on signal + zero cross
(5) Histo Color on slope + zero cross

AC/AO Trade Signals by iCustom Calls:

To access the trade Bias for trade signals by iCustom Calls, just access the valc
buffer #5 which is labelled as the "Bias" buffer.

So if use the variable, Bias to indicate the AO Trade Bias, then the Buy and Sell
Entry and Exit Signals for the 5 Histo color on Trade Entry/Exit Types are:

For: (1) Histo Color on signal cross & (2) Histo Color on slope change:

Buy Trade Signals:
Entry: Bias>0
Exit: Bias<0

Sell Trade Signals:
Entry: Bias<0
Exit: Bias>0

For: (3) Histo Color on zero cross, (4) Histo Color on signal + zero cross &
(5) Histo Color on slope + zero cross:


Buy Trade Signals:
Entry: Bias>2
Exit: Bias<2

Sell Trade Signals:
Entry: Bias<-2
Exit: Bias>-2
-------------------------

Acronyms used for the 5 Trade Entry/Exit Types in the indicator's short name:

Signal Cross: SigCross
Slope Change: SlopeChg
Zero Cross: ZeroCross
Signal + Zero Cross: SigZeroCross
Slope + Zero Cross: SlopeZeroCross

-------------------------

General Usage

You can use color changes (mainly on zero cross) for trend change signals. You can take trades when the AC signals are confirmed by the AO.

Check the User Notes within the code for more detailed information on these two indicators.


PdfMa AC15-AO5.png
Thank you so much for putting so much efforts in coding. Sorry for delay in replay, I was out of station, hence could not reply in time

Sir I am looking only for histogram and signal MA crossovers.

I had used both indicators in 15 min MTF

Please see attached images, not all crossovers will work, but most of them are working if targeted 5 to 10 pips

Please also code signals for histogram and signal MA crossover
These users thanked the author srinarayani13 for the post:
Eis

Updated PdfMa AO & AC - Trend Indicators for MT4

1825
Hi all,

Updated: Please redownload the updated versions of the PdfMA Accelerator Oscillator (AC) and the PdfMA Awesome Oscillator (AO) below if you downloaded them before Aug 28th, 2025!

I updated these two indicators by adding "Use Signal Slope with Signal Trade Entry Types?" to the input options. Once that input option is set to true, then for the "(1) Histo Color on signal cross" and "(4) Histo Color on signal + zero cross" Signal Trade Entry Types, the Signal line must be sloping up for all Buy Trade Signals and it must be sloping down for all Sell Trade Signals. This change only affects the Trade Entry Signals for those Signal Trade Entry Types but not the Early Trade Exit Signals, which function as before without taking the slope of the Signal line into consideration for early trade exits.

For the PdfMA Awesome Oscillator (AO), I also reset the "Ma period 2" back to it's default value of 34 but I reduced the Variance to 1 since that worked best for me. Of course, if you like you can reset the Variance of the AO back to it's default value of 2.

You can redownload the updated versions at the bottom of this post or from the previous post at:
post1295570989.html#p1295570989 where I deleted the old versions and replaced them with the updated versions. Instead of repeating myself here, in the previous post you will find more details about these two indicators.

Please experiment with using the two indicators together and share with us what works best for you so we can all benefit. Thanks.

These users thanked the author global for the post (total 4):
FredericoA, srinarayani13, Eis, FXchaos


Re: PdfMa AO & AC - Trend Indicators for MT4

1826
srinarayani13 wrote: Tue Aug 26, 2025 10:21 pm Thank you so much for putting so much efforts in coding. Sorry for delay in replay, I was out of station, hence could not reply in time

Sir I am looking only for histogram and signal MA crossovers.

I had used both indicators in 15 min MTF

Please see attached images, not all crossovers will work, but most of them are working if targeted 5 to 10 pips

Please also code signals for histogram and signal MA crossover
Hi, I already coded in what you requested. Just select "Histo Color on signal cross" as the "Histo color on Trade Entry/Exit Type", to get arrow signals on the chart when the histogram crosses above or below the signal MA. To see the entry and early exit arrow signals, just select "Entry Arrows visible?" and "Early Exit Arrows visible?" as true. Also, just select whatever time frame you want to use from the "Time frame to use" dropdown input options.

You will need to change the type of entry and exit arrows used with one of the indicators so you will be able to distinguish between the PdfMA Accelerator Oscillator (AC) arrows from the PdfMA Awesome Oscillator (AO) arrows.

Here is the link to the updated versions of the PdfMA Accelerator Oscillator (AC) and the PdfMA Awesome Oscillator (AO):
post1295571331.html#p1295571331
These users thanked the author global for the post:
srinarayani13

Re: PdfMa AO & AC - Trend Indicators for MT4

1827
global wrote: Wed Aug 27, 2025 2:31 pm Hi, I already coded in what you requested. Just select "Histo Color on signal cross" as the "Histo color on Trade Entry/Exit Type", to get arrow signals on the chart when the histogram crosses above or below the signal MA. To see the entry and early exit arrow signals, just select "Entry Arrows visible?" and "Early Exit Arrows visible?" as true. Also, just select whatever time frame you want to use from the "Time frame to use" dropdown input options.

You will need to change the type of entry and exit arrows used with one of the indicators so you will be able to distinguish between the PdfMA Accelerator Oscillator (AC) arrows from the PdfMA Awesome Oscillator (AO) arrows.

Here is the link to the updated versions of the PdfMA Accelerator Oscillator (AC) and the PdfMA Awesome Oscillator (AO):
post1295571331.html#p1295571331
Sir I had set parameters as told by you, still signal is coming on histogram color instated of signal MA crossover (marked as yellow box on chart), can you please help where I am going wrong

Sir as of now I am using only UT_! PdfMa awesome (mtf + alerts + arrows) indicator as this one is giving better results

Re: PdfMa AO & AC - Trend Indicators for MT4

1828
srinarayani13 wrote: Thu Aug 28, 2025 2:58 am Sir I had set parameters as told by you, still signal is coming on histogram color instated of signal MA crossover (marked as yellow box on chart), can you please help where I am going wrong

Sir as of now I am using only UT_! PdfMa awesome (mtf + alerts + arrows) indicator as this one is giving better results
I checked it and you are right. Whenever a higher time frame is selected for viewing on a current lower time frame, the arrows are being drawn at the bar in the current time frame that is at the start of higher time frame bar in which the signal MA crossover occurred. To view it as you prefer, just set "Arrows drawn on newest bar of higher time frame bar?" to true. However, there is an error in the Arrow code, so for that to work you will have to use MetaEditor to change the following line in the code of both indicators:

Code: Select all

Change the line: ObjectCreate(name,OBJ_ARROW,0,Time[i],0);
To: ObjectCreate(name,OBJ_ARROW,0,time,0);
Do that for both the the PdfMA Accelerator Oscillator (AC) and the PdfMA Awesome Oscillator (AO) indicators, save the changes, then click the "Compile" button to compile the updated indicators. If you are not familiar with that, then you will have to wait a few hours until I update and upload the fixed versions.

In the next few hours, I will upload the updated versions right here and in the previous posts as well. Thanks for pointing out the problem.

Update: I double-checked to see if that change actually fixed the problem of the arrow not being drawn exactly where the signal MA crossover occurred but unfortunately it didn't. That change together with setting "Arrows drawn on newest bar of higher time frame bar?" to true, now just correctly moves the arrow to the bar in the current time frame that is at the start of the NEXT higher time frame bar instead of the current one and not to exactly where the signal MA crossover occurred.

So, to be honest with you, I don't know how to fix that particular problem. Furthermore, how it draws the arrows whenever a higher time frame is selected for viewing on a current lower time frame, is due to how the indicator is interpolating the higher timeframe from the current lower timeframe. If any programmer seeing this can fix it to draw the arrows exactly where the signal MA crossover occurred, when a higher time frame is selected for viewing on a lower current time frame, then please do so and upload the updated indicator. Thanks.

In the meantime, I will still upload the "Arrows drawn on newest bar of higher time frame bar?" fixed versions of the indicators in a couple of hours.

Note: If you turn on Alerts, you will hear the alert exactly when the signal MA crossover occurs and it is at that time that the arrow will be drawn at the starting time of the higher time frame bar in which the signal MA crossover occurred, instead of exactly where the signal MA crossover occurred. So with that said, you can still use the indicators in that way for manual trading. On the other hand, if the indicators are used in automated trading by using iCustom Calls, then there will be no need to use the "Time frame to use" input option in the iCustom Call to change the time frame, since the higher time frame can be called directly from the timeframe parameter of the iCustom Call, which is the second parameter after the symbol parameter.

Here is an example of such an iCustom Call that gets the status of the valc Bias buffer number 5 on the current candle of the 15 minute timeframe:

Code: Select all

string indiPdfMaAO="UT_! PdfMa awesome (mtf + alerts + arrows)";
double PdfMaAO_15=iCustom(Symbol(),15,indiPdfMaAO,1,5,0);
Here are the updated versions:
These users thanked the author global for the post (total 2):
srinarayani13, asgariHoo

Re: PdfMa AO & AC - Trend Indicators for MT4

1829
global wrote: Thu Aug 28, 2025 11:22 am I checked it and you are right. Whenever a higher time frame is selected for viewing on a current lower time frame, the arrows are being drawn at the bar in the current time frame that is at the start of higher time frame bar in which the signal MA crossover occurred. To view it as you prefer, just set "Arrows drawn on newest bar of higher time frame bar?" to true. However, there is an error in the Arrow code, so for that to work you will have to use MetaEditor to change the following line in the code of both indicators:

Code: Select all

Change the line: ObjectCreate(name,OBJ_ARROW,0,Time[i],0);
To: ObjectCreate(name,OBJ_ARROW,0,time,0);
Do that for both the the PdfMA Accelerator Oscillator (AC) and the PdfMA Awesome Oscillator (AO) indicators, save the changes, then click the "Compile" button to compile the updated indicators. If you are not familiar with that, then you will have to wait a few hours until I update and upload the fixed versions.

In the next few hours, I will upload the updated versions right here and in the previous posts as well. Thanks for pointing out the problem.

Update: I double-checked to see if that change actually fixed the problem of the arrow not being drawn exactly where the signal MA crossover occurred but unfortunately it didn't. That change together with setting "Arrows drawn on newest bar of higher time frame bar?" to true, now just correctly moves the arrow to the bar in the current time frame that is at the start of the NEXT higher time frame bar instead of the current one and not to exactly where the signal MA crossover occurred.

So, to be honest with you, I don't know how to fix that particular problem. If any programmer seeing this can fix it then please do and upload the updated indicator. Thanks.

In the meantime, I will still upload the "Arrows drawn on newest bar of higher time frame bar?" fixed versions of the indicators in a couple of hours.

Note: If you turn on Alerts, you will hear the alert exactly when the signal MA crossover occurs and it is at that time that the arrow will be drawn at the starting time of the higher time frame bar in which the signal MA crossover occurred, instead of exactly where the signal MA crossover occurred. So with that said, you can still use the indicators in that way for manual trading. On the other hand, if the indicators are used in automated trading by using iCustom Calls, then there will be no need to use the "Time frame to use" input option in the iCustom Call, since the higher time frame can be called directly from the timeframe parameter of the iCustom Call, which is the second parameter after the symbol parameter.

Here is an example of such an iCustom Call that gets the status of the valc Bias buffer number 5 on the current candle of the 15 minute timeframe:

Code: Select all

string indiPdfMaAO="UT_! PdfMa awesome (mtf + alerts + arrows)";
double PdfMaAO_15=iCustom(Symbol(),15,indiPdfMaAO,1,5,0);
Thank you so much for putting so much efforts, one simple solution to this may me instead of suing 15 min TF, we can use 1 min TF with actual 15 min values, hopefully this should work, will send update with snapshot on receiving your updated indicator. Thank you once again, God bless you

Re: PdfMa AO & AC - Trend Indicators for MT4

1830
srinarayani13 wrote: Thu Aug 28, 2025 1:28 pm Thank you so much for putting so much efforts, one simple solution to this may me instead of suing 15 min TF, we can use 1 min TF with actual 15 min values, hopefully this should work, will send update with snapshot on receiving your updated indicator. Thank you once again, God bless you
Yes, that should definitely work. :thumbup:
These users thanked the author global for the post:
srinarayani13