Above Average Price / Volume

kc5560

New member
HELLO
CAN I HAVE A SCANNER FOR
PRICE > SMA20 DAY HIGH
PRICE > SMA20 DAY HIGH 1 DAY AGO
PRICE > SMA20 DAY HIGH 2 DAY AGO
DAY VOLUMN > 50D AVG VOLUMN
 
@kc5560
Ruby:
def Period = AggregationPeriod.DAY;

def varhigh = high(period = Period);
def varlow = low(period = Period);
def varvol = volume(period = Period);

def SMAVD50 = SimpleMovingAvg(varvol,50);
def SMAHD20 = SimpleMovingAvg(varhigh,20);
def SMALD20 = SimpleMovingAvg(varlow,20);


def Cond1 = close[1]>SMAHD20;
def Cond2 = close[1]>SMAHD20[1];
def Cond3 = close[1]>SMAHD20[2];
def Cond4 = volume[1]>SMAVD50;

def Buy = Cond1 and Cond2 and Cond3 and Cond4;

plot BuyP = if Buy then yes else Double.NaN;
BuyP.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
BuyP.AssignValueColor(Color.Green);
 
Last edited:
Hi All

If the current price is the highest from today, I won't enter into a trade. It is too expensive for me, so I always make sure it is not the most expensive price.

With Thinkorswim, How can I find stocks whose last price is less than the highest price for the day?

During the day a stock can have a lot of prices, let's say one of the highest prices was $100.00 during the day, but the current price is $105.00. Such a stock I don't need - the price was never so high today, so far the highest price was $100.00.

Therefore I need to find the past highest price ($100.00) and compare it with the current price, in order to see if the current price is high in comparison.
 
Last edited:
can I have scan for
1. Price closes above the 20 SMA of the high for two consecutive days
2. Volume is Trading near or above its 50 SMA

Can I have a Scan For :
1. Price closes above the 20 MA of the High For two consecutive days
2. Volume is above 50 MA

Another Scan is for buying
1. Price falls and closees inside the (20 MA High and 20 MA Low Channel) or just below

Scan For Selling
1. Price Closing below 20MA of the LOW after open market 15 min
 

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
445 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.
Back
Top