Home » Expert Advisor » Parabolic SAR EA

Parabolic SAR EA

Parabolic SAR EA - 1Parabolic SAR EA - 2Parabolic SAR EA - 3Parabolic SAR EA - 4

Get the Parabolic SAR EA!

3.7/5166 ratings

About the Parabolic SAR

The Parabolic SAR (parabolic stop and reverse) Indicator was devised by J. Welles Wilder, Jr., to find potential reversals in the market direction. He draws points to the chart, which show the support and resistance price levels. He is included in Metatrader 4 and 5. The default settings are: Step 0.02, Maximum 0.2.

Trade logic of the this forex robot

The Parabolic SAR EA is a forex robot which uses the P-SAR support and resistance levels to enter a trade. A buy signal is generated if the price breaks through the resistance level and a sell signal is generated if the price beaks through the support level. The advanced version has a second optional Parabolic SAR indicator as trend filter.

As default the EA trades only on a new opening of a candle. If you do not want to wait for a candle to be closed, you can switch the TradeOnNewBar function to false. The EA then enters a trade immediately if there is a break through.
In the sideway market movement you may want to open a Sell position where actually a Buy position should open and the other way around. You can do this by setting the InverseStrategy function to true.

The advanced EA includes additionally SpreadFilter which filter out large price differentials in a high volatile market situation. He also includes a TrailingStop and a BreakEven function to secure your current profits. A Parabolic SAR trend filter is also included to determine the current market direction.

Parameters for the Expert Advisor

Timeframe = The timeframe on which the EA should work regardless what timeframe your chart is set to. (Default is PERIOD_CURRENT )
Step = Stop increment (default 0.02)
Maximum value = Maximum stop value (0.2)

Versions overview

Functions Basic Advanced Pro
Money Management
Trade on new Bar
Inverse Strategy
Trailing Stop
Break Even
Spread Filter
P-SAR Trend Filter
Trade max. once per Bar
P-SAR Trailing Stop
Candle Trail
ATR Trail
Day/Time Filter
Reverse on Opposite Signal
Trade Direction

Starter Bundle

The Parabolic SAR EA is included in the EA Starter Bundle.

More about the Parabolic SAR EA

  • You can install the Parabolic SAR EA on limitless demo and live accounts.
  • Note that this Metatrader Expert Advisor does not draw any indicator on the chart.
  • You do not understand all the functions? Take a look at our function glossary.
  • This EA is not pre-optimized. Please read the article about optimization first.
  • The license of every Expert Advisor you download is time limited, but you can re-download newer versions any time in your purchase history.
  • MT4 Basic v1.06
  • MT4 Advanced v1.06
  • MT4 Pro v1.06
  • Dez 13, 2017

  • Fixed: Problem with trading sessions of some brokers
  • Aug 28, 2017

  • Fixed: Martingale function in Pro version
  • Jan 13, 2016

  • Minor updates and fixes in all MT4 versions
  • Nov 24, 2015

  • fixed: P-SAR did show the filter if not used after a backtest (MT4 Advanced & MT4 Pro)
  • added: A P-SAR Trailing Stop (MT4 Pro)
  • Oct 05, 2015

  • Bugfix: Fixed “array out of range” after changing settings in all MT4 versions
  • Oct 01, 2015

  • Added “Reverse on opposite Signal” to MT4 Pro version
  • Sep 24, 2015

  • Initial release MT4 Pro
  • Apr 11, 2015

  • Some improvements in all MT4 versions Added “Max once per Bar” function to all MT4 Advanced and Pro versions
  • Mar 25, 2015

  • Fix bug on MT4 basic version. You can now customize the p-sar step and maximum value
  • Feb 01, 2015

  • Initial release MT4 Basic and MT4 Advanced

Need a good Forex Broker for your trading tools?

100 thoughts on “Parabolic SAR EA”

  1. Siamang says:

    Can this EA works on both MT4 and MT5?

    1. Yannick says:

      No, only MT4

  2. Steve says:

    Hi How does the P SAR Trend Filter work? Is it like ADX? Thanks

    1. Yannick says:

      It adds a second PSAR with different settings, which works as a filter. The EA only opens trades if the trade goes in the same direction as the PSAR filter’s trend.

  3. Nidhi says:


    I bought the EA Parabolic SAR pro, tried to set Time Filter. It is nice the starting time can work nicely, but the trades continue to be opened after the set ending time. Is there anything I can do to set the ending time?

    Thank you.

    1. Yannick says:

      No, you have to close them manually. The filter only prevents trades from being opened.

  4. Nidhi says:

    Hello, Yannic, I just bought the Parabolic SAR EA. Thanks, it is nice and function well. With this programming, is it possible to close the trade when the price hitting the dot, instead of closing the trade with the SL or TP?


    1. Nidhi says:

      Thanks. I find the reverse function works on that.

    2. Yannick says:

      Yes, use the P-SAR Trailing Stop for this.

  5. Tina A says:

    Hello Sir, I hope all is good! Does your psar ea open trade on first dot bar close?

    1. Tina A says:

      also does it have a take profit and stoploss function, I do not see this in the picture above. Thank you!

      1. Yannick says:

        Yes, it has SL and TP.

    2. Yannick says:

      If you set tradeOnNewBar to false, the EA will open a trade as soon as the first dot appears.

  6. Connor D Murphy says:

    Hello, I am trying to put this in MQL4 but the file is a different format and I have no clue on how to change the file. Any help is appreciated!

    1. Yannick says:

      Please check out the installation guide.

  7. AL says:


    I just downloaded the free version, as soon as the direction changes it does not close the current one and do the opposite trade. I mean closing existing buy and doing sell trade. Is it because of being basic version? If I want EA do that completely with which version I should go

    1. Al says:

      Sometimes on current candlestick you see parabolic SAR changes couple of times. For example in 1H chart, at the opening time of candlestick is on upper side showing down trend maybe 25 minutes later it will come on downer side of candlestick showing up trend. So can you EA realize this situation and rapidly close the current trade and open the new one in a changed direction? Please explain

      beside of that I checked your basic one it had some delays to open the trade when the new candlestick with new direction was starting. I want to know the reason and if it is a the same case with your PRO one?

      1. Yannick says:

        Yes, this is possible with the reverseOnOppositeSignal in the Pro version.

        Have you tried to disable the tradeOnNewBar parameter?

    2. Yannick says:

      Yes, the basic version does not include the reversOnOppositeSignal function.

  8. Vlad says:

    Hello from Canada,
    – Yannick, PSAR is one of the trading indicators I use… and for the longest time was searching for PSAR EA… and finally I have found YOU… congratulations on your creation!…
    – Q: can this EA be set up in such a way that when it is put on an open trade… can just close the trade when the PRICE will hit PSAR?

    Thank you, Vlad

    1. Yannick says:

      Thx 🙂
      Yes, use the P-SAR Trailing Stop for this.

  9. Jordi Vericat says:

    After buying a robot and optimizing it for different pairs and timeframes, I understand that it is necessary to modify the robot with the different parameters obtained and to obtain different new robots for each pair and timeframe.
    How is it done?

    1. Yannick says:

      You mean the optimization process? I wrote a tutorial about this.

      1. Jordi V. says:

        No, I refer if after optimizing I want to change the Stop Loss or every other condition in your EA.

        1. Yannick says:

          This is possible in the expert’s input tab.

  10. Marius Stanescu says:

    Hi. I would like to buy and EA, but there are so many without a history that i do not know what to choose and trust. My interest is a safe steady consistent profit monthly….which one you recomand?

    1. Yannick says:

      I do not provide backtest because they are not meaningful. No EA can guarantee safe steady profits. Test the free version, use the strategy tester to find profitable settings and maybe consider to buy the pro version for more functions/power later.

  11. Ammm says:


    can I backtest the PRO version as a demo?

    Thank you,

    1. Yannick says:

      No, you can only test the basic version for free.

  12. Motsusi David says:

    Yannick I finally got way with Parabolic SAR Pro. Thanks

  13. Motsusi David says:

    Yannick, what is your turnaround on messages sent? I ourchased Parabolic SAR and it has generated no trades despite having attached it properly to chart?

    I bought it so I could use it and am getting frustated.

    1. Yannick says:

      If the basic version you tested did work and the pro does not, it’s certainly because of the spread filter integrated with the pro version. Change its value and test it again.

  14. Motsusi David says:

    Yannick I just bought Parabolic SAR Pro and attached it to the chart after making some inputs. How can I know it is trading as there is no position opened in my trade account?

    1. Yannick says:

      See your trade history. If there is not trade, check your settings. Mostly it’s because of the spread filter.

  15. Ray Coman says:

    It turns out that the reason my trade did not trigger is because there was a setting that disabled.

    However, I have not yet been able trade indices or crude oil using the indicator. Do you have advise on the parameter that needs to be changed for this?

    1. Yannick says:

      Try to adjust only the pip based values (TP, SL, Slippage, MaxSpread) and make some backtest to adjust the EA to your symbol.

  16. Ray Coman says:

    Dear Yannick,

    I recently purchased the Parabolic SAR EA Pro from you. The backtests showed that it was profitable
    However this morning, the Yen fell quite sharply in value
    My position should have reversed from a buy to a sell
    But it did not.
    I can see the indicator on my chart and what the EA should have done
    But, the robot did not behave as expected and as a result I lost money
    Since I purchased this EA I am trying to find out what happened.
    I have reverse on opposite signal set to true. Slippage set to 50 and max spread set to 80.
    Perhaps because it is the Yen, the spread is working on a different decimal

  17. Fasha says:

    I bought the Moving Average Pro EA yesterday, but am not satified with it. Can I exchange it with Parabolic SAR pro EA. Both have same price.

    1. Yannick says:

      Unfortunately, it is not possible to switch a product. But please contact the support to find a solution.

  18. ahmed says:

    can used more one expert together

    1. Yannick says:

      Yes, just use a different MagicNumber if you use 2 or more EA on the same symbol.

      1. David Hoffman says:

        Hello i would like to use Parameters EA with your ADX Ea together to create one trade . you said this is possible ? how would this be done ? set seperate magic numbers in the same magic number space , 123 , 567 like this
        Thanks Dave H.

        1. Yannick says:

          No, this is not possible. You can only use both on the same symbol but they do trade separately from each other.

  19. Eduardo says:

    Hi there.

    In the basic version:

    If the EA open a buy, after a buy signal of the PSAR indicator, and in the next candle the indicator reverse to sell, DOES THE EA CLOSE THE PREVIOUS ORDER (BUY) AND OPEN A NEW ORDER (SELL)?

    Or it mantain both orders opened?

    Thank you in advance.

    1. Yannick says:

      The EA has never more than 1 trade open at the same time. It is possible to reverse the signal with the ReverseOnOppositeSignal function in the pro version.

  20. Thomas says:

    Hi Yannick,

    I downloaded the basic version and put it into the folder indicators. It shows up in Metatrader 4 but if I want to apply it to a chart simply nothing happens.

    Any idea?



    1. Yannick says:

      Its because the PSAR EA in not an indicator but a Expert Advisor. You have to put it into the MQL4/experts folder.

  21. Xiska saputra says:

    Dear Yannick,

    Hi there, I am interested on using this EA, but on what timeframes shall I use this EA ? Hourly chart ? and if i am using the basic parabolic sar, are there any signal to exit ? or is it only based on the stop loss and take profit only to exit the market ? there is no trailing stop on it ?

    1. Yannick says:

      You can use it on any timeframe and symbol you want. The basic version does not have exit strategy nor exit strategies. Only the Advanced and Pro versions do have Trailing Functions. And the PSAR Stop is only included in the Pro version.

  22. Pedro G says:

    Dear Yannick you have done a great job, I congratulate you for this really good creation.

    How to configure so that the “Parabolic SAR EA” will position only in upward or downward trend, and not when the market is lateralized. As shown in the video, in which the robot will only have the order when the trend is , And will not do so when the market changes.

    In my MT4 the robot will habre and closes the order when the signal ends and immediately there will be in the opposite direction and then in the opposite direction.

    In the video it is observed that the robot will only have position when the market is in upward or downward trend.

    Thank you very much for the reply

    1. Yannick says:

      This Parabolic SAR EA is not exactly like the one on tradarz.com. Please use the forum to share your settings and write how you want this EA to trade an I will try to help you.

  23. Pedro G says:

    Dear Yannick

    The Expert Advisor PRO is very good

    Where is it set up? “MaxOpenOrder has to be set to 1” in order to use the “ReverseOnOppositeSignal / ReverseOnSignal”

    I can not find it

    In what part of the EA is this option?

    And I have another question

    Can the AE start to open operation on the first candle and not on the second candle?

    Thank you very much dear

    1. Yannick says:

      The MaxOpenOrders function is not included in this EA.
      Yes, you only have to switch the TradeOnNewBar filter.

  24. Pedro G says:

    I just bought the Parabolic SAR EA PRO
    How to set the robot to have the “The Parabolic TS is based on the PSAR”?
    please can you tell me
    thank you very much

    1. Yannick says:

      By enameling the “Use PSAR Trailing Stop” the EA will place a secure StopLoss at the current PSAR price.

  25. Christophe P says:

    Version Pro for MT5 ???

    1. Yannick says:

      Unfortunately not available yet.

  26. laval says:

    Hello Yannick, on your ea on the parabolic sar I like to know if you can set it so that a position is triggered when prices cross the opposite sar upward or downward. Your descriptive rather talk support and resistance?
    Regarding the professional version I see that you can set a trailing stop loss based on the parabolic sar is that correct?
    In this case the position it is enclosed when the reverse sar is crossed?
    My strategy is based on a monitoring of stop loss. Cordially.

    1. Yannick says:

      Yes, the advanced and pro version to have a PSAR TrailingStop. The PSAR sets the SL on the same price as the current PSAR point is, means the position get closed even before there is a trend reversal.

  27. laval says:

    Hi Yannick did you speak french? I have some questions about pro ea sar ?

    1. Yannick says:

      Yes, I speak fluent french, but I’m very bad in writing and reading in french :/

  28. Jozef says:

    Hi Yannik,
    I looking for PSA EA pro
    Best regards

    1. Yannick says:

      How may I help you?

  29. Yuru says:

    basic version didnt work. license expired. Why?

    1. Yannick says:

      Have you received the message “License expired”? Please download the EA again in your account and overwrite the file on your PC.

  30. Tony Ray says:

    Hi, Yannick,

    Just purchased the Parabolic Pro and am wondering what settings you’re using in the Little Lion EA demo video. Could you please share those? I can’t seem to get the Para PRO to trade more than once within the PSAR filter range for the H1 timeframe during backtesting. Thank you.

    1. Yannick says:

      I do not have these settings any more. I just optimized the EA with the strategy tester and picked a sequence that looked good. And the video is old. It was made in 2013.
      The EA does not have more than one open trade at the same time. If are not sure about your settings, please post them in the forum and we will help you find the error.

  31. Mohamed Ibrahim says:

    do you have an expert make scan for all currencies for Parabolic sar when it turn over their direction

    1. Yannick says:

      No, but you can attache this EA to multiple charts of you want.

  32. Giovanni Anile says:

    I wanted to know what is on average the weekly performance for this EA?

    Volevo sapere in media quanto é il rendimento settimanale in condizioni di mercato discreto di questo ea?

    1. Yannick says:

      Unfortunately I do not have any statistics for this EA

  33. Andrea says:

    Hi Yannick I am willing to buy your EA but I was searching for a backtest screenshot to understand how the equity/progresses along time. Do you have anything like that?

    Thanks in advance 🙂

    1. Yannick says:

      No, I do not have backtests. But you can download the free version and make a backtests with the basic strategy.

  34. Eben says:

    Hi, how many transactions can be managed throughout how many different instruments at the same time pls? Can this ea be applied to many markets in the same account simultaneously, deploying multiple transactions throughout several different markets at once?

    1. Yannick says:

      You can attach only one EA per chart. The EA only opens/manages one trade per chart. But you can open multiple charts (same or different symbol/timeframe) and use the EA several different markets at once. You only need to set a different MagicNumer each time you use the same symbol. Try the free basic version to test it in a demo account.

  35. Greg B says:

    Hay , on the free version is automatically closing positions when it opened the second with a different direction?

    1. Yannick says:

      No, this is only available in the Pro version. It’s the “Reverse on opposite signal” function.

  36. Aiman says:

    hey there Yannick, what is the minimum margin to use this EA?

    1. Yannick says:

      There is no minimum.

  37. Fredf says:

    What’s the difference between a parabolic trailing stop and a usual trailing stop ?
    How is it managed?

    1. Yannick says:

      The normal Trailing Stop is based on pips and sets the SL always at the same distance from the price. The Parabolic TS is based on the PSAR indicator and sets the SL at the PSAR price.

  38. greatness says:

    Good to see it got updated today. Nice and fast !

    1. greatness says:

      I just tried it out,….
      …unfortunately it does need a different Par SAR setting for the the Par SAR Trailing stop…
      + Pad amount
      + Trail after # pips in profit.

      This way it will be like a trailing stop that a real trader would use. This way it is too simplistic.

      1. Yannick says:

        You’re right. A Pad amount should be implemented. I will add a “min Distance to Trail” function instead of the “Trail after x pips”. That means that the price has to be a certain distance away from the current price before the SL can move. This way the trade will always have enough space.

  39. Grubby says:

    Thanks for that. I will have a play and get back to you if I have any more questions…

    1. Yannick says:

      You’re welcome 🙂

  40. Grubby says:

    Hello Yannick,

    I have a question about the basic SAR variables. On IG there are 3 for Parabollic SAR:

    Intial acceleration
    Acceleration step
    Acceleration limit

    Your EA seems to have step and limit, but no initial acceleration. This variable can make a big difference on the IG charts…

    Is there an initial acceleration variable in your EA?

    Many thanks,


    1. Yannick says:

      No sorry, I only use Metatrader’s default PSAR which has only the Step and the Maximum. If you find a modified PSAR indicator for MT4, I can make you a custom modification based on it.

  41. Robert says:

    I just wanted to take a few minutes to come back here and say thank you.
    I will not say too much about the EA because anyone that can read can see what an amazing EA it is but I will say it delivers on its promises.

    Instead I want to say thank you to the creator of this EA, Yannick’s dedication to customer service took me from a terrible experience to absolute joy.

    You can see in a previous post that I stated I am very new to the trading game and as a result I was struggling hard to get this EA working with my strategy.
    I was ready to give up and call it money wasted but instead I decided to contact support on the site here.

    The ideas and the level of customer care I received from Yannick were FAR beyond any reasonable expectation. It really knocked my socks off.

    I would recommend this EA to anyone because it not only delivers on its promises; Yannick is serious and very dedicated to standing behind his product and having happy customers. That always makes all the difference in these situations.

    Cheers and good luck trading guys.


    1. Yannick says:

      Thank your Robert for this nice comment. I am glad that I could help you.

      I will continue programming great stuff, updating my existing programs and try to continue providing good support for my products.

  42. Robert Samson says:

    I am relatively new to trading and am trying to get an EA to perform what would seem to be a simple function.

    When Parabolic SAR indicates a buy, place a buy.
    When Parabolic SAR indicates a sell, the buy is closed and a sell is placed.
    When Parabolic SAR indicates a buy again, the sell is closed and a buy is placed.
    and so on and so on……

    I should not have two trades open at the same time.
    I have been doing some research and this seems to work best on the hourly chart.

    I like the idea of a stop loss but the take profit should be whenever the parabolic SAR changes from buy/sell.

    Also at the bottom of the EA it says “step” and “maximum value”, what does that mean?

    Is there a detailed PDF I could get to explain each of these to help me decide what their value should be?

    I thank you in advance for your help.

    1. Yannick says:

      As requested I’ve added the “Reverse on opposite signal” function to the Pro version.
      Step and maximum are the default PSAR indicator parameters. No sorry, I have no manual for the PSAR indicator.

  43. Nordin says:

    Dear Sir
    How do I download the free version for a start.


    1. Yannick says:

      You only have to choose the version you want, click on “Purchase”, go to the checkout (cart), enter your information, click again on “Purchase” and then you get to to page with the download link. Read this if you want to know how to install an Expert Advisor after you downloaded the EA.

  44. Diego Fracasso says:

    Hello . Is it possible the closure of all open positions before the end of the market ?

    1. Yannick says:

      What do you mean with the “end of the market”?

      1. Diego Fracasso says:

        Sorry about my English. I would not want to keep open positions from one day to another.
        Could you suggest which parameters should I optimize for stock investments ?
        Thank you.

        1. Yannick says:

          Unfortunately that is not possible with this EA. In the PRO version (I will programme it soon), you can just decide when you want to open a position.
          I just have programmed a new tool called Auto Close Timer. Hope this helps you. You find it here: https://quivofx.com/tools/auto-close-timer/.
          Did you read my tutorial on how to optimize an Expert Advisor?

          1. Diego Fracasso says:

            I entered the tutorial, but I’m trying to find out which parameters can be optimized. Can you help me with this?
            Yesterday used the SAR EA and did not respect the limit of lots programmed. Is it a bug?

          2. Yannick says:

            You can optimize every parameter you want to.
            If you set the Lots too height, too low or an invalid lotsize, the EA will automatically adaptd it.
            If you need some more help/information about your settings/EA, please contact me here.

Leave a Reply to Pedro G Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.