sa r trading system

sa r trading system
Download ALL MT5 experts (1593)
YouTube Video Thumbnail



Similar MetaTrader Tools

sa r trading system

Info

The sa r trading system is a Expert Advisor for MetaTrader 5 that 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.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use sa r trading system

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

What this tool does

the sar trading system illustrates the operation of the stop and reversal (sar), developed by welles wilder.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.

Description & Settings

Related: Interactive Chart Trading Panel with Risk Management for MT5 - another powerful expert for MetaTrader 5 traders.


Also recommended: Trading Panel EA - Enhanced Trade Management - similar expert with strong performance on MetaTrader 5.

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.
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.
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.

You may also like: Blue Moon EA: Advanced EMA Envelope Trading for MT5 - excellent alternative for expert users on MetaTrader 5.

Source Code

#property copyright "robotfx"
#property link "https://robotfx.org"
#property version    "1.00"
input int            timertime=300;        // timer frequency (sec)
input int            stoploss = 10;       // initial stop-loss (points)
input double         afstep = 0.02;       // sar acceleration factor increment step
input double         afcap = 0.2;         // sar acceleration factor max. value
input bool           randomtrade = true;  // random trade toggle
int                  tradevalue;
long                 stoplevel;

.......

Leave your opinion, ask a question, share some knowledge

Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.