당사 팬 페이지에 가입하십시오
Breadandbutter2 - MetaTrader 5용 expert
- 게시자:
- Vladimir Karputov
- 조회수:
- 2742
- 평가:
- 게시됨:
- 2018.10.25 15:48
- 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
The author of the idea: Scriptor
MQL5 code author: barabashkakvn
The EA based on iADX (Average Directional Movement Index, ADX) and iAMA (Adaptive Moving Average, AMA) indicators. The EA only operates when a new bar appears. When receiving a trading signal, opposite positions are closed.
The search for the best parameters for the symbol and the timeframe should be carried out in two ways:
manual - editing "<" ">" characters in the signal equations:
if(adx_0<adx_1 && ama_0>ama_1) { 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(adx_0>adx_1 && ama_0<ama_1) { 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; }
automatic - selecting stop loss, take profit and AMA indicator horizontal shift:
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/22003
The trading system is based on a simple neural network.
Hans_IndicatorThe indicator of expanding time zone corridors
DeMarker_Histogram_Vol indicator with additional averaging of the resulting histogram
TP SL TrailingStop loss and take profit initial setting. Trailing.