당사 팬 페이지에 가입하십시오
MySystem - MetaTrader 5용 expert
- 게시자:
- Vladimir Karputov
- 조회수:
- 4148
- 평가:
- 게시됨:
- 2018.10.25 15:46
- 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
The author of the idea: Collector
MQL5 code author: barabashkakvn
The EA only operates when a new bar appears. A trading signal from the iBullsPower (Bulls Power) and iBearsPower (Bears Power) indicators is considered only if the market has no positions opened by the EA (the search is performed by the current symbol and the current unique EA identifier - magic number).
Both indicators feature only one setting - Bulls and Bears: averaging period. Trading signal forming algorithm: data from two bars - Bar current and Bar current+1 - are taken in both indicators and the values are divided by 2
double prev = ((bears[1]+bulls[1])/2.0); double curr = ((bears[0]+bulls[0])/2.0);
If the average value on the previous bar is less than on the current one, open BUY:
if(prev<curr && curr<0) { //ClosePositions(POSITION_TYPE_SELL); double sl=(InpStopLoss==0)?0.0:m_symbol.Ask()-ExtStopLoss; if(sl>=m_symbol.Bid()) // incident: the position isn't opened yet, and has to be already closed { PrevBars=0; return; } double tp=(InpTakeProfit==0)?0.0:m_symbol.Ask()+ExtTakeProfit; OpenBuy(sl,tp); return; }
If the average value on the previous bar exceeds the current one, open SELL:
if(prev>curr && curr>0) { //ClosePositions(POSITION_TYPE_BUY); double sl=(InpStopLoss==0)?0.0:m_symbol.Bid()+ExtStopLoss; if(sl<=m_symbol.Ask()) // incident: the position isn't opened yet, and has to be already closed { PrevBars=0; return; } double tp=(InpTakeProfit==0)?0.0:m_symbol.Bid()-ExtTakeProfit; OpenSell(sl,tp); return; }
EURUSD, M15:
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/22016
DeMarker_Histogram_Vol indicator with the timeframe selection option available in input parameters
Hans_Indicator_x4The indicator of expanding time zone corridors with two corridors
HullTrend indicator with additional smoothing of the Hull moving average and rounding the values by the number of digits fixed in the input variables
Hans_IndicatorThe indicator of expanding time zone corridors