# How to scan bullish candles over the last 10days

#### 8Nick8

##### Active member
2019 Donor
VIP
Hi, i am trying to construct a scanner with the following condition,
1. Last 10 days, at least 7 days is bullish candle
2. Volume of past 10 days, on average increases by at least 15%
3. Price increase overall by at least 10%

I need some help to write the script for condition 1, "last 10 days, there were at least 7 bullish candles"
Input = 10
Bullish= Close>close[1]
Condition 1= ?

https%3A//i.imgur.com/zeaeA7P.jpg[/img]']

Thanks

Solution
Hi, i am trying to construct a scanner with the following condition,
1. Last 10 days, at least 7 days is bullish candle
2. Volume of past 10 days, on average increases by at least 15%
3. Price increase overall by at least 10%

I need some help to write the script for condition 1, "last 10 days, there were at least 7 bullish candles"
Input = 10
Bullish= Close>close[1]
Condition 1= ?

https%3A//i.imgur.com/zeaeA7P.jpg[/img]']

Thanks

Condition 1= ( sum(bullish, 10) >= 7);
Hi, i am trying to construct a scanner with the following condition,
1. Last 10 days, at least 7 days is bullish candle
2. Volume of past 10 days, on average increases by at least 15%
3. Price increase overall by at least 10%

I need some help to write the script for condition 1, "last 10 days, there were at least 7 bullish candles"
Input = 10
Bullish= Close>close[1]
Condition 1= ?

https%3A//i.imgur.com/zeaeA7P.jpg[/img]']

Thanks

Condition 1= ( sum(bullish, 10) >= 7);

87k+ Posts
307 Online

## The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
• Exclusive indicators
• Proven strategies & setups
• Private Discord community
• Exclusive members-only content
• 1 full year of unlimited support

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?