Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Vues:
3779
Note:
(20)
Publié:
2018.05.22 13:28
Mise à jour:
2018.06.27 11:57
\MQL5\Include\
IniFile.mqh (16.66 KB) afficher
\MQL5\Scripts\
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

A library to provide simple storage mechanism for expert advisors and indicators.


Library Functions

//--- If the key is not found, the returned value is NULL.
bool  GetIniKey          (string fileName, string section, string key, T &ReturnedValue)

//--- add new or update an existing key.
bool  SetIniKey          (string fileName, string section, string key, T value)

int   GetIniSectionNames (string fileName, string &names[])
int   GetIniKeyNames     (string fileName, string section, string &names[])

bool  IniSectionExists   (string fileName, string section);
bool  IniKeyExists       (string fileName, string section, string key);

bool  DeleteIniSection   (string fileName, string section);
bool  DeleteIniKey       (string fileName, string section, string key);

The ini file can be saved at any place.


Sample File

'D:\my_orders.ini'

[EURUSD]
orders=4
lots=1.26
time=2018.05.20 21:10:21
comment=sell market
with_trend=false
[USDJPY]
orders=6
lots=3.12
time=2018.05.18 02:46:03
comment=buy market
with_trend=true
WPR Support Resistance WPR Support Resistance

WPR (Williams Percent Range) based support/resistance.

Digital filters - separate Digital filters - separate

A set of digital filters that are always drawn in separate window (due to their nature).

Range Oscillator Range Oscillator

Range Oscillator is an indicator that shows the relative position of median price in the highest high to lowest low range for desired period.

Range Oscillator + Bands Range Oscillator + Bands

Unlike the basic Range Oscillator version, this version uses Bollinger Bands for overbought and oversold conditions assessment.