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

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&&Close100; //--- 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.

Attachment download
📎 jpalonso-modoki.mq5 (7.47 KB)
📎 signalenvelopes-jpalonso.mqh (9.96 KB)
Source: MQL5 #1288
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •