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?

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

  1. Balmora74 • 211 days ago #

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

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

    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
Related users ' posts
swapping Excellent Nicolas ;)
Violet Hi Nicolas, There seems to be a small error in the code, which causes the channel not to...
Nicolas Hmm, I don't think so, otherwise the channel will have a moving start and not anchored anymo...
Nicolas Just add a linear regression moving average of 200 periods on the chart and you'll get the s...
Partha Banerjee Hello Nicolas, this is great, however the actual PRT standard error and standard deviation c...
Nicolas If you want to anchor the channel to a specific candlestick, that would be possible but with...
Choliver Bonjour et merci pour cet indicateur. Toutefois, il me semble qu'il est unidirectionnel. P...
Louis Winthorp III Hi Choliver, you are right, there is a problem with the drawing instruction when the slope i...
Nicolas File and code are updated.
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?
Nicolas Des nouvelles ?
Whisper74 Hi Nicolas, I have build supertrend in excel for research and database purposes, but I actua...
Nicolas Sorry, I can afford to make custom programming for everyone. If you want to have codes trans...
Nicolas Because you change the date in the code it affects all charts. Download the itf file from th...
Geons No, I change the start date in settings, not in code. The problem is still here. I have inst...
Nicolas Because your charts are linked together in the same group. Just unlink them.
thierryp Bonjour Nicolas, merci pour le travail que vous effectuez. Je ne suis vraiment pas bon dans ...
Wiezman74 any chance you can email me this indicator for MT4,, can't get the code to work.. limited kn...
Nicolas This website is dedicated to prorealtime programming. But you can ask for custom programming...
Frankiesc Thanks Nicolas for sharing this indicator, it's interesting
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.

Top