Scalping with Parabolic SAR and Fibonacci

Scalping with Parabolic SAR and Fibonacci

This scalping indicator was requested in the indicators’ forum, it contains 2 parabolic SAR of different settings and plot automatically entry, stoploss and target levels calculated with Fibonacci retracement.

The rules are:


  • When price breaks up through the 0.02 & 0.2 PSAR you draw a Fibonacci retracement
  • from the closest last significant low (before pirce broke PSAR)
  • to the high of the bar that broke the PSAR.
  • This gives you your PROFIT TARGET at 161.8% Level
  • and your ENTRY ar 50% level
  • STOP = Last Signifcant low -2 Pips


  • When price breaks down through the 0.02 & 0.2 PSAR you draw a Fibonacci retracement
  • from the closest last significant high (before pirce broke PSAR)
  • to the low of the bar that broke the PSAR.
  • This gives you your PROFIT TARGET at 161.8% Level
  • and your ENTRY ar 50% level
  • STOP = Last Signifcant high +2 Pips


Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. JMat45 • 42 days ago #

    Thanks, Nicolas, looking forward to experimenting with it.

    • Nicolas • 42 days ago #

      well, the last part of the code could have been more simple, i just saw that i let some of the rough code in it.. but it does not impact the functionality.

  2. kalleklovn • 42 days ago #

    How can i get the chart to where my price is? it always open in new window and i tried adding price but did not work

    • Nicolas • 41 days ago #

      Add it on the price chart by using the wrench at the left upper side of the price chart.

  3. Pinus • 38 days ago #

    Nicolas you are the best. Always!

  4. Larenzu • 37 days ago #

    Bonjour Nicolas,

    Merci pour ce bel indicateur. Que donne t-il en backtest ?

    • Nicolas • 36 days ago #

      Aucune idée, c’est une traduction fidèle d’une stratégie de trading manuel qui a été demandé dans le forum.

  5. juanj • 23 days ago #

    Tried converting this into a strategy but based on results not sure if I did it right. Especially the part where I need to refresh the stop orders based on the plotbar variable (in order to keep them valid)

  6. juanj • 23 days ago #

    Defparam cumulateorders = False

    possize = 1
    plotbar = 10 //no of bars to keep stop orders valid
    buffer = 2*pointsize

    FibTarget = 1.618
    FibStop = 50 //Expressed as percentage

    //highs and lows
    if close sarfast and close[1] sarslow) or (barindex – startbar <= plotbar) then
    startbar = barindex
    irange = high – fibo0
    entry = fibo0 + (irange/(100/FibStop))
    itarget = fibo0 + irange*FibTarget
    istop = fibo0 – buffer
    Buy possize contract at entry-buffer stop
    Set stop ploss (entry-buffer) – (istop-buffer)
    Set target pprofit (itarget-buffer) – (entry-buffer)
    if (close sarfast[1]) Then//new bearish signal
    fibo0 = hh
    hh = 0 //reset hh
    if (close < sarslow) or (barindex – startbar <= plotbar) then
    startbar = barindex
    irange = fibo0 – low
    entry = fibo0 – (irange/(100/FibStop))
    itarget = fibo0 – irange*FibTarget
    istop = fibo0 + buffer
    Sellshort possize contract at entry+buffer stop
    Set stop ploss (entry+buffer) + (istop+buffer)
    Set target pprofit (entry+buffer) – (itarget+buffer)

  7. juanj • 23 days ago #

    Format of the above code is broken, the greater than and smaller than signs have disappeared. I tried using the Add PRT code option but it doesn’t work for Library posts.

  8. Géraud Laveissiere • 13 days ago #

    Bonjour Nicolas, merci pour ton aide précieuse. J aimerai avoir un indic sur le graphe avec des buy et sell dés que 2 hakenashi vert sont cassés à la baisse ( sell) ou 2 HA rouge sont cassés à la hausse( buy). Existe t’il ce code sur PRT? Géraud

    • Nicolas • 13 days ago #

      Merci d’ouvrir un nouveau sujet sur le forum des indicateurs, on verra ce qu’on peut faire pour créer cet indicateur de signaux de trading.

  9. sachinssmp • 7 days ago #

    required above mt4 indicators & mt4 template plz

    • Nicolas • 7 days ago #

      we do not provide mt4 indicators on our website, you can download and use the above code on ProRealTime trading software:

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Dari when I put the indicator does not put it on the price, sn in a new box like many indicators....
Nicolas by adding it on price instead. Use the wrench on the left upper side of your price chart.
Lafras very late to identify signal
nader003 Hi .. how can we get this indicator for MT4 platform
Nicolas You can ask for private custom coding to our programming services: https://www.prorealcode.c...
nn189hu Upss I got it, 10.3 only with premium ,I can’t add it to the chart with Complete ver.
Nicolas Add indicator on price doesnt require any specific type of subcription. Click on the wrench ...
tahiti bonjour j'ai une petite question comment peux on enlevé la bar blanche sur la bougie en cour...
sharksteven Hi BALMORA, looks like a good compliment algorithm. I tried to test it on the EUR USD but it...
kompiuter Hello, how did you optimized all these variable? If I try to optimize only two variables it...
rrenaud_ig Great work ! My only concern is about risk management. Your results are based on 10k. Max lo...
Kris75 Hi, This is great !! anyone ever developped a strategy about it ???
swapping hello Kris75, not that I know but it is possible to make a scenario ;)
digitation Hi swapping, Thanks for sharing this useful tool. I was wondering how difficult it would be...
9 months ago
swapping Please Hans63 and robdav follow to uppe...
Hans63 Thank you swapping
FREDNC @Nicolas merci pour se remarquable indicateur, reste à voir comment on va pourvoir l'intégre...
Nicolas Try to restrain to trading hours when Volumes are present (customized trading hours: righ cl...
Choliver Bonsoir Nicolas, Merci pour cet indicateur. Même s'il n'y a officiellement pas de volume s...
swapping fib1236 = (hiday-lowday)*1.236+lowday DrawSegment(startbar,fib1236,barindex,fib1236) colou...
swapping Oups ! Nicolas il y a un problème avec l'insertion de code en utilisant le bouton [Add PRT ...
swapping fib1236 = (hiday-lowday)*1.236+lowday DrawSegment(startbar,fib1236,barindex,fib1236) colour...
Bard Thanks for this great addition. How would you "finish the syntax" if you were to use an ALMA...
Bard Problems with Safari latest s/ware and this site and links and adding code. Let me add the...
Nicolas Yes, that's how it goes when using loops..
JosephFelix Hi, Could I please have help with adding these indicators 'on price'? Every indicator that I...
Nicolas Just add it on price by clicking the wrench on the left upper side of the price chart.
Nicolas Peut-être à cause du manque d'historique. Celle-ci est utile pour limiter la quantité de ret...
s00071609 Would it be possible to use 2 or 3 points to do the calculations done in this case using zig...
Nicolas Sure, I suggest you open a new topic in the forum to discuss about your ideas.
Marcel The line is just a moving average line. The indicator reacts on the Parabolic SAR dots.
Mattzi I dont get the dots! What am i doing wrong? :)
Mattzi Ignore this comment ;)
Leo Hi Luminario, b0 is a condition that the curve SMA1 is below SMA2. As long as this conditi...
nwesterhuijs Last statements for closure seem incorrect in my opinion: - "IF (Barindex-TRADEINDEX)>11...
Leo This is a 1 min strategy where the markets has been very oversell / overbought and this code...
Real Pro working now, sorry for the bother
David29 BONJOUR, Félicitations pour cet indicateur. Avez-vous une idée de comment créer une strat...
Nicolas Je pense que ça a déjà été codé quelque part sur le forum. Dans la négative merci d'ouvrir u...
2 years ago
ALE P01 , it’s the first patner of the indicator, I hope to add others in future.
ALE We can discuss about the strategy here:
GraHal Is this the Discussion Topic you need @Gregg
bertrandpinoy bonjour Nicolas y a t il une possibilité de signal sonore dès qu une vente ou un achat serai...
Nicolas Oui cela nécessitera une adaptation du code cependant, merci de formuler une demande sur le ...
DaxRider nice job thanks
Bianca super well done...and your english...much more better then mine.. 1) what about to add some...
Van Salt Hi Bianca, the indicator shows you some interesting cluster-zones from long- and shortterm f...
Nicolas Merci de faire une demande spécifique sur le forum et j'essaierai d'y remédier.
redz voila nicolas c'est fait
Nicolas Merci, je m'en occupe dès que possible.