Códigos

Equity Recorder para MetaTrader 4

Record the performance of individual strategies real time in offline charts

Fórum

criando um número mágico

/** * 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 *

Detecção de 5 dígitos

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