18 rainbow averages

18 rainbow averages

Code created on the basis of Nicolas’ work, thanks to him and the time he spends for us.

18 moving averages which are in fact the same with a time lag. You can change the period in the code and thus adjust it. Ideally buy on a rebound when the price is below the rainbow with stop loss just below the previous low. Or sell on a retracement candle when the price is above the rainbow.

Or sell on a retracement candle when the price is above the rainbow. Basic but visual.

 

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. kats • 108 days ago #

    Bonsoir,
    j’aimerai pouvoir mettre sur un même graphique 2 fois cet indicateur. le premier tel quel, le second 10 fois superieur . J’ai donc installé celui ci et est change la period en la remplaçant par 30 dans le second mais je n’ai rien touché d’autre et le resultat n’est pas terrible. Je pense qu’il doit y avoir une histoire de numberofMA a modifier mais n’etant pas douée en programation je ne trouve pas. Pouvez vous m’aider cdlt

    • jordan • 106 days ago #

      //—settings
      MAmode=0
      Period=150
      NumberOfMA=100
      //—end of settings

      MA2=undefined
      MA3=undefined
      MA4=undefined
      MA5=undefined
      MA6=undefined
      MA7=undefined
      MA8=undefined
      MA9=undefined
      MA10=undefined
      MA11=undefined
      MA12=undefined
      MA13=undefined
      MA14=undefined
      MA15=undefined
      MA16=undefined
      MA17=undefined
      MA18=undefined
      M19=undefined

      numberofMA=max(min(numberofma,18),1)

      MA1=average[period](close)

      if numberofMA=2 then
      MA2=average[period,mamode](MA1)
      elsif numberofMA=3 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      elsif numberofMA=4 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      elsif numberofMA=5 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      elsif numberofMA=6 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      elsif numberofMA=7 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      MA7=average[period,mamode](MA6)
      elsif numberofMA=8 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      MA7=average[period,mamode](MA6)
      MA8=average[period,mamode](MA7)
      elsif numberofMA=9 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      MA7=average[period,mamode](MA6)
      MA8=average[period,mamode](MA7)
      MA9=average[period,mamode](MA8)
      elsif numberofMA=10 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      MA7=average[period,mamode](MA6)
      MA8=average[period,mamode](MA7)
      MA9=average[period,mamode](MA8)
      MA10=average[period,mamode](MA9)
      elsif numberofMA=11 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      MA7=average[period,mamode](MA6)
      MA8=average[period,mamode](MA7)
      MA9=average[period,mamode](MA8)
      MA10=average[period,mamode](MA9)
      MA11=average[period,mamode](MA10)
      elsif numberofMA=12 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      MA7=average[period,mamode](MA6)
      MA8=average[period,mamode](MA7)
      MA9=average[period,mamode](MA8)
      MA10=average[period,mamode](MA9)
      MA11=average[period,mamode](MA10)
      MA12=average[period,mamode](MA11)
      elsif numberofMA=13 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      MA7=average[period,mamode](MA6)
      MA8=average[period,mamode](MA7)
      MA9=average[period,mamode](MA8)
      MA10=average[period,mamode](MA9)
      MA11=average[period,mamode](MA10)
      MA12=average[period,mamode](MA11)
      MA13=average[period,mamode](MA12)
      elsif numberofMA=14 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      MA7=average[period,mamode](MA6)
      MA8=average[period,mamode](MA7)
      MA9=average[period,mamode](MA8)
      MA10=average[period,mamode](MA9)
      MA11=average[period,mamode](MA10)
      MA12=average[period,mamode](MA11)
      MA13=average[period,mamode](MA12)
      MA14 =average[period,mamode](MA13)
      elsif numberofMA=15 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      MA7=average[period,mamode](MA6)
      MA8=average[period,mamode](MA7)
      MA9=average[period,mamode](MA8)
      MA10=average[period,mamode](MA9)
      MA11=average[period,mamode](MA10)
      MA12=average[period,mamode](MA11)
      MA13=average[period,mamode](MA12)
      MA14 =average[period,mamode](MA13)
      MA15 =average[period,mamode](MA14)
      elsif numberofMA=16 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      MA7=average[period,mamode](MA6)
      MA8=average[period,mamode](MA7)
      MA9=average[period,mamode](MA8)
      MA10=average[period,mamode](MA9)
      MA11=average[period,mamode](MA10)
      MA12=average[period,mamode](MA11)
      MA13=average[period,mamode](MA12)
      MA14 =average[period,mamode](MA13)
      MA15 =average[period,mamode](MA14)
      MA16 =average[period,mamode](MA15)
      elsif numberofMA=17 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      MA7=average[period,mamode](MA6)
      MA8=average[period,mamode](MA7)
      MA9=average[period,mamode](MA8)
      MA10=average[period,mamode](MA9)
      MA11=average[period,mamode](MA10)
      MA12=average[period,mamode](MA11)
      MA13=average[period,mamode](MA12)
      MA14 =average[period,mamode](MA13)
      MA15 =average[period,mamode](MA14)
      MA16 =average[period,mamode](MA15)
      MA17 =average[period,mamode](MA16)
      elsif numberofMA=18 then
      MA2=average[period,mamode](MA1)
      MA3=average[period,mamode](MA2)
      MA4=average[period,mamode](MA3)
      MA5=average[period,mamode](MA4)
      MA6=average[period,mamode](MA5)
      MA7=average[period,mamode](MA6)
      MA8=average[period,mamode](MA7)
      MA9=average[period,mamode](MA8)
      MA10=average[period,mamode](MA9)
      MA11=average[period,mamode](MA10)
      MA12=average[period,mamode](MA11)
      MA13=average[period,mamode](MA12)
      MA14=average[period,mamode](MA13)
      MA15=average[period,mamode](MA14)
      MA16=average[period,mamode](MA15)
      MA17=average[period,mamode](MA16)
      MA18=average[period,mamode](MA17)
      endif

      return ma1 coloured(“blue”), ma2 coloured(“blue”), ma3 coloured(“green”), ma4 coloured(“green”), ma5 coloured(“yellow”),MA6 coloured(“yellow”),MA7 coloured(“orange”),MA8 coloured(“orange”),MA9 coloured(“red”)style(line,3),MA10 coloured(“red”),MA11 coloured(“pink”),MA12 coloured(“pink”),MA13 coloured(“fuchsia”),MA14 coloured(“fuchsia”),MA15 coloured(“brown”),MA16 coloured(“brown”),MA17 coloured(“cyan”),MA18 coloured(“cyan”)

      // couleur “blue” “purple” “red” “orange” “fuchsia” “yellow” “brown” “white” “green” “pink”

    • jordan • 106 days ago #

      dites moi si cela correspond à ce que vous cherchez

  2. kats • 104 days ago #

    bonjour
    merci de ta reponse mais non ca fonctionne pas
    sympa quand même d’avoir essayé
    cdlt

avatar
Register or

Likes

avatar avatar avatar avatar
Related users ' posts
okeus Ivan, riesci a creare un indicatore per le "evolventi paraboliche" ? grazie
groelandes Impagable tu trabajo cada semana. ¡Gracias!
Iván de nada! :)
P. Marlowe Muy bueno. ¿Podría hacerse para señalar extremos por el lado bajista? Lo mismo a la inversa....
Miro Esta es una versión del indicador, para ambos extremos. //-------------------------------...
P. Marlowe Muchas gracias ¡¡
Stenozar Ciao IVAN , mi da errore per la riga 49 "print tema low"; puoi suggerirmi la modifica da met...
Iván Avete provato a scaricare il file .itf?
AndyB72 Caricato ora sulla V12, nessun errore.
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 ...
Nicolas
2 years ago
FXtonio Bonjour Nicolas, merci pour cette merveille, je l'utilise en compl2ment du "magical buy sell...
xpe74 Bonjour Nicolas, quelle est la valeur de MA que l'on doit prendre en compte pour intégration...
Nicolas Il faut faire un CALL de l'indicateur et y placé en paramètre les valeurs des périodes souha...
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
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...
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...
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
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...
Alessandro Furlani Hi Ian, hope you still use PRT and so you can read this post. I have tested a lot your work ...
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....

Top