Absolute Strength

Absolute Strength

The Absolute Strength indicator indicates the current market “strength” in two different ways possible:

  1. RSI Method
  2. Stochastic Method

and by separating the bulls and bears into 2 curves.

The results are then averaged with the same “length” as the one used for these 2 above methods and smoothed a second time using the “Smooth” variable. The moving average mode used is by default the Weighted one.


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. Vicari0us • 01/16/2019 #

    Hi Nicolas,

    How do I incorporate this indicator into my strategy?
    I mean what do I call the indicator.

    trend = supertrend[7,3] //This is for Supertrend indicator
    Confirmations = Absolutestrength[??] //What do I add here to use it in the syntax


    • Nicolas • 01/16/2019 #

      Use the CALL function: https://www.prorealcode.com/documentation/call/
      or use the ‘fx’ button in the ProBacktest window to add it automatically in your program.

  2. Vicari0us • 01/16/2019 #

    Perfect thanks!

    I got it

  3. Bogdan35 • 01/16/2019 #


    I there one for a MT4 File? Thanks!

  4. MStarFX • 304 days ago #

    How do I add Absolute Strength indicator into my chart

  5. Jo han • 277 days ago #

    I am trying to call Absolute Strength into ProScreener (PRT 11.1)
    But i do not get any results “matches” in my ProSreener Window.
    Works fine with other indicators. It’s like it not calling the indicator properly?

    Code in proscreener;

    ignored, ignored, indicator1, indicator2 = CALL “PRC_Absolute Strength”[0, 9, 1, 2](close)
    c1 = (indicator1 >= indicator2)

    SCREENER[c1] ((close/DClose(1)-1)*100 AS “%Chg yest.”)

    Best Regards,

    • Nicolas • 277 days ago #

      The moving average mode is not working in ProScreener, you have to change the code for the appropriate moving average type. By default it is set to Weighted Average, so you have to change all lines containing MODEMA with WeightedAverage, see https://www.prorealcode.com/documentation/weightedaverage/

  6. Jo han • 276 days ago #

    Thanks for the explanation!

    Tried to change ModeMA (4 rows at the bottom) with WeightedAverage[9](close)
    but get “A positive integer field is expected with average”

    //Nicolas @ http://www.prorealcode.com
    //Sharing ProRealTime knowledge

    // — settings
    //Mode =0 // 0-RSI method 1-Stoch method
    //Length = 9 // Period
    //Smooth = 1 // Period of smoothing
    //ModeMA = 2 // Mode of Moving Average
    // — end of settings

    if barindex>max(Length,Smooth) then

    if Mode=0 then
    if Mode=1 then
    Bulls=Price1 – smin
    Bears=smax – Price1

    // AvgBulls=average[Length,ModeMA](Bulls)





    RETURN SmthBulls coloured(0,0,255,50) style(histogram), SmthBears coloured(255,0,0,50) style(histogram) , SmthBears coloured(255,0,0) style(line,3), SmthBulls coloured(0,191,255) style(line,3)

    Also tried to replace the whole average line with

    // AvgBulls=average[Length,ModeMA](Bulls)




    Do not get any errors with this but it is still not working with proscreener
    Any pointers in the right direction (I’m really a beginner in programming)


    Best Regards,

    • Nicolas • 276 days ago #

      Please open a new topic with the code and an explanation, you have messed up the initial code 🙂

  7. Jo han • 276 days ago #

    Ok 🙂

  8. dau710 • 252 days ago #

    Are the Bulls Blue & the Bears Red?

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
juanj Possible interpretation: Indicator tags 80 = Start of bullish trend, tags 20 = Start of bear...
Yann LB Bonjour, Ajout de as "level 95" en toute fin de code. ;-)
HappyBunny You are using variables "r" abd "b" for the color red and blue but unfortunately after setti...
Nicolas good spot! indeed, that's a mistake. Change the variable name for the b color, while I don't...
Nicolas email notification are not available for custom indicators.
juanj Hi Jan, I did not include swap fees for this strategy as it is primarily a 'concept strategy...
jebus89 heres a pic of 200K bars: https://imgur.com/JNKCJ6u
bibiyanki doesn't work , not start
Madrosat I Have not see a fully functioning automated strategy on your site?? Really have you???
juanj Hi Madrosat, why would it be on my site? I have developed it for my personal use and also to...
Madrosat ok I understood you are using prorealcode to hack the fish
imonix Have been trying this on demo since Monday before deciding whether to go live with it. Using...
Albaran Hi Vonasi, Could you explain what "$perc[a]" is? I tried to apply it but it keeps telling...
Nicolas Code compatible only with version 11, as it is written in bold in the text of this post: Thi...
Albaran Ah I had hoped it was a problem unrelated to the version of prorealtime! We'll keep waiting ...
kbrooks323 Hello would someone be willing to release a scan code for this? that would be helpful as I s...
Nicolas You can do easily this screener by using the assisted creation tool. It would take you about...
kbrooks323 I just figured it out thanks!
Vinks_o_7 Vonasi you're a beast !!! ;-)))
pableitor Amazing indicator , you are pushing PRT to the limit! But looking at the scatter its not c...
9 months ago
Wolf Compilation by sinusoid concept is very interesting. Thanks
groen200 Hi Zigo can you make backtest from this indicator
rosario Good evening I would like to understand why it doesn't work for me. Rosary
10 months ago
fireleg79 Bonsoir Nicolas. Merci pour tout ton travail. Quand tu auras le temps pourras-tu jeter un oe...
Jan Wind Thanks for sharing ! The Gain/Loss ratio is a bit low, 1,16, hardly offset the risks take...
drive whats the period ?
Sapo Thank you very much. as always your indicators are extremely effective. kind regards Vonasi.
mitsu21 Hi, it looks nice. I'll try it tomorrow thank you for your share kind regards bruno
kj1988 Thank you Vonasi for sharing this indicator. Very useful as a comfirmation to the price act...
michaelben Bonjour Nicolas . Je cherche une strategie pour faire du trading automatisé. J'ai essaye ave...
riz001 thnk u
geroniman bonjour Nicolas, j ai un indicateur le Tiger . J aiemrai placer des fleches buy et sell dire...
Nicolas Merci de formuler les demandes sur le forum. ça n'est pas le bon endroit et hors sujet ici ! ;)
Nicolas Sure, please open a new topic in the screener forum and respect the posting rules.
Sudu HI Nicolas, I know I'm bit late to use this somehow feel to give it a go. I cut and paste...
Nicolas I think that you are trying to put an indicator code into a strategy or a screener code. Ope...
ggolfet Thanks Nicolas, I imported the itf file and solved the problem.
Hasardeur Hallo Nicolas, i tried to code the multi period heat map in combination with the Ehler’s ...
Nicolas Please open a new topic with the code in forum.
Marie-Eve Vergoz lorsque je copie les codes, le système me signale des erreurs à la ligne 12 et suivantes
Marie-Eve Vergoz sorry - tout est ok -
1 year ago
Marcot18 Alex ti sei superato
AlexF Esagerato!
jobswaps Sube como trazar lineas de tendencias a tantas barras