Attachments forums

List of attachments posted on this forum.


All files on forums: 159938

Re: PdfMa AO & AC - Trend Indicators for MT4

global, Thu Aug 28, 2025 2:12 pm

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:
All files in topic