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



The Pearson Product-Moment Correlation Coefficient (Pearson PCC) shows the linear relationship between the moving averages of the two instruments, ranging from -1 to +1. When the graph is above zero, it is marked as a positive correlation. Correlation is negative below zero. Zero means there is no correlation.
The indicator has five input parameters:
If an invalid symbol name is used (for the first symbol, the second symbol or both), the indicator will print a message in the log and give an error when uninstalling.
The first symbol in the settings may be different from the symbol of the running indicator. In this case, the indicator value is updated only after the arrival of new quotes for the symbol on which the indicator runs. In order to display this line, the indicator needs the history of the symbol it is using. If the required history is not available, the indicator first downloads the necessary history and then displays the line after a price movement on the symbol it runs on.

Figure 1. EURUSD/USDJPY

Figure 2. EUROCAD/AUDUSD

Figure 3. GBP USD/EUR GBP
Attachment download
📎 ppmcc.mq5 (23.34 KB)
Source: MQL5 #20375
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •