Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 5978
- Rating:
- Published:
- 2019.10.20 21:15
- Updated:
- 2019.10.20 21:21
-
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:
- - MT4: https://www.metatrader4.com/en/trading-platform/help/userguide/start_comm#data_folder
- - MT5: https://www.metatrader5.com/en/terminal/help/start_advanced/start#guest
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;

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 ;)

Indicator calculate the average price

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

Simplified Script to find signals based on user parameters