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

ColorZerolagX10MA_StDev - MetaTrader 5 Script - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

ColorZerolagX10MA_StDev - indicator for MetaTrader 5

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

If the standard deviation of the ColorZerolagX10MA 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 class SmoothAlgorithms.mqh library (copy it to \MQL5\Include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.

ColorZerolagX10MA_StDev - indicator for MetaTrader 5

Figure 1. ColorZerolagX10MA_StDev indicator


Attachment download

📎 colorzerolagx10ma_stdev.mq5 (17.21 KB)

📎 smoothalgorithms.mqh (130.19 KB)

Source: MQL5 #13354

Verification code Refresh