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 • 127 days ago #


    I there one for a MT4 File? Thanks!

  4. MStarFX • 30 days ago #

    How do I add Absolute Strength indicator into my chart

  5. Jo han • 3 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 • 3 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 • 3 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 • 3 days ago #

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

  7. Jo han • 3 days ago #

    Ok 🙂

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
2 weeks ago
fireleg79 Bonsoir Nicolas. Merci pour tout ton travail. Quand tu auras le temps pourras-tu jeter un oe...
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
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 Yes this is the same as described in this document.
FabiusMor Thank you Nicolas. As I said in the other post I don’t know how to make a screener out of it...
FabiusMor Hi Nicolas, as you suggested I made a screener out of your indicator and the results are rea...
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 -
7 months ago
Marcot18 Alex ti sei superato
AlexF Esagerato!
jobswaps Sube como trazar lineas de tendencias a tantas barras
Juanjo Hola, Buscando un sistema valido para operar el squeeze, he reprogramado el indicador para ...
mauro1966 BRAVO....
JackD I am getting a Syntex error when entering the code
Nicolas En effet merci, erreur corrigée, la variable Risk affecte désormais comme il se doit les cal...
nader003 How can we get this indicator on MT4
Nicolas You can ask for private custom coding to our programming services: https://www.prorealcode.c...
sir_i Bonjour à tous, Je suis nouveau sur le forum et sur la plateforme, pourriez-vous me dire com...
Nicolas Il faut simplement l'appliquer sur le prix.
sir_i Merci pour la réponse, je ne suis pas familier avec l'application de cette procédure simple,...
Nicolas Mauvais copier/coller? Veuillez télécharger le fichier .itf et l'importer dans la plateforme...
Zigo Magnifique, j'ai remplacer le RSI (70 et 30) par CCI avec les valeur+100 et -100 pour les va...
Zigo Ik heb hetzelfde gedaan met de SMI met OB =40 en OS = -40. De codes voor beide CCI en SMI zi...
Vinks_o_7 Great, thanks a lot Nicolas !
Teddy Coronak Top Nicolas ! Merci
Andyswede Thank's! Great indicator:)
mcha merci bien et félicitations pour la réactivité avec laquelle il a été mis dans la bibliothèq...
soulintact Great indicator Nicolas, thanks!
Nicolas Si ces variables ne sont pas utiles, il faut tout simplement les supprimer du programme.
souf Bonsoir Nicolas, Je te remercie d'avoir pris le temps de me répondre. J'ai essayé de s...
souf Hi Luxrun, I hope everything is OK for you. Did you succeed turning this indicator int...
LancerX Please indicate the trade stat to show ave gain against average lost..
Jan Wind Thanks for sharing the strategy !. Did you do an Out of Sample run when testing on the 100k...
jmf125 I don't know if anyone is following this thread anymore. Anyway I will post my comment. Aft...
Gaby333 super this what I was looking for from Monday I will put this in real time to see what can d...
PastaPesto Hi Gubben, It would be interesting to know what changes you have done and also your backtes...
Gubben @PastaPesto, for GBP USD mainly inspired by Paul it was 2% stoploss and 45 take profit, also...
Maik2404 es sind leider nur long Positionen und keine Short zu erkennen.
Maik2404 Vytautas: es bleibt aber nur bei long Auslösungen
ullle73 this one is not a winner, have backtested it on almost all pairs, does not have an edge