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
Uzman Danışmanlar

JPAlonso-modoki - MetaTrader 5 için Uzman Danışman

Görüntülemeler:
18116
Derecelendirme:
(43)
Yayınlandı:
2012.11.26 09:00
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

Modified from Generated.

Using Envelopes 200, dev 0.35.

//+------------------------------------------------------------------+
//| "Voting" that price will grow.                                   |
//| INPUT:  no.                                                      |
//| OUTPUT: number of "votes" that price will grow.                  |
//| REMARK: no.                                                      |
//+------------------------------------------------------------------+
int CSignalEnvelopes::LongCondition()
  {
   int result=0;
   int idx   =StartIndex();
   double close=SymbolInfoDouble(Symbol(),SYMBOL_ASK);
   double upper=Upper(idx);
   double lower=Lower(idx);
   double width=upper-lower;
   double ma=lower+width/2;
   if(close<=lower || (close<upper && close>ma))
      result=100;
//--- return the result
   return(result);
  }
//+------------------------------------------------------------------+
//| "Voting" that price will fall.                                   |
//| INPUT:  no.                                                      |
//| OUTPUT: number of "votes" that price will fall.                  |
//| REMARK: no.                                                      |
//+------------------------------------------------------------------+
int CSignalEnvelopes::ShortCondition()
  {
   int result  =0;
   int idx     =StartIndex();
   double close=SymbolInfoDouble(Symbol(),SYMBOL_BID);
   double upper=Upper(idx);
   double lower=Lower(idx);
   double width=upper-lower;
   double ma=lower+width/2;
   if(close>=upper || (close>lower && close<ma))
      result=100;
//--- return the result
   return(result);
  }
//+------------------------------------------------------------------+

 I couldn't get the "Mystery of the first week", so just put timer.

//+------------------------------------------------------------------+
//| "Tick" event handler function                                    |
//+------------------------------------------------------------------+
void OnTick()
  {
   if(PositionSelect(Symbol())) return;
   if(TimeCurrent() < D'2012.10.08 10:55') return;
   
   ExtExpert.OnTick();
  }

 

The real one above, the test result below.

compare-chart 

DDE - Server DDE - Server

Export MQL5 live data to Excel (DDE)

isNormalDist isNormalDist

The Shapiro-Wilk normality test.

Trading Signal Module - plain MA crossover Signals Trading Signal Module - plain MA crossover Signals

Simple MA crossover Signaling for Expert Advisor Wizard

SelfLearningExperts SelfLearningExperts

Selflearning Expert Advisor