Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

JPAlonso-modoki - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 4 reads | 0 comments |

JPAlonso-modoki - expert for MetaTrader 5

Modify self-generated.

Use envelope 200, development version 0.35.

 //+------------------------------------------------------------------+
//| "Poll" indicates that the price will increase.                                  |
//|Input: No.                                                      |
//|Output: "Number of votes" for price increase.                  |
//| REMARK: no. |
//+------------------------------------------------------------------+
Integer CSignalEnvelopes::LongCondition()
  {
integer result = 0 ;
Integer idx =StartIndex();
double close= symbolinfodouble ( symbol (), SYMBOL_ASK );
double up = up(idx);
Double down = down(idx);
double width = top-bottom;
Double ma=bottom+width/ 2 ;
if (accelerate <= next|| (accelerate <upper&&accelerate>ma))
      result = 100 ; //--- return result return (result);
  } //+------------------------------------------------------------------+
//| "Poll" indicates that the price will fall.                                  |
//|Input: No.                                                      |
//|Output: "Number of votes" that the price will fall.                  |
//|Remarks: None.                                                      |
//+------------------------------------------------------------------+
Integer CSignalEnvelopes::ShortCondition()
  {
integer result = 0 ;
Integer idx =StartIndex();
double off = SymbolInfoDouble ( symbol (), SYMBOL_BID );
double up = up(idx);
Double down = down(idx);
double width = top-bottom;
Double ma=bottom+width/ 2 ;
If (Close>=Up|| (Close>Lower&&Close  100; //--- return result return (result);
  } //+------------------------------------------------------------------+

I couldn't get the "First Week Mystery" so I put a timer on it.

 //+------------------------------------------------------------------+
//| "Check" event handler |
//+------------------------------------------------------------------+
Blank check ()
  {
if ( positionselect ( symbol ())) return ;
If ( timecurrent () < D'2012.10.08 10:55' ) return ;
  
   External experts. check ();
  }

The top is the real thing, and the bottom is the test results.

JPAlonso-modoki - expert for MetaTrader 5


Attachment download

📎 jpalonso-modoki.mq5 (7.47 KB)

📎 signalenvelopes-jpalonso.mqh (9.96 KB)

Source: MQL5 #1288

Verification code Refresh