TF Adaptive Moving Average - MetaTrader 5 Script | Trading Script Download - MT4/MT5 Resources











Any change in the time frame is accompanied by an automatic recalculation of the MA period. If the trader opens the MN1 chart, the indicator automatically sets the MA period to 12 to compare the current price with its one-year average based on the number of periods (bars) in the year. If a trader opens a weekly chart, the Simple Moving Average will automatically be set to period 52, which is equal to the number of weekly bars in a year.
When you open a one-day chart, the MA line is recalculated based on the number of trading days in the month (candlesticks displayed), which contains either five or six daily candlesticks. All periods less than one day and one hour are recalculated relative to the week, and periods less than one hour are recalculated relative to the daily bar shown on the chart. Example of SMA calculation for 5-minute chart. The daily trading time on the currency pair chart is 1,440 minutes. Therefore, 1440 minutes/5 minutes = 288 MA periods. CFD trading lasts 6 hours. (6 * 60 = 360 / 5 = 72 – MA periods. If the trade lasts for 8 hours, the calculation is 8 * 60 = 480 / 5 = 96 MA periods.
Using this indicator, traders do not need to choose MA periods for different time frames.
The indicator is interpreted as follows. If the current price in the selected time frame is higher than the average price of the instrument, you should buy. If the current price in the selected time frame is lower than the average price of the instrument, you should sell.
It has been noted that a good entry point is the moment when the price crosses the price moving average for the first time and then re-approaches it and forms a reversal candlestick pattern or combination in the direction of the main price movement within the selected time frame. Or when the price crosses the adaptive moving average and then breaks through the established high (low) price. Stop loss is set to the extreme value in the opposite direction. Easy to understand and easy to use, it is a very accurate indicator.


Attachment download
📎 itc_ima.mq5 (5.76 KB)
Source: MQL5 #1703
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •