Mira cómo descargar robots gratis
¡Búscanos en Telegram!
Pon "Me gusta" y sigue las noticias
¿Es interesante este script?
Deje un enlace a él, ¡qué los demás también lo valoren!
¿Le ha gustado el script?
Evalúe su trabajo en el terminal MetaTrader 5
Indicadores

Stochastic Custom - indicador para MetaTrader 5

Visualizaciones:
1413
Ranking:
(11)
Publicado:
2019.02.01 07:28
MQL5 Freelance ¿Necesita un robot o indicador basado en este código? Solicítelo en la bolsa freelance Pasar a la bolsa

Cuando el iStochastic estándar se invoca desde el EA, en el modo visual de la simulación, este indicador estándar SIEMPRE va a mostrar dos niveles: 80.0 y 20.0. Esta situación no nos conviene, si el EA utiliza otros niveles (por ejemplo, 75.0 y 25.0).

Por eso, el indicador estándar fue modificado. Stochastic Custom tiene dos parámetros nuevos en el indicador.

Stochastic Custom

Ejemplo de la llamada a este indicador desde el EA:

***
input int            Inp_STO_KPeriod= 5;        // STO: K period
input int            Inp_STO_DPeriod= 3;        // STO: D period
input int            Inp_STO_Slowing= 3;        // STO: Slowing
input int            Inp_STO_Level1 = 25.0;     // STO: Value Level #1
input double         Inp_STO_Level2 = 75.0;     // STO: Value Level #2
***
//--- create handle of the indicator iCustom
   handle_iStochastic=iCustom(m_symbol.Name(),Period(),"Stochastic Custom",
                              Inp_STO_KPeriod,Inp_STO_DPeriod,Inp_STO_Slowing,Inp_STO_Level1,Inp_STO_Level2);
//--- if the handle is not created 
   if(handle_iStochastic==INVALID_HANDLE)
     {
      //--- tell about the failure and output the error code 
      PrintFormat("Failed to create handle of the iCustom indicator for the symbol %s/%s, error code %d",
                  m_symbol.Name(),
                  EnumToString(Period()),
                  GetLastError());
      //--- the indicator is stopped early 
      return(INIT_FAILED);
     }

Traducción del ruso realizada por MetaQuotes Ltd
Artículo original: https://www.mql5.com/ru/code/23385

iMA iSAR EA iMA iSAR EA

Este sistema comercial se basa en tres iMA (Moving Average, MA) y dos iRSI (Relative Strength Index, RSI)

Stalin_HTF_Signal Stalin_HTF_Signal

Descripción breve

iMA iStochastic Custom iMA iStochastic Custom

Sistema comercial a base de los indicadores Custom Moving Average Levels y Stochastic Custom

Stalin_Signal Stalin_Signal

El indicador Stalin_Signal muestra la información sobre la tendencia actual usando los valores del indicador Stalin_NRTR con timeframe fijo.