• Get $40 off VIP by signing up for a free account! Sign Up

How can we use hourly and daily data in minute chart?


New member
Hi All,
I am new to this script. i am trying to create a filter that will look into the daily and hourly chart and give the breakpoint/ trends infor, even if you are watching the minute chart. Can anyone guide me on how can I do that?
  • I use the below indicator on my 1min chart with an up arrow on the 1 min crossover.
  • Is there a way to add a second arrow on the same 1min chart for when the crossover happens on the 2min chart? (So I can see the 2min crossover on the 1min chart instead of having a second 2 min chart open on my screen)
Any help is appreciated. It may be an easier answer but I'm not familiar with how to do it. Thank you all.

MovAvgExponential("length" = 5)."AvgExp" crosses above BollingerBands("average type" = "EXPONENTIAL")."MidLine"
@GimmickFace Here are the plots. Check to see if that fits what you want. No arrows as I do not favor most arrows. Can be added if needed.

# Combination of BollingerBands BandpassFilter midline polt with ExpMA of one minute and 2 minutes. Only use on 1 minute chart.
# Horserider coded from request by Gimmickface

# BollingerBands band midline plot

input pricebb = close;
input displacebb = 0;
input lengthbb = 20;

input averageTypebb = AverageType.SIMPLE;

plot MidLine = MovingAverage(averageTypebb, data = pricebb[-displacebb], length = lengthbb);


# Chart period ExpMA Inertia this case 1 minute
input price = close;
input length = 5;
input displace = 0;
plot SMA = movAvgExponential( price[-displace], length);


# 2 Minute ExpMA

input price2 = FundamentalType.CLOSE;
input aggregationPeriod = AggregationPeriod.TWO_MIN;
input length2 = 5;
input displace2 = 0;
input showOnlyLastPeriod = no;

plot DailySMA;

if showOnlyLastPeriod and !IsNaN(close(period = aggregationPeriod)[-1]) {
    DailySMA = Double.NaN;
} else {
    DailySMA = movAvgExponential(fundamental(price2, period = aggregationPeriod)[-displace2], length2);


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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
292 Online
Create Post

Similar threads

Similar threads

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.