Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

Instance ID script for MT4/MT5 - script for MetaTrader 5

Views:
5279
Rating:
(15)
Published:
2019.10.20 21:15
Updated:
2019.10.20 21:21
instance.mq5 (2.53 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This script calculates and prints out the instance_id for MT4/MT5 installations.

The instance_id is used in the roaming folder names such as

C:/Users/{username}/AppData/Roaming/MetaQuotes/Terminal/{instance_id}/

Please, find more details here:

The original idea comes from the user JC, posted on the forum. Main changes are:

  • Built-in Unicode conversion using StringToShortArray (wide chars, 2 bytes); this should presumably support folder names with non-ASCII characters;
  • Built-in MD5 hashing using CryptEncode (CRYPT_HASH_MD5); this removes dependency from custom MD5 implementation;
The script prints current MetaTrader instance installation folder and corresponding instance_id in the experts log.

      NELODI BackProp Chart NELODI BackProp Chart

      Custom Price Chart using a simple Artificial Neural Network that tries to project price movements into the future. Not very useful for trading, but fun to watch and learn ;)

      VR Calculate Martingale Lite MT 5 VR Calculate Martingale Lite MT 5

      Indicator calculate the average price

      Open/Close Charts Open/Close Charts

      First script selects symbols having spread below specified value on the marketwatch, then opens corresponding charts by appyling timeframe and template stated.

      Quick Script to browse Signals, searching for your own parameters. Quick Script to browse Signals, searching for your own parameters.

      Simplified Script to find signals based on user parameters