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

SAR Trading System - MetaTrader 5용 expert

조회수:
7118
평가:
(21)
게시됨:
2016.09.19 12:37
업데이트됨:
2016.11.22 07:32
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The SAR Trading System illustrates the operation of the Stop and Reversal (SAR), developed by Welles Wilder. The Expert Advisor check for presence of an open position and starts moving the stop loss with parabolic acceleration, determined by the parameters of the parabolic system.

Every time a new bar opens, the EA moves the stop loss by a value determined by the parabolic. Due to the acceleration factor, the amount, by which the stop loss is moved, increases steadily. As a result, the stop loss moves with a noticeable acceleration. The SAR system is described in more detail below.

Although Wilder conceived the SAR for reversing position at the moment the parabolic touches the current price, the proposed system uses the SAR as an effective trailing stop.

The option for opening random buy or sell positions has been provided in order to illustrate the operation of the stop loss trailing system in an EA. The EA opens random positions only if the 'Random trade toggle' switch is set to 'True'. In case the switch is set to 'false', the EA will not open positions by itself.

Parabolic system, however, remains active. That is, the EA can trail positions opened manually or by another expert.

The EA also features the ability to delay the opening of a new position by certain time. The delay time is set by the timer.

EA moves stop-loss behind the price with acceleration.

SAR parabolic sytem could be very efficient in profit taking.

Below are the external parameter of the EA with brief comments:

  • Initial Stop-loss (points) — initial stop loss value (before the start of the parabolic trailing).
  • SAR acceleration factor increment step — increment of the parabolic acceleration factor (see description below).
  • SAR acceleration factor max. value — maximum value of parabolic acceleration factor (see description below).
  • Random trade toggle — toggle random position opening (true — activate the ability to perform deals manually).
  • Timer frequency (sec) — delay before opening a new deal.

EA uses four input parameters.

Every time a new bar opens, the system must calculate a new stop loss value. For long positions the new value is calculated as:

SAR(n+1) = SAR(n) +AF x [EP - SAR(n)].

Accordingly, for short positions the new stop loss value is calculated as:

SAR(n+1) = SAR(n) - AF x [SAR(n) - EP],

where

  • SAR(n+1) — the stop loss level at the new (n+1) bar,
  • SAR(n) — the stop loss level at the previous (n) bar,
  • EP — (extremum point) — the new maximum (for a long position) or minimum (for a short position) of the price, recorded since the moment the trailing stop started,
  • AF — (acceleration factor) — the coefficient increasing at a constant step (increment of the acceleration factor) on every bar, where the price reaches a new extremum (extremum point). The acceleration factor increases until it reaches the maximum value.

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

Exp_Volume_Weighted_MA_StDev Exp_Volume_Weighted_MA_StDev

Trading system based on Volume_Weighted_MA_StDev indicator signals.

Volume_Weighted_MA_Cloud_HTF Volume_Weighted_MA_Cloud_HTF

The Volume_Weighted_MA_Cloud indicator with the timeframe selection option available in input parameters.

RAVI_Histogram_HTF RAVI_Histogram_HTF

The RAVI_Histogram indicator with the timeframe selection option available in input parameters.

FloatPivot FloatPivot

Another alternative to the Bollinger Bands® channel with colored inner area of the channel.