거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
5581
평가:
(6)
게시됨:
2018.07.13 15:24
\MQL5\Include\ \MQL5\Indicators\
NRTR.mq5 (9.91 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Two identical trading systems (for long and short positions) based on the signals of indicator NRTR, which can be differently configured within one EA. For this purpose, all inputs of the EA are divided into two large groups:

  1. If their names start with L, these are inputs to manage long positions;
  2. If their names start with S, these are inputs to manage short positions.
//+----------------------------------------------+
//| EA input parameters for long positions       |
//+----------------------------------------------+
input uint    L_Magic=777;          //L magic number
input double  L_MM=0.1;             //L share of a deposit in a deal
input MarginMode L_MMMode=LOT;      //L lot size detection method
//+----------------------------------------------+
//| EA input parameters for short positions      |
//+----------------------------------------------+
input uint    S_Magic=555;          //S magic number
input double  S_MM=0.1;             //S share of a deposit in a deal
input MarginMode S_MMMode=LOT;      //S lot size detection method

These two trading systems use different magic numbers and are absolutely independent on each other. Real financial markets are rarely symmetrical, so it is often a case that absolutely different parameters of the same trading system are required for bullish and bearish trading. For a convenient EA setting, you should initially test only one of the two trading systems, having disabled the second one using relevant switches.

input bool    L_PosOpen=true;       //L permission to enter long positions
input bool    L_PosClose=true;      //L permission to close long positions

Upon having set up the first system, you should enable and set up the second one only.

For the EA to operate, the compiled NRTR.ex5 indicator file must be in the <terminal_data_folder>\MQL5\Indicators folder.

The default EA inputs were used in tests below. Stop Loss and Take Profit were not used in testing.

Fig 1. Exemplary trades in a chart with symmetrical settings.

Fig 1. Exemplary trades in a chart with symmetrical settings.

Test results for GBPJPY H4 over the year 2016:

Fig. 2. Testing results chart.

Fig. 2. Testing results chart.

Fig. 3. Exemplary trades in a chart with non-symmetrical settings.

Fig. 3. Exemplary trades in a chart with non-symmetrical settings.

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/21183

XPeriodCandleSystem XPeriodCandleSystem

Indicator XPeriodCandle supplemented by Bollinger Bands, based on their candlesticks, and indicating with the bright candlestick color if the candlesticks go beyond the bands.

Bear_Bulls_Power_Candle Bear_Bulls_Power_Candle

A candlestick-based chart based on histograms Bear_Bulls_Power calculated on the Open, High, Low, and Close timeseries of the price chart.

Bear_Bulls_Power_Period_Candle Bear_Bulls_Power_Period_Candle

Synthetic Japanese candlesticks over the period defined in the indicator settings, calculating on each bar, based on the Bear_Bulls_Power_Candle indicator candlesticks.

Alexav D1 Profit GBPUSD Alexav D1 Profit GBPUSD

The Expert Advisor places four positions with different Take Profit levels per time. As soon as one Take Profit triggers, the other positions will be moved to breakeven.