Relative Bias Filter

Relative Bias Filter

– Relative Bias Filter
– Version 1.01
– Maz @

I have developed this indicator primarily as a tool for algorithmic trading. This version has been formatted for easy graphical representation. It can also work as an aid on the chart.

Relative Bias Filter is used as a tool to prevent taking low probability trades. Please do come forward if you find this useful and/or wish to discuss further.

Top line threshold beyond which no shorts should be taken
Bottom line threshold beyond which no longs should be taken
Signal line – to be interpreted as a soft switch or recommendation

There are multiple ways to interpret this indicator but its primary function is to help you avoid low probability positions. Here are some scenarios:

– Signal line moving up into the STRONG (top) line represents bull trend strength and recommends against going short. Longs that are already running have a good chance.

– Signal line moving down into the the WEAK (bottom) line represents bear trend strength and the recommendation is against taking longs. Shorts that are aleady running have a good chance.

– LONG setups may arrise when the bias filter line pops up above the WEAK bottom line. Long setup is weaker if the bias filter curves off. Any such setups should be validated with other indicators

– SHORT setups may arrise when the bias filter line pops down below the STRONG top line. Short setup is weaker if the bias filter line curves off. Any such setups should be validated with other indicators

Response: (Typical range – 25 to 100)
This adjusts the responsiveness of the signal line. Lower values are less lagging and more noisy. Higher values are less noisy but more lagging. Optimizations should take place on your intended instrument.

Cutoff: (Typical range – 1 to 20)
This adjusts bandwidth between the top (strong) and bottom (weak) lines. The higher the number the more sensitive the “Do not long” / “Do not short” switch becomes.

Reletive Bias Filter runs in 4 modes:
– Simple
– Dynamic
– Complex
– Complex Dynamic

Each combination of modes will have a considerable affect on overall output.

Dynamic mode:
In Dynamic mode the indicator will adjust an internal look-back period relative to the response rate setting (double the response setting). Without Dynamic switched on, the internal look-back is always set to 200 bars. This is used

Complex mode:
In Complex mode we introduce ADX weighting to our signal switch. If the ADX is strong and rising, we accelerate our signal line and thus we switch bias more quickly. If the ADX is weak and falling then our signal line is attenuated and thus we reach our extremes less quickly. Using Complex mode helps to validate price action strength and weakness. You will receive more setups with complex mode – but also more noise. I won’t go into the technical explanation of how complex mode is calculated but feel free to get in touch if you have any suggestions.


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. victormork • 05/11/2017 #

    how can I code the slope of the result line? So that I can take long trades when the line is going from bottom to top and short when it’s going down.

  2. Elsborgtrading • 05/11/2017 #

    Thanks for this MAZ:-)
    I will also try and implement it in manual trading.
    I changed the variables to fit a 15 min TF
    Seems valid
    // response = 50
    // cutoff = 10
    // dynamicMode = 1 // true | false
    // complexMode = 1 // true | false

  3. ALE • 05/11/2017 #

    Thanks! excellent

  4. Swingforfortune • 05/11/2017 #

    Thanks Maz.

  5. finplus • 05/11/2017 #

    Thanks for the job. Which variables do you suggest for timeframe 1 hour? 

  6. Maz • 05/11/2017 #

    Depends massively on your market and the volatility. I suggest using the variable optimizer by writing a simple buy/sell trading system. Otherwise just play around until it until you can discover a reliable pattern.  

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
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 ...
ran2019 Hello Nicolas, I am new for trading, Could you please tell me if TTM squzee works on Trading...
Nicolas All codes here are made to be used with Prorealtime trading platform, open a free account o...
mscharstrom Didnt work for me, would love to have this as a screener!
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...
4 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
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...
ALZ Hello, currently, I don't have the same result as above and don't no if it works good in...
JJ Tec Hola. Me gustaría contactar contigo para ver la estrategia..
nilsla1981 Has someone already tested in real ?
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 -
12 months ago
Marcot18 Alex ti sei superato
AlexF Esagerato!
jobswaps Sube como trazar lineas de tendencias a tantas barras
1 year ago
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
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 Merci de poster la demande dans le forum des indicateurs prorealtime. Avec un titre explicit...
RV1974 Bonjour, j'ai une erreur Erreur sur ligne 48,49 62,63 et Fin de code non reconnu
Nicolas Afin d'éviter les mauvais copier/coller, il est toujours plus simple de télécharger le fichi...
1 year ago
robertogozzi Sorry for my late reply. I’ll make it and open a new topic quite soon.
swapping ah ah ! je n'avais pas vue celui-ci, excellent robert ;)
robertogozzi Thank you swapping.
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!