Ripster Clouds For ThinkOrSwim

Do you replace anything in the code or just add to it ? I don’t know how to code but I’m going to figure this out
These three lines were used to replace one line in the initial / original post. The third is the addCloud line, changed to use global colors (defined in lines 1 and 2 of this snippet). You need to take out the original line and add these three to make it work.

-mashume
 
Good evening,

I was wondering if it would be possible to make this coding
https://usethinkscript.com/threads/ripster-clouds-for-thinkorswim.19107/#post-143539
into being able to change the colors of the MTF clouds to being able to distinguish between the higher time frames such as following:

If by default, the 50 ema cloud for the 1hr (which is the higher time frame while we are looking at a 10 minute chart) is set to default as cyan, allow us to choose the color of each EMA cloud in relation to the time frame that we want adjusted.

Ruby:
input price = close;
input displace = 0;
input length1 = 50;
input length2 = 55;
input length3 = 20;
input length4 = 21;
input period = AggregationPeriod.DAY;
input averageType = AverageType.Exponential;

def MA1 = MovingAverage(averageType, close(period = period) [-displace], length = length1);
def MA2 = MovingAverage(averageType, close(period = period) [-displace], length = length2);
def MA3 = MovingAverage(averageType, close(period = period) [-displace], length = length3);
def MA4 = MovingAverage(averageType, close(period = period) [-displace], length = length4);

#AddCloud(ma1,ma2, (CreateColor(255, 240, 0)));
#AddCloud(ma3,ma4, (CreateColor(100, 240, 0)));
addcloud(ma1,ma2, color.yellow, color.dark_orange);
addcloud(ma3,ma4, color.green, color.red);
 
Last edited by a moderator:
Good evening,

I was wondering if it would be possible to make this coding
https://usethinkscript.com/threads/ripster-clouds-for-thinkorswim.19107/#post-143539
into being able to change the colors of the MTF clouds to being able to distinguish between the higher time frames such as following:

If by default, the 50 ema cloud for the 1hr (which is the higher time frame while we are looking at a 10 minute chart) is set to default as cyan, allow us to choose the color of each EMA cloud in relation to the time frame that we want adjusted.

Ruby:
input price = close;
input displace = 0;
input length1 = 50;
input length2 = 55;
input length3 = 20;
input length4 = 21;
input period = AggregationPeriod.DAY;
input averageType = AverageType.Exponential;

def MA1 = MovingAverage(averageType, close(period = period) [-displace], length = length1);
def MA2 = MovingAverage(averageType, close(period = period) [-displace], length = length2);
def MA3 = MovingAverage(averageType, close(period = period) [-displace], length = length3);
def MA4 = MovingAverage(averageType, close(period = period) [-displace], length = length4);

#AddCloud(ma1,ma2, (CreateColor(255, 240, 0)));
#AddCloud(ma3,ma4, (CreateColor(100, 240, 0)));
addcloud(ma1,ma2, color.yellow, color.dark_orange);
addcloud(ma3,ma4, color.green, color.red);
I second your request. Hopefully someone can add to this great study and add customizable colors (transparency) and EMA lengths to the MTF clouds and lines. I have a hard time seeing the clouds sometimes unless I make them obnoxiously bright. :cool: Some optional up arrow / down arrow signals would be great too.
 
I second your request. Hopefully someone can add to this great study and add customizable colors (transparency) and EMA lengths to the MTF clouds and lines. I have a hard time seeing the clouds sometimes unless I make them obnoxiously bright. :cool: Some optional up arrow / down arrow signals would be great too.
Here you have the real MTF code. RIP use hl2 not close value.

Regarding Colors you can change them at DefineGlobalColor.

Python:
# ########################################
# Ripster MTF Cloud 1h

# ########################################
# Chart Coloring
DefineGlobalColor("orange", CreateColor(33, 150, 243));
DefineGlobalColor("blueish", CreateColor(255, 183, 77));

input fast_ema = 34; # Hourly EMA 1 Short Length
input slow_ema = 50; # Hourly EMA 1 Long Length
input aggr = AggregationPeriod.HOUR; # Use hourly aggregation

# Higher Time Frame EMAs for EMA 1 (Hourly)
def ema1 = ExpAverage(hl2(period = aggr), fast_ema);
def ema2 = ExpAverage(hl2(period = aggr), slow_ema);

# Fill the cloud between the EMAs for (Hourly)
AddCloud(ema1, ema2, GlobalColor("orange"), GlobalColor("blueish"));

Python:
# ########################################
# Ripster MTF Cloud Daily

# ########################################
# Chart Coloring
DefineGlobalColor("green", CreateColor(0, 165, 0));
DefineGlobalColor("blue", CreateColor(255, 183, 77));

input maLen1 = 50; # EMA 1 Short Length
input maLen2 = 55; # EMA 1 Long Length
input maLen3 = 20; # EMA 2 Short Length
input maLen4 = 21; # EMA 2 Long Length

input aggr = AggregationPeriod.DAY; # Use daily aggregation

# Higher Time Frame EMAs for EMA 1 (Daily)
def ema1 = ExpAverage(hl2(period = aggr), maLen1);
def ema2 = ExpAverage(hl2(period = aggr), maLen2);

# Higher Time Frame EMAs for EMA 2 (Daily)
def ema3 = ExpAverage(hl2(period = aggr), maLen3);
def ema4 = ExpAverage(hl2(period = aggr), maLen4);

# Fill the cloud between the EMAs for EMA 1 (Daily)
AddCloud(ema1, ema2, GlobalColor("green"), CreateColor(255, 183, 77));

# Fill the cloud between the EMAs for EMA 2 (Daily)
AddCloud(ema3, ema4, GlobalColor("blue"), GlobalColor("green"));
 
Does any one has any scan based off of EMA Cloud ?

Does any one has any Scans/Studies from RipSter Clouds?
 
Last edited by a moderator:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
161 Online
Create Post

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top