The Cloud indicator distinguish the relationship between 2 moving average and thus determines the color of the cloud.
We distinguish 4 cases:
Cloud indicator code has been converted following a request in the french ProBuilder forum: Indicateur CLOUD conversion code mq4 vers prorealtime
//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
You must be logged in to post a comment.
Hello Nicolas, would it be possible to convert the Cloud to Pascal language? Thank you.
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.
Bonjour Nicolas, Je souhaite vous contacter pour une demande particulière. Pouvez-vous me dire comment vous contacter ? Un mail is possible ? Merci
i want it in MT4