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
jacquesgermain Bonjour non pas de soucis car src=customclose donc dans le menu configuration/propriété me...
geroniman Merci Jacques , indic tres utile. J'ai un indic à programmer avec du price action. es tu dis...
jacquesgermain ok pour regarder ...
JS
8 months ago
Trendilo
Trendilo
0
Indicators
Nicolas
12 months ago
f1_maik Ein sehr schöner Indikator, vielen Dank. Wenn ich den Indikator importiere und starte hat d...
Nicolas das ist in der Tat normal, Sie müssen die Auf- und Abwärtsfarbe direkt im Parameterfenster d...
FXtonio Bonjour Nicolas, merci pour cette merveille, je l'utilise en compl2ment du "magical buy sell...
supertiti Bel outil si on ne se tape pas sur les doigts avec ! Comment ajoute-on une image avec le co...
magnus59 Hi Nicolas, thaks for your great work here, I need a scanner for the swedish OMX when ma...
Nicolas Yes, sure please open a new topic in the ProScreener forum section, thank you.
paullyons Hello! Thanks for post your indicators. I'd like you to let me know how to draw lines for ...
Rafa Hi Nicolas! I can´t install this indicator. it installs in a separate window not as an av...
Nicolas Add it on the price, see how: https://www.prorealcode.com/blog/video-tutorials/how-to-add-an...
Frankyslo1 No consigo instalarlo en el precio en PRL-version 10
Sever
2 years ago
Nicolas Sorry there was a small issue in the code, i have changed the attached itf file and updated ...
Mitchy14 Hi Nicholas, apologies, I am usually fairly good at implementing your creations (for which I...
Nicolas Are you using PRT version pre-v11? TIMEFRAME for indicators is possible since months for pro...
Roland57800 Bonjour Noobywan, si je comprends bien l'utilisation de ce code que je trouve particulièr...
Noobywan Bonjour, quand la question a été posée dans le forum à celui qui avait fait la requête en am...
Fabian This Code draws only a retangle if the condition has been confirmed and NOT before (in that ...
RakeshPoluri I have a question about the bands on the candles. Is it bollinger bands or something else?
Nicolas I think that's 2 Bollinger Bands
Emperor.it "style(line,2)" C'è una guida ai parametri che si possono modificare ? Tipo stile della lin...
IV Mcm https://www.prorealcode.com/programming-with-prorealtime/
fazel53 How do i attach this indicator to my mt5 platform?
Nicolas You can't! All indicators here are for ProRealTime trading platform: https://www.prorealtime...
FernetTrader think i found a solution!
monochrome Thanks for the indicator. Very interesting!
monochrome Can you please share how you made it work? I cant seem to make it work in a strategy

Top