ALMA VHF Filter (MA & Signal Band)

v10.3
ALMA VHF Filter (MA & Signal Band)

2 indicators in this post, the ALMA moving average with its offset  automatically adjusted with a VHF (Vertical Horizontal Filter). The second one is a signals band made of 2 moving average calculated separately with Highs and Lows of the last X periods (Window setting).

I made it first as a rough idea and found it interesting for scalping trading as it reacts quickly enough to find good entries of potential new movement (and quickly revert on false signals), and automatically adapt the band due to volatility while in good trend, resulting of a “keep on trading” technique.

The VHFp controls the period of the VHF filter.

Hi/Lo bands made of this moving average:

 

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. soulintact • 11/11/2018 #

    A very good combination Nicolas, thanks!

  2. Stenozar • 11/11/2018 #

    Hi Nicolas, I see two itf files; we should put both on them on the graph? thank you!

    • Nicolas • 11/11/2018 #

      Only the second one if you want to have the same indicator as the one presented in the picture.

  3. Stenozar • 11/11/2018 #

    Thanks Nicolas!

  4. carlvan • 11/11/2018 #

    Dear Nicolas, as usual big thank you for sharing those gems!
    I imported your code of Alma HiLo bands into PRT and it charts perfectly.
    However, when I tried to build a system and backtest it, it charts the result automatically but the entry/exit signals are mished mashed, at the wrong place – very strange.
    My opinion is that it might be due to the “CALL” routines you used in the code.
    I tried to fix this but unlucky so far.
    Do you think this can be fixed?
    Here is your code, with the trade signals (long and exit only for simplicity):

    defparam cumulateorders=false

    //PRC_ALMA VHF Filter Hi/Lo band | indicator
    //11.11.2018
    //Nicolas @ http://www.prorealcode.com
    //Sharing ProRealTime knowledge
    Window = 7
    Sigma = 3
    VHFp = 21
    // — end of settings

    HH = CALL “PRC_ALMA VHF filter”[window, sigma, VHFp](high)
    LL = CALL “PRC_ALMA VHF filter”[window, sigma, VHFp](low)

    if hh<hh[1] and lowLL[1] and high>hh then
    trend=1
    endif

    if trend=1 then
    iline=LL
    else
    iline=HH
    endif

    if not longonmarket and close[1] crosses over iline[1] and Close>High[1] then
    buy at market
    endif
    if longonmarket and close < iline then
    sell at market

    • Nicolas • 11/11/2018 #

      You should not use offset in this case. Delete all the [1] references in your code. BTW, trend of the indicator doesn’t change when price go through the line, so in order to launch orders according to the indicator, you should use the “trend” variable and its change between 2 candlesticks.

  5. carlvan • 11/11/2018 #

    That works now, thank you !

  6. atxeel • 11/11/2018 #

    Hello Nicolas, the Indi is really great. Unfortunately, I get an error message that takes a long time to calculate, up to 2 seconds. Have it tried with defparam calculateonlastbars unfortunately without success, Maybe you have another solution. Thank you.

    • Nicolas • 11/11/2018 #

      Yes, that’s how it goes when using loops..

  7. JosephFelix • 11/11/2018 #

    Hi, Could I please have help with adding these indicators ‘on price’? Every indicator that I add plots as a sub-graph. What am I doing wrong here?

    • Nicolas • 11/11/2018 #

      Just add it on price by clicking the wrench on the left upper side of the price chart.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Nicolas c'est exactement ce que je fais entre les lignes 58 et 64 pour pouvoir tracer la ligne complète
Italo Fabian Nicolas, Ces matrices sont-elles des vecteurs unidimensionnels ou multidimensionnels? Depu...
Denis Bonjour Nicolas et RicLg, Merci Nicolas pour cet indicateur intéressant et merci RicLg pour...
Fabian Hi Thomas, thanks for your explanations. Which indicator do you use in the screenshot ...
Thomas Thats On Balance Volume and Bollinger or SMA or what you want. It shows me the volume flow. ...
bertrandpinoy @MAKSIDE I would be grateful if you send me your version. have a nice day
Nicolas Il doit s'agir d'un mauvais copier/coller. Je suggère de télécharger le fichier itf contenu ...
Bard Hello @Nicolas, I can get this to display in a separate indicator panel but not on Price as ...
Stenozar Hi @Nicolas, how can I put the bands on price? Thanks, Stefano
Fabian Hi IV Mcm, have you drawn the rectangles (Dinamic, Range) by yourself in the chart or are...
IV Mcm Myself to illustrate ;)
Nicolas Il faut l'ajouter sur le prix avec l'icône de la clé situé en haut à gauche du graphique du ...
jerome777 merci de ta réponse
jerome777 bonjour c est bon il fonctionne parfaitement merci beaucoup
Zigo
4 years ago
Zex-Indicator
Zex-Indicator
6
Indicators
bertrandpinoy Hello Zigo can you turn into an automatic strategy?
eckaw Hey @Zigo thanks for this indicator. May I ask what the multiplier 1.682 is derived from? I ...
Zigo Hello, eckaw, its not so important I had meant 1.618 and not 1.682. It has nothing to do wit...
frenqle Hi There.. It seems the TSL stop loss is not working.. it does not respond is that correct?
Ciccarelli Franco Per lasciare che la strategia venga eseguita (dopo aver importato il file): Basta eliminare...
JADINVEST Hello Jan, hello everyone, Thanks Jan for this strategy! Since 2020, have any of you found a...
FXmike hey my friends, thank you for this great code. my problem is he make no trade open. backtest...
FXmike Can i put a Action that my start contract is smaller than 1 ? 0.3 or 0.5 ? In wich Position...
phoentzs I wrote the code for M15 back then and also variants in H1 and M1. Everything works so far....
Alps007 Hi Nicolas. Happy New Year. Can you please program me several MACD divergence screeners ...
Arlei Zanin Hello Nicolas, would it be possible to convert the Cloud to Pascal language? Thank you.
ashee i want it in MT4
Marie-Eve Vergoz Bonsoir - Voici l'erreur qui est signalée lorsque je souhaite utiliser cet indicateur : il...
Vonasi Sure that is possible. I will code it and make a post in the English ProBuilder forum and pu...
Vonasi Vama v2 with Hull moving average included can be found here: https://www.prorealcode.com/top...
JMat45 Thank you, Vonasi.
Nicolas
5 years ago
LRMA
LRMA
0
Indicators
rama what is the buy condition or sell condition for this can you suggest a code k1=1 buy and k1...
rama I would like to know at point 1 an alert or binary indicator so that I can place order
maxlys Bonjour Nicolas, merci pour ce code qui a l'air intéressant. Comment ajouter dans le code l'...
manchokcity can we have it in mql4 platform? or how or which platform do we use it?
camporan I don't use MetaTrader so I won't be able to do the translation myself. Sorry!
Alexander9 This can for amibroker ? . Thanks
Alberto Aguilera Hi! Thanks for your strategy Anyone can check it with 200 bars?
TempusFugit Hi, this simple system for DOW and only shorts has worked quite well, maybe because of its q...
phoentzs Unfortunately, I never pursued this strategy further. Maybe I should take a look with what ...
robertogozzi It surely CHANGES even when currently outside time range, as the lookback periods change as ...
SkippyTrader Thanks Roberto, but shouldnt the values in the outside time range not be different? As it sh...
robertogozzi Actually it is a constant (I tested them on a 1-hour TF, 9am to 5pm) and outside that time r...
Marius Zammit Still learning and very new to all this. Can this indicator be turned into an automated trad...
Nicolas Yes sure, please create a dedicated post in the automated trading forum.
leederbyshire Hi is it possible to replace the dots with red/green vertical lines? Thank you.
funkystuff Salut Balmora, Ton indicateur est plutôt intéressant :) Penses-tu qu'il soit possible de l'...
brian gilbert Hello, can you explain to me what are "pipsize" and "ATAN"? What functions do they have and ...
Bodaris Bonjour, Je suis débutant 1 mois :p pipsize ressemble à la fonction pointsize et ATAN...
darbes Hi How does it go on live ? JC
antonio73 Balmora74, io vedo che funziona anche su timeframe ad 1 minuto con piccole ottimizzazioni, t...
Juananantoniorodriguez hola buenas, a este sistema automático, Cómo se le podría poner un stoploss de beneficio sim...

Top