logo
  • menu
  • Markets
  • ETFs
  • Live
  • Spot
  • Futures
  • Learn
  • Sign In
  • Sign Up
  • Downloads
  • English
  • |
  • USD
  • |
Sign Up
Crypto PricesLearnLatest NewsDownloadsMarketsSpotAnnouncements
Home/
Learn/
Crypto Basics

Trading highs and lows: How to trade with previous day high and low

By James Dean
Sep 16, 2022
4.3 
★
★
★
★
★
★
★
★
★
★
 212 User Rating
Share

Without the right trading tools, you can’t conduct effective technical analysis. A strong trading strategy will help you avoid common mistakes, improve your risk management, and increase your ability to identify and take advantage of opportunities. For many, TradingViewis the go-to charting platform. Offering a hub of technical analysis tools, the powerful HTML5 web application is used by millions to track movements in the Forex, cryptocurrency, and traditional stock markets.

TradingView has many powerful features: it allows us to track assets across numerous trading platforms and to publish trading ideas within its social network. In this article, we’ll focus on its customizability. We’ll be using Pine Script, TradingView’s own programming language, which grants us granular control over our chart layouts. This article will show you how to trade with previous day high and low.

What is Pine Script?

Pine Script is a scripting language that can be used to modify your TradingView charts. The platform already equips you with many features to do so, but Pine Script allows you to take it a step further. Whether you want to change the colors of your candlesticks or to backtest a new strategy, the Pine Editor will enable you to customize your real-time charts as you see fit.

The code itself is excellently documented, so be sure to check out the user manual for more information. Our goal in this tutorial is to discuss some of the basics and introduce indicators that can come in handy for cryptocurrency trading.

Setting up

It’s incredibly simple to get started with Pine Script. Any code we write is run on TradingView’s servers, so we can access the editor and develop our scripts from a browser – without any additional download or configuration required.

In this tutorial, we’re going to chart the Bitcoin/Binance USD (BTCBUSD) currency pair. If you don’t have one already, go ahead and create a free account (there’s a pro subscription available, too, but it isn’t necessary for this guide).

The Pine Editor

This editor is where the magic happens. We’ll tell it what we want to do, then click on Add to Chartto see our annotations appear above. Note that things can get messy if we include several annotations at once, so we’ll remove them between examples (right-click in the chart > Remove Indicators).

Plotting moving averages (MA)

Let’s move on to our first custom indicator – the exponential moving average, or EMA. This is a valuable tool as it allows us to filter out any market noise and smooth out price action.

EMA differs slightly from the simple moving average (SMA), in that it puts more weight in the most recent data. It tends to be more reactive to sudden movements and is often used for short-term plays

Plotting the Relative Strength Index (RSI) indicator

The Relative Strength Index (RSI)is another essential indicator in technical analysis. It’s known as a momentum indicator, meaning that it measures the rate at which assets are bought and sold. Presented on a scale of 0 to 100, an RSI score attempts to inform investors on whether assets are overbought or oversold. Typically, an asset may be considered oversold if it has a score less than or equal to 30, and it could be overbought with a score greater or equal to 70.

If you head to New > RSI Strategy, you can see this for yourself. RSI is generally measured over periods of 14 (i.e., 14 hours or 14 days), but you’re free to tweak that setting to suit your own strategy.

Backtesting

There is a way for us to test our custom indicators. Though past performance is no guarantee of future results, backtesting our scripts can give us an idea of how effective they are at picking up signals.

Tying it together

Time to write our own script by using some of the concepts we’ve seen so far. We’re going to combine EMA and RSI and use their values to color candlesticks, yielding insights that we can easily visualize. This shouldn’t be construed as financial advice – there’s no objectively correct way to use this indicator. As with all others, it should be used with other tools to develop your own strategy.

Closing thoughts

In this article, we’ve run through some basic examples of what you can do with TradingView’s Pine Editor. By now, you should be confident in making simple annotations to price charts to gain additional insights from your own indicators. Hope this article can help you address problems in trading highs and lows and give you some brand-new ideas about how to trade with previous day high and low.

Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of BitKan. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. BitKan shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information. Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. Products mentioned in this article may not be available in your region.

Related Articles

  • What Are Short Liquidations? How Can Traders Prevent Them in Crypto?

    What Are Short Liquidations? How Can Traders Prevent Them in Crypto?

    A short liquidation is a mandatory event within derivatives markets where a cryptocurrency exchange automatically closes a leveraged short position.
    Cornell Rachel
    Jun 22, 2026
  • What Is Rehypothecation Risk in Crypto? How to Protect Yourself

    What Is Rehypothecation Risk in Crypto? How to Protect Yourself

    Rehypothecation is a practice where a lending platform takes collateral pledged by its clients and uses it for its own purposes.
    James Dean
    Jun 17, 2026
  • What Is pERC20? How Does This Ethereum Token Standard Work?

    What Is pERC20? How Does This Ethereum Token Standard Work?

    The pERC-20 framework is an experimental Ethereum Improvement Proposal designed to fundamentally alter how standard tokens operate on public networks,
    Jun 12, 2026

Latest Articles

Crypto Basics

Tutorials

Currencies

Investing

  • What Are Short Liquidations? How Can Traders Prevent Them in Crypto?

    What Are Short Liquidations? How Can Traders Prevent Them in Crypto?

    A short liquidation is a mandatory event within derivatives markets where a cryptocurrency exchange automatically closes a leveraged short position.
    Cornell Rachel
    Jun 22, 2026
  • What Is Rehypothecation Risk in Crypto? How to Protect Yourself

    What Is Rehypothecation Risk in Crypto? How to Protect Yourself

    Rehypothecation is a practice where a lending platform takes collateral pledged by its clients and uses it for its own purposes.
    James Dean
    Jun 17, 2026
  • What Is pERC20? How Does This Ethereum Token Standard Work?

    What Is pERC20? How Does This Ethereum Token Standard Work?

    The pERC-20 framework is an experimental Ethereum Improvement Proposal designed to fundamentally alter how standard tokens operate on public networks,
    Jun 12, 2026
  • What Are Crypto Prediction Markets? A Complete Guide for Beginners

    What Are Crypto Prediction Markets? A Complete Guide for Beginners

    Crypto prediction markets are peer-to-peer decentralized financial platforms where participants trade contracts tied to the outcomes of real-world events, such as elections, sports, or economic data releases.
    Jun 12, 2026
  • What is the MSX X Card? Understanding the New Crypto Card

    What is the MSX X Card? Understanding the New Crypto Card

    The MSX X Card is a financial instrument launched by the MSX Maitong platform that functions as a payment gateway for digital assets
    James Dean
    Jun 8, 2026
View more data 

Content

BTCBTC(BTC)
$0
--(Last 24h)
SpotFutures

Top

View more
  1. 1How To Sign Up For A BitKan Account (Web)?
  2. 2When Is Bitcoin Halving 2024? What Does Bitcoin Halving Do?
  3. 3What is Etherscan Used For and How to Find Token Decimal on Etherscan
  4. 4What is USDC used for? Why is USDC used?

Top Gainers

View more
Bondex
BondexBDXN

$0.000880

+59.90%
Solstice
SolsticeSLX

$0.3793

+52.39%
Atletico Madrid Fan Token
Atletico Madrid Fan TokenATM

$1.9620

+40.54%
BNB Attestation Service
BNB Attestation ServiceBAS

$0.0426

+36.03%
Rats
RatsRATS

$0.00003097

+24.83%

Top Trending

View more
AAVE
AAVEAAVE

$83.9900

+16.83%
Block Street
Block StreetBSB

$0.3210

-2.60%
Humanity
HumanityH

$0.0778

-27.84%
Synapse
SynapseSYN

$0.3390

+15.55%
BNB Attestation Service
BNB Attestation ServiceBAS

$0.0426

+36.03%

Recently added

View more
Arcium
ArciumARX

$0.2528

-18.03%
Ambire AdEx
Ambire AdExADX

$0.0576

+3.41%
Re
ReRE

$0.6083

-16.03%
o1 exchange
o1 exchangeO

$0.6446

+13.79%
SpaceX
SpaceXSPCXB

$155.740

+0.47%

Latest News

View more
  1. 1Uniswap Soars 22% as Altcoins Rally While Bitcoin Stalls
  2. 2HYPE Surges 6%: Suspected Insider Whale Nabs $34M in Gains
  3. 3SpaceX Prices Record $75B IPO at $135, Hits $1.8T Valuation
  4. 4Stablecoin Secondary Market Rules Pit Banks Against Crypto
  5. 5Bitcoin and Gold Tumble Amid Rising Inflation and Rate Bets
About Us
  • About BitKan
  • Contact Us
  • Announcements
  • VIP Program
  • BitKan Ambassador
  • Institutional Services
Products
  • Spot
  • Futures
  • Crypto Prices
  • Learn
  • News
  • Markets
  • How to Buy Crypto
  • BTC to USD Calculator
  • Reward
Help
  • Help Center
  • Email Us
  • Live Chat
  • Download APP
  • Listing Application
  • Buy Bitcoin
  • Buy Ethereum
  • Buy Dogecoin
  • Buy Altcoins
Terms
  • Terms of Use
  • Privacy Policy
  • Trading Rules
  • Fee
K-Site
English
About Us
+
  • About BitKan
  • Contact Us
  • Announcements
  • VIP Program
  • BitKan Ambassador
  • Institutional Services
Products
+
  • Spot
  • Futures
  • Crypto Prices
  • Learn
  • News
  • Markets
  • How to Buy Crypto
  • BTC to USD Calculator
  • Reward
Help
+
  • Help Center
  • Email Us
  • Live Chat
  • Download APP
  • Listing Application
  • Buy Bitcoin
  • Buy Ethereum
  • Buy Dogecoin
  • Buy Altcoins
Terms
+
  • Terms of Use
  • Privacy Policy
  • Trading Rules
  • Fee
K-Site
+
  • Twitter
  • Facebook
  • Telegram
  • YouTube
  • Instagram
  • Medium
  • Linkedin
@2012-2026 BITKAN.com