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

A trading system based on indicator signals Parabolic Stop and Reverse system with the possibility to set a fixed position holding time. The signal is formed when a bar is closed, if the trend direction has changed. Once position holding time exceeds a preset fixed limit, the position will be closed immediately:

input bool   TimeTrade=true;      //Enabling position exit by time
input uint   nTime=240;           //Open position holding time in minutes

Note that library file TradeAlgorithms.mqh is designed for using EAs with the brokers that offer a nonzero spread and a possibility to set Stop Loss and Take Profit simultaneously with opening a position. You can download the other versions of this library at Trade Algorithms.

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

Fig. 1. Example trades on the chart

Fig. 1. Example trades on the chart

Test results for AUDUSD H6 over the year 2016:

Fig. 2. Testing results chart

Fig. 2. Testing results chart

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

EA Moving Average EA Moving Average

The EA is based on Moving Average.mq5 from standard delivery. Working with OnTradeTransaction to get the price of the last closed position.

Sar_HTF_Alert Sar_HTF_Alert

Indicator iSAR with the timeframe selection option in input parameters, implemented in color, with the possibility to generate alerts when the trend changes its direction.

exp_Amstell exp_Amstell

The EA uses a virtual Take Profit for closing gaining positions. Opening positions with a step. Catch the type of the last position and its price in OnTradeTransaction.

TwoBarsComparison TwoBarsComparison

The EA compares the opening prices of the zeroth and the second bar. It moves positions to a breakeven and/or enables trailing.