Re: Convert MT4 indicators to MT5

643
mrtools wrote: Tue Apr 29, 2025 8:17 pm Hello, the On-Chart Wpr part would be pretty easy conversion the only part I am not sure about is the range calculation used in the bands this part

Code: Select all

atrTimeFrame = PERIOD_H4;
              switch (timeFrame)
               {
                 case PERIOD_M1:  atrTimeFrame = PERIOD_H1;  break;
                 case PERIOD_M5:  atrTimeFrame = PERIOD_H4;  break;
                 case PERIOD_M15: atrTimeFrame = PERIOD_H4;  break;
                 case PERIOD_M30: atrTimeFrame = PERIOD_D1;  break;
                 case PERIOD_H1:  atrTimeFrame = PERIOD_D1;  break;
                 case PERIOD_H4:  atrTimeFrame = PERIOD_D1;  break;
                 case PERIOD_D1:  atrTimeFrame = PERIOD_W1;  break;
                 case PERIOD_W1:  atrTimeFrame = PERIOD_MN1; break;
                 default:         atrTimeFrame = PERIOD_H4;
               }
               
Not sure how in mt5 to do this in combination with the regular wpr mtf, need to do more research and will get back.
Thank you for your efforts.

Re: Convert MT4 indicators to MT5

644
Abzak wrote: Tue Apr 29, 2025 7:47 pm Hello Mr. Kvak. I'm not sure but I think you made this. Any chance you have it's equivalent for mt5? I would love to have a line for H4 open lines. Thank you.
Hello, this indicator is not mine, I am convert this from mql4.
If you choose extra MT5 timeframes, not working good and need manualy refresh.
These users thanked the author kvak for the post:
Abzak