Moving Average value from other timeframes

 

Hello,

I am trying to get the 15 min time frame MA on a 1 min time frame.

I am able to get it in tradingview(See the attached Images.)

These 2 images show how I am getting 15 min MA on 1 min chart.

I like the first way, Is there anyway that I could get it on MT4 the same way?


It helps understand the chart better, it there was a way to get it in MT4.

Files:
Way1.jpg  28 kb
Way2.jpg  26 kb
 
  1. Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum?
    Next time post in the correct place. The moderators will likely move this thread there soon.

  2. On MT4: Unless the current chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
              Download history in MQL4 EA - Forex Calendar - MQL4 programming forum - Page 3 #26 № 4 2019.05.20

  3. Perhaps you should read the manual.
       How To Ask Questions The Smart Way. 2004
          How To Interpret Answers.
              RTFM and STFW: How To Tell You've Seriously Screwed Up.

    What is the second parameter of iMA?
 
Search for Moving Average MTF (multi timeframe) in the codebase. There's at least one from Mladen either 4 or 5.
 
lippmaje:Search for Moving Average MTF (multi timeframe) in the codebase. There's at least one from Mladen either 4 or 5.

OP said he is "trying to get" not trying to see.

Reason: