거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

Return Strategy - MetaTrader 5용 expert

게시자:
Vladimir Karputov
조회수:
7243
평가:
(18)
게시됨:
2018.08.23 13:05
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The author of the idea: Andrey Kornishkin

MQL5 code author: barabashkakvn

The strategy operates with pending limit orders.


Main idea

If at Start Hour, we set the grid of pending orders from Number of pending orders of each type (Buy Limit and Sell Limit), one or several pending orders are activated. Then the price necessarily returns to the Open price of the bar the grid of pending orders has been placed at.

For example, at 19:00 (Start Hour = 19), we place four (Number of pending orders = 4) Buy Limit and four Sell Limit orders. We expect that after one or several pending orders are activated, the price returns to the 19 hour bar's Open price.

Note: There should be no pending orders on a trading account at Start Hour.


Constructing grid

Distance (indent from the current price) + N * Step (step between pending orders)

The Expiration lifetime value is set for pending orders in hours.


Closing positions and removing pending orders

If the total profit of all positions becomes "Total profit" points, all positions are closed while pending orders are removed. At "End Hour", pending orders are forcibly removed.


Inputs

  • Stop Loss (in pips) - stop loss;
  • Start Hour - pending order placing time (in hours);
  • End Hour - pending order removal time (in hours);
  • Total profit (in pips) - when this profit is reached, all positions are closed, while pending orders are removed;
  • Trailing Stop (in pips) - trailing ("0" - disable trailing);
  • Trailing Step (in pips) - trailing step;
  • Distance - distance from the current price to the first pending order;
  • Step - step between pending orders;
  • Number of pending orders - number of pending orders of each type;
  • Expiration (in hours) - pending order lifetime (in hours);
  • Lots - fixed volume of pending orders;
  • Risk - dynamic volume of pending orders, calculated as a risk % per trade;
  • magic number - unique EA identifier.

Optimization was performed from 2018.01.01 to 2018.07.12 on EURUSD,H1:

Return Strategy

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

Exp_Ang_Zad_C_Tm_MMRec Exp_Ang_Zad_C_Tm_MMRec

A trading system using the Ang_Zad_C trend-following indicator with the possibility to set a strict trading time interval and change the volume of a forthcoming trade depending on the results of the previous trades.

Differential_Average_By_Sultonov Differential_Average_By_Sultonov

Smoothed differential indicator by Sultonov.

Gann_Multi_Trend Gann_Multi_Trend

Gann_Multi_Trend indicator defines a short, middle and long-term trends.

Waddah_Attar_Trend_Candles Waddah_Attar_Trend_Candles

The candle chart based on Waddah_Attar_Trend histograms calculated using the Open, High, Low and Close price series of the price chart.