Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Time_Averaged_Price

Time Averaged Price draws the line with its values calculated by prices in a specified range.

It has two configurable parameters:

  • Period - calculation period
  • Applied price

The calculation depends on the selected calculation price:

  • Close price: TAP = Close[Period-1]
  • Open price: TAP = Open[Period-1]
  • High price: TAP = Max
  • Low price: TAP = Min
  • Median price: TAP = (Max+Min)/2.0
  • Typical price: TAP = (Max+Min+Close)/3.0
  • Weighted price: TAP = (Max+Min+2.0*Close)/4.0

where:

Min, Max - Low and High prices in the Period range

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. Time Averaged Price, Close

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Time Averaged Price, High

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 3. Time Averaged Price, Low

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 4. Time Averaged Price, Median

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 5. Time Averaged Price, Weighted

22512