ATR OSC and Volume Screener (ATROSCVS)

In today's world of trading, having the right tools and indicators can make all the difference. With the vast number of cryptocurrencies available, I've found it challenging to keep track of the market's overall direction and make informed decisions. That's where the ATR OSC and Volume Screener comes in, a powerful Pine Script that I use to identify potential trading opportunities across multiple cryptocurrencies, all in one convenient place.

This script combines two essential components: the ATR Oscillator (ATR OSC) and a Volume Screener. It is designed to work with the TradingView platform. Let me explain how this script works and how it benefits my trading.

Firstly, the ATR Oscillator is an RSI-like oscillator that performs better under longer lookback periods. Unlike traditional RSI, the ATR OSC doesn't lose its min and max ranges with a long lookback period, as the scale remains intact. It calculates the true range by considering the high, low, open, and close prices of a financial instrument, and uses this true range instead of the standard deviation in a modified z-score calculation. This unique approach helps provide a more precise assessment of the market's volatility.

The Volume Screener, on the other hand, helps me identify unusual trading volumes across various cryptocurrencies. It employs a normalized volume calculation method, effectively filtering out outliers and highlighting potentially significant trading opportunities.

One feature I find particularly impressive about the ATR OSC and Volume Screener is its versatility and the way it displays information using color gradients. With support for over 30 different cryptocurrencies, including popular options like Bitcoin (BTC), Ethereum (ETH), Ripple (XRP), and Dogecoin (DOGE), I can monitor a wide range of markets simultaneously. The color gradient on the grid is visually appealing and makes it easy to identify the strength of the indicators for each cryptocurrency, allowing me to make quick comparisons and spot potential trading opportunities.

The customizable input options allow me to fine-tune the script to suit my individual trading preferences and strategies. In summary, the ATR OSC and Volume Screener has been an invaluable tool for me as I navigate the ever-evolving world of cryptocurrencies. By combining the power of the ATR Oscillator with a robust Volume Screener, this Pine Script makes it easier than ever to identify promising trading opportunities and stay ahead of the game.

The color gradient in the ATR OSC and Volume Screener is essential for visually representing the data on the heatmap. It uses a range of colors to indicate the strength of the indicators for each cryptocurrency, making it easier to understand the market dynamics at a glance.

In the heatmap, the color gradient typically starts from a cooler color, such as blue or green, at the lower extremes (low ATR OSC values) and progresses towards warmer colors, like yellow, orange, or red, as the ATR OSC values approach the upper extremes (high ATR OSC values). This color-coding system enables me to quickly identify and interpret the data without having to examine individual numerical values.

For example, cooler colors (blue or green) might represent lower values of the ATR Oscillator, suggesting oversold conditions in the respective cryptocurrencies. On the other hand, warmer colors (yellow, orange, or red) indicate higher ATR OSC values, signaling overbought market conditions. This visual representation allows me to make rapid comparisons between different cryptocurrencies and spot potential trading opportunities more efficiently.

By utilizing the color gradient in the heatmap, the ATR OSC and Volume Screener simplifies the analysis of multiple cryptocurrencies, helping me to quickly identify market trends and make better-informed trading decisions.

I highly recommend testing the ATR OSC and Volume Screener and seeing the difference it can make in your trading decisions. Happy trading!
Release Notes:
In today's fast-paced and ever-evolving world of cryptocurrency trading, having access to advanced tools and indicators is crucial. As a proud developer of the ATR OSC and Volume Screener, I'm excited to introduce an important new feature in version 2 of the script: auto-scaling.

The auto-scaling feature allows the script to dynamically adjust its display based on the current chart size, ensuring a clear and visually appealing presentation of data regardless of the chosen timeframe. By automatically resizing the boxes that represent each cryptocurrency and their respective ATR OSC values, the script provides a seamless and user-friendly experience.

Here's a closer look at the new auto-scaling feature and its implementation in the Pine Script code:
left = chart.left_visible_bar_time
right = chart.right_visible_bar_time
screen_size = math.abs(right - left)
unit = int((time - time[1])/2)

multiplier = int(screen_size/unit/12/scale) 

boxes_plot(symbols, offset)=>
    boxes =
    boxes_per_row = 6 
    offset_x = boxes_per_row * multiplier * unit * (offset + 1)
    if barstate.islast
        var row = 0
        var col = 0
        for i = 0 to array.size(symbols) - 1
            xPos = (time + col * multiplier * unit - offset_x) 
            yPos = row * multiplier/2
            atr_osc = array.get(symbols, i)
            colour = grad(atr_osc)
            array.push(boxes,, yPos, xPos + multiplier * unit, yPos - multiplier/2, colour, bgcolor = colour, text = array.get(symbol_name, i), text_color = color.white, xloc = xloc.bar_time))
            col +=  1
            if col >= boxes_per_row
                col := 0
                row -= 1
            if row >= boxes_per_row
                row := 0

    if barstate.isconfirmed
        for i = 0 to array.size(boxes) - 1
            box.delete(array.get(boxes, i))
The auto-scaling feature is made possible through the calculation of the screen size and the determination of a multiplier value. The screen size is computed by taking the absolute difference between the left and right visible bar times on the chart. The unit value is calculated by dividing the difference between the current time and the previous time by two.

The multiplier is then calculated by dividing the screen size by the product of the unit value, 12, and the scale variable. This multiplier value is used to resize the boxes representing each cryptocurrency on the heatmap, ensuring they are displayed clearly and proportionally to the chart's dimensions.

The boxes_plot function is responsible for creating and displaying the boxes on the heatmap. The new auto-scaling feature is incorporated into this function by using the multiplier variable to adjust the size and position of each box based on the current chart size. This dynamic adjustment ensures that the ATR OSC and Volume Screener heatmap remains visually appealing and easy to read, regardless of the selected timeframe.

In summary, the new auto-scaling feature in version 2 of the ATR OSC and Volume Screener script adds another layer of functionality and usability to an already powerful tool. By automatically adjusting the display based on the chart size, traders can now enjoy a more seamless and visually appealing experience when identifying potential trading opportunities in the cryptocurrency market.

Upgrade to version 2 of the ATR OSC and Volume Screener today to take advantage of this exciting enhancement. With the auto-scaling feature, you'll find it easier than ever to analyze and interpret the data presented on the heatmap, regardless of the chosen timeframe or chart size. Don't miss out on the opportunity to elevate your trading strategies even further with the latest version of the ATR OSC and Volume Screener. Happy trading!
Release Notes:
chart update lol
Release Notes:
updated to take advantage of my library for creating the box_plot
Release Notes:
Added a switch to see the raw values.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?