bernd / Publications
Codes
Equity Recorder pour MetaTrader 4
Record the performance of individual strategies real time in offline charts
Forum
créer un numéro magique
/** * create a positive integer for the use as a magic number. * * The function takes a string as argument and calculates * an 31 bit hash value from it. The hash does certainly not * have the strength of a real cryptographic hash function * but it should be more than sufficient for generating a *
Détection de 5 chiffres
double pointsPerPip(){ string suffix = StringSubstr ( Symbol (), 6 ); int digits = MarketInfo( "EURUSD" + suffix, MODE_DIGITS); if (digits == 0 ){ digits = MarketInfo( "EURUSD" , MODE_DIGITS); } if (digits == 0 ){ return ( 1 ); } else { if (digits == 5 ){ return