Scripts: Script to Map Market Watch Symbols Based on Similarity

 

Script to Map Market Watch Symbols Based on Similarity:

This script is a reference solution for mapping symbol names configured by users in MetaTrader 5 EAs or scripts to the actual names provided by the broker. It uses the Levenshtein distance algorithm to automatically identify the most similar symbol in Market Watch. It is ideal for developers facing compatibility issues with prefixes or suffixes in symbol names. This is a customizable starting point to adapt to any specific needs.

Script to Map Market Watch Symbols Based on Similarity

Author: Enrique Enguix