Forum

Indicator: I have a doubt about RSI

as we know that RSI= 100 *RS/( 1 +RS) or RSI= 100 - 100 /( 1 +RS) and RS=A/B A is the average of the summary of price raises ( base on close price) B is the average of the summary of price falls ( base on close price) so if we want to get 'A' of above we should do as double f( double x){ return x> 0

invoke MODE_MARGINCALCMODE and get 4 which is not defined in the document!

void OnStart () { for ( int idx= 0 ;idx< SymbolsTotal ( false );idx++){ string sn= SymbolName (idx, false ); int y=( int ) MarketInfo (sn, MODE_MARGINCALCMODE ); if ( y> 3 ) Print (sn," MODE_MARGINCALCMODE is ",y); } } it return 4,and the docs of MQL4 is not yet