Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Telegram üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Göstergeler

Stochastic Custom - MetaTrader 5 için gösterge

Görüntülemeler:
9207
Derecelendirme:
(11)
Yayınlandı:
2019.02.07 08:46
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

When standard iStochastic is called from the EA, then two levels, 80.0 and 20.0 will ALWAYS be displayed for this indicator in the Visual Tester. It's no good, if the EA uses other levels, such as 75.0 and 25.0.

Therefore, the standard indicator was modified: Indicator Stochastic Custom has two new parameters:

Stochastic Custom

Sample indicator call from the 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);
     }

MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/23385

iMA iSAR EA iMA iSAR EA

A trading system based on three indicators iMA (Moving Average, MA) and two indicators iRSI (Relative Strength Index, RSI)

Stalin_HTF_Signal Stalin_HTF_Signal

Summary of the Expert Advisor

iMA iStochastic Custom iMA iStochastic Custom

A trading system based on indicators Custom Moving Average Levels and Stochastic Custom

Stalin_Signal Stalin_Signal

Indicator Stalin_Signal displays information on the current trend, using the values of indicator Stalin_NRTR with a fixed timeframe