The Cloud indicator distinguish the relationship between 2 moving average and thus determines the color of the cloud.
We distinguish 4 cases:
- Short & Long Growing
- Growing Short & Long Falling
- Falling Short & Long Growing
- Short & Long Falling
Cloud indicator code has been converted following a request in the french ProBuilder forum: Indicateur CLOUD conversion code mq4 vers prorealtime
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
//PRC_Cloud Indicator | indicator //21.11.2019 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge //converted from MT4 code // --- settings FastAveragePeriod = 50 FastMAMethod = 1 //MA type (0=SMA,1=EMA,2=WMA,3=Wilder,4=Triangular,5=End point,6=Time series) SlowAveragePeriod = 200 SlowMAMethod = 0 //MA type (0=SMA,1=EMA,2=WMA,3=Wilder,4=Triangular,5=End point,6=Time series) alpha = 100 //alpha transparency of color fill // --- end of settings FastMA = average[FastAveragePeriod,FastMAMethod](customclose) SlowMA = average[SlowAveragePeriod,SlowMAMethod](customclose) maxma = Max(FastMA,SlowMA) minma = Min(FastMA,SlowMA) if (FastMA >= SlowMA)then if (FastMA >= FastMA[1])then r=0 g=128 else r=0 g=255 endif else if (FastMA >= FastMA[1])then r=255 g=165 else r=255 g=0 endif endif drawcandle(maxma,minma,maxma,minma) coloured(r,g,0,alpha) bordercolor(100,100,100,0) return FastMA, SlowMA |
Share this
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 :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Bonjour Nicolas,
Je souhaite vous contacter pour une demande particulière.
Pouvez-vous me dire comment vous contacter ? Un mail is possible ?
Merci
Vous pouvez utiliser le formulaire de la page programmation: https://www.prorealcode.com/trading-programming-services/
I’m using V10.3 with IG and whenever I’m importing an indicator it doesnt overlay on the chart, but goes into a new panel. Do you know how to fix this?
Add indicator on price by using the wrench on the left upper side of your price chart.
Thanks Mate, Much appreciated.,
Hi Nicolas.
Happy New Year.
Can you please program me several MACD divergence screeners that meet the following conditions
1) Positive and negative Divergence on the daily
2) Positive, negative and Hidden Divergence on the weekly.
Rather then scanning for just the previous day or previous week, I would like to choose how many days or weeks backwards I can scan for.
Thank you so much.
Hello Nicolas, would it be possible to convert the Cloud to Pascal language? Thank you.
i want it in MT4