거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
당사 팬 페이지에 가입하십시오
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
- 조회수:
- 18293
- 평가:
- 게시됨:
- 2012.11.26 09:00
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
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.
![Trading Signal Module - plain MA crossover Signals](https://c.mql5.com/i/code/library.png)
Simple MA crossover Signaling for Expert Advisor Wizard
![SelfLearningExperts](https://c.mql5.com/i/code/expert.png)
Selflearning Expert Advisor