Force Indicator

Force Indicator

This indicator counts the number of standard deviations price is above or below an average of price.

Discussion regarding this indicator can be found here:

https://www.prorealcode.com/topic/higher-timeframes-bollinger-filter/#post-93803

Thanks to Jebus89 for the original concept which I then recoded so as to allow different levels of standard deviation to be used in the indicator.

The following variables can be adjusted to alter the output.

  • p = The period used for the average.
  • AveType = The type of average used. Values from 0 to 6 as follows:0 = SMA1 = EMA

    2 = WMA

    3 = Wilder

    4 = Triangular

    5 = End point

    6 = Time series

  • STDstart = The first STD of average to be used.
  • STDmax = The maximum STD of average to be used.
  • STDstep = Step levels of STD used.

So for example if STDstart = 1 and STDmax = 3 and STDstep = 0.5 then 1.0, 1.5, 2.0, 2.5 and 3.0 STD multiples will be used as well as -1.0, -1.5, -2.0, -2.5 and -3.0 for the indicator output.

The line is red if Force is falling and green if Force is rising. A Force reading above zero indicates how far price has moved above the average and a Force reading below zero how far price has moved below the average.

Jebus89’s original idea was to use this indicator on higher time frames as a filter to check how far from the mean a price has moved to help evaluate whether it is a good time to enter the market on lower time frames but it can also be used in many other ways.

I recommend downloading and importing the ITF file to get full functionality.

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?

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

  1. Balmora74 • 03/18/2019 #

    Thanks for this code. i will try to adapt it in the EUR/USD Pac Man Strategy who is based on the STD function : https://www.prorealcode.com/topic/short-eur-usd-m15-pac-man-strategy/page/4/

    • Vonasi • 03/18/2019 #

      I still have two versions of the PacMan strategy on forward test although there have been various stoppages and periods of no trading beyond my control so the results are a bit inaccurate. Neither version has proven very profitable but on the bright side neither has lost a fortune yet either!

  2. Balmora74 • 03/18/2019 #

    I use your version on a real account and the strategy is profitable and i did not have any problem of cutting. Yes the profit is small but if i add overnight positive coast it starts to become interesting ! Another good point is that the strategy does not seem to be overfitted and continues to perform 🙂

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Vonasi There are actually two ways to calculate standard deviations and I seem to have used the ver...
Vonasi There are actually two ways to calculate standard deviations and I seem to have used the ver...
segie Can something similar be done with Supertrends?
Vonasi Not sure I fully understand what you are asking for. Are you asking for MTF Supertrend level...
Kris75 very interesting; thanks !
SB-FO Nicolas, can you share with me how PRT calculates LinearRegression ? Is it (3 * WeightedAve...
Nicolas The above code is the way it is calculated in PRT. However the exact indicator can be found ...
SB-FO Thanks Nicolas.
Gianluca Hello, is it possible to use this channel in a strategy? i tried to apply in a code but the ...
Nicolas Because this is indeed nothing more of what you describe. A mean with +/- standard deviation...
ozet std and ste returns 0 on a call... how can i calculate it in a call? okay i got it "ste[loo...
Nicolas File and code are updated.
Zasinas2000 Hi allo I am not sure I am doing it correctly, but this adds to proreal as an indicator. ...
Trimicha Hi, when I copy the code, i get an error message that LinRegPeriod is not defined. Doe...
Nicolas Definition of CustomClose: https://www.prorealcode.com/documentation/customclose/ [2] means...
Bard Just wondered Nicolas, say you had set DEFPARAM CumulateOrders = True, is there anyway for t...
Bard Sorry pls ignore last image, try this - it actually has the Dev Stop indicator! https://www...
Gianluca Hello Nicolas, my prt become stuck when i load the indicator, is there any problem with it?
m-zeter Has anyone found a solution for Sofitech? Would it be possible to draw two lines? An upper l...
m-zeter Hm, i dont know exactly why, but I think, that the indicator needs lots of power. I need als...
anametsinwha Is it possible to change it to highs and lows rather than open and close?
Guibourse Bonjour, j'aimerais trouver un moyen de coder (comme condition dans un autre indicateur) la ...
Nicolas Il faut ajouter la variable "trend" dans l'instruction RETURN et la comparer avec sa précéde...
WarningTrading Comment peut on la comparer ? comme ceci ? cela ne me donne plus le message d'erreur manque...
Nicolas voir ces sujets: https://www.prorealcode.com/topic/time-anchored-vwap/#post-128382 https://...
PhilHowells Hi Nicolas. I am really late to the party about this post but I have a question. I am an a...
Nicolas Add it on the price chart with the wrench at the upper left side of price chart.
Lydia1948 Hi I really like this indicator - is it easy to change the colour of the blue dots to say g...
Nicolas Lines 23 and 24 are the Red and Blue value between 0 to 255, you can change the color of the...
CavalierDeCesDames Bonjour Nicolas, Thanks for your use full job. I tried this indicator on a shorter timefram...
Nicolas You are welcome. I'm glad you like it.
Bolbo It does not appear over the price indicator on V11. Thanks in advance.

Top