Rejoignez notre page de fans
- Vues:
- 7082
- Note:
- Publié:
- 2019.01.02 14:31
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
The following settings are now available as input parameters:
- color of the indicator main line
- width of the indicator main line
- values of the two indicator levels
What is the purpose of the above updates: now, indicator levels and colors can be managed from within the Expert Advisor. This feature is especially useful during visual testing. For example, non-standard levels are set in the EA: 35 and 75. When using the RSI Custom Smoothing in the visual testing mode, the levels of 35 and 75 will be displayed on the chart.
Indicator buffer smoothing has been added. Smoothing is performed though a Simple averaging method with the period of 6.
An example of creating an indicator handle in the EA:
//--- create handle of the indicator iRSI handle_iCustom=iCustom(m_symbol.Name(),Period(),"RSI Custom Smoothing",Inp_RSI_Period, Inp_RSI_Color,Inp_RSI_Width,Inp_RSI_Level1,Inp_RSI_Level2); //--- if the handle is not created if(handle_iCustom==INVALID_HANDLE) { //--- tell about the failure and output the error code PrintFormat("Failed to create handle of the iRSI indicator for the symbol %s/%s, error code %d", m_symbol.Name(), EnumToString(Period()), GetLastError()); //--- the indicator is stopped early return(INIT_FAILED); }
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/23156

Trading is based on the analysis of yesterday's OHLC with the current day value.

RSI EA - trading based on overbought/oversold zones determined by the iRSI (Relative Strength Index, RSI) indicator.

Two X2MA moving averages from different timeframes, drawn in a single window as a color cloud colored according to the trend direction

A redrawing channel, which looks into the future by a certain amount of bars specified in the appropriate input parameter