Relative Bias Filter

Relative Bias Filter

INDICATOR
– Relative Bias Filter
– Version 1.01
– Maz @ prorealcode.com

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.

Outputs
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

INTERPRETATION
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

SETTINGS
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.

MODES
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.  

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
xpiga I don't know I suppose you can attach the picture... Any new ideas to improve the code are ...
TempusFugit Sorry but I don´t see any option to attach the picture here... not sure but I think that´s...
rama Trailing stop wont work, will keep moving with price
ggolfet I tried to use it (with prorealtime version 11 - end of day version). I receive an error mes...
Nicolas Try to reduce the displayed units of the chart. MaxScale should always be superior to Start...
ggolfet Thanks Nicolas, I imported the itf file and solved the problem.
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 -
AlexF
2 months ago
Marcot18 Alex ti sei superato
AlexF Esagerato!
Vinks_o_7
3 months ago
illenza
3 months ago
Juanjo Hola, Buscando un sistema valido para operar el squeeze, he reprogramado el indicador para ...
mauro1966 BRAVO....
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 formuler la demande dans un nouveau sujet dans le forum approprié.
Hugues Bontour Ok ;-) Normalement c'est au bon endroit. Merci à toi
Juanjo Hola Muchas Gracias por el indicador, ...queria preguntar si se podria añadir la visualiza...
robertogozzi
6 months ago
M-Oscillator
M-Oscillator
10
Indicators
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!
Didouqc Bonjour Nicolas, Merci pour cet indicateur, encore génial! Je souhaite faire une suggest...
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...
Tony87 on 200k test in the red untill 2017 then strong green
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...
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...
Vicari0us Hi Nicolas, How do I incorporate this indicator into my strategy? I mean what do I call ...
Nicolas Use the CALL function: https://www.prorealcode.com/documentation/call/ or use the 'fx' butto...
Vicari0us Perfect thanks! I got it
juanj Haven't been on this forum for ages! Just logged in to see what is happening and since this ...
robertogozzi Welcome back Juanji, why don’t you post your strategy in the ProOrder support, it’s a better...

Top