Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

MA_RoundingStDev - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

MA_RoundingStDev - indicator for MetaTrader 5

Real author:

This MA_Round indicator has an additional trend strength indication, using colored points based on the standard deviation algorithm.

If the standard deviation of the MA_Rounding indicator is between the dK1 and dK2 parameter values, a small colored dot will appear on the moving average. Its color corresponds to the current trend direction.

 Enter double dK1= 1.5 ; // square law filter coefficient 1
Enter double dK2= 2.5 ; // square law filter coefficient 2

If the standard deviation is higher than the dK2 input parameter value, the point size increases. Therefore, we get 3 levels of trend strength indication:

The indicator uses the СMoving_Average and CXMA classes of the SmoothAlgorithms.mqh library. How to use this class is described in detail in the article "Average price series for intermediate calculations without using additional buffers" .

MA_RoundingStDev - indicator for MetaTrader 5

Figure 1. MA_RoundingStDev indicator


Attachment download

📎 ma_roundingstdev.mq5 (14.58 KB)

📎 smoothalgorithms.mqh (130.19 KB)

Source: MQL5 #14081

Verification code Refresh