Nicolas

Cloud indicator

Category: Indicators By: Nicolas Created: November 21, 2019, 10:31 AM
November 21, 2019, 10:31 AM
Indicators
8 Comments
Cloud indicator

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

//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

 

Download
Filename: PRC_Cloud-Indicator.itf
Downloads: 558
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

ashee
6 years ago
#

i want it in MT4

Arlei Zanin
7 years ago
#

Hello Nicolas, would it be possible to convert the Cloud to Pascal language? Thank you.

Alps007
7 years ago
#

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.

efahmy
7 years ago
#

Thanks Mate, Much appreciated.,

efahmy
7 years ago
#

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?

Nicolas
7 years ago
#

Add indicator on price by using the wrench on the left upper side of your price chart.

Jean-Teddy DAMOUR
7 years ago
#

Bonjour Nicolas, Je souhaite vous contacter pour une demande particulière. Pouvez-vous me dire comment vous contacter ? Un mail is possible ? Merci

Nicolas
7 years ago
#

Vous pouvez utiliser le formulaire de la page programmation: https://www.prorealcode.com/trading-programming-services/

ProRealCode ProRealCode
Loading...