Swing Data - Optimized SK60
v. 1.83
indicator adjust to time frame.
This Pine Script code generates a trading indicator that calculates and displays various data points on a stock, including Average Daily Range (ADR%), Market Cap, Current Volume, Free Cash Flow (FCF) Yield %, Float %, whether moving averages (MA) are inline, and the moving averages of certain indexes like the Russell 2000, Nasdaq 100, and S&P 500. Here’s a breakdown of the script and how to use it.
Key Concepts and Functionality
Indicator Definition: The script begins by defining the indicator with a title (Swing Data - Optimized ADR%...) and short title (Optimized Swing Data), which will appear on the chart. The overlay=true command ensures that the indicator is drawn on the main price chart rather than in a separate pane.
Sector and Ticker:
s = syminfo.tickerid: This stores the ticker ID of the stock being analyzed.
sector = syminfo.sector: This retrieves the sector to which the stock belongs. If the sector information is unavailable, it assigns the value "N/A".
Dynamic Inputs: Several input parameters allow you to customize the indicator:
adrp_len: Defines the length for ADR% calculation.
len: Defines the moving average length for volume.
tbl_size, bg_col, and txt_col: Control the table's appearance, including the size of the text, background color, and text color.
posTable: Allows positioning of the table on the chart. Options include top-left, top-right, bottom-left, and bottom-right.
show_empty_row: Adds an empty row above the displayed values if set to true.
Volume Unit Handling (f_vol_unit): This function converts volume into appropriate units, like thousands (K), millions (M), or billions (B), to make volume easier to read. It’s applied to both the current volume and the average daily volume.
Moving Averages for Indexes (f_ma_indexes): This function calculates the 10-day, 20-day, 50-day, and 200-day simple moving averages (SMAs) for an index (such as Russell 2000 or Nasdaq 100). It also checks whether the MAs are inline, meaning if shorter MAs are above longer MAs, which is usually a bullish sign. It returns the result as "YES" or "NO" and assigns a color (green for yes, red for no).
Volume and Price Data: The script fetches several important data points:
vol_display: Current volume in human-readable units.
avgDaVol: Average daily volume.
adrp: Average Daily Range (ADR%) over a specified length.
fcf_yield_percent: Free Cash Flow Yield percentage.
ADR Calculation: The ADR% is calculated using the formula 100 * (ta.sma(high / low, adrp_len) - 1) and is fetched for the daily timeframe.
FCF Yield Color Logic: The Free Cash Flow yield is classified into three categories:
Green: Undervalued if FCF yield is over 5%.
Yellow: Neutral between 2-5%.
Red: Overvalued if below 2%.
MA's Inline Check for the Stock: The script checks if the stock's 10-day, 20-day, 50-day, and 200-day moving averages are inline (i.e., in a bullish alignment where shorter MAs are higher than longer MAs).
Float % Calculation: The float percentage is calculated as the ratio of float shares outstanding (FSO) to total shares outstanding (TSO). The color is set based on its breakout potential:
Red: Below 20% (manipulation risk).
Green: 20-50% (ideal breakout range).
Yellow: Above 50%.
Price Change %: The script calculates the percentage change in price between the current and previous close.
Volume Color Logic: The color of the "Current Volume" is based on whether it indicates buying or selling pressure:
Green: Volume is higher than average, and the price increased more than ADR%.
Red: Volume is higher than average, and the price decreased more than ADR%.
Yellow: Default color if neither condition is met.
Market Cap: The market cap is calculated by multiplying the total shares outstanding (TSO) by the current close price, and it’s displayed in a human-readable unit (K, M, or B).
Display Table:
A table is created to display all the calculated data in an organized manner. It includes fields for Market Cap, Avg Volume, ADR%, Current Volume, FCF Yield %, Float %, MA's Inline status, and Sector. Additionally, it shows the inline status for the Russell 2000, Nasdaq 100, and S&P 500.
How to Use:
Customization: Users can customize the inputs, including the length of ADR% and volume moving averages, and adjust the table size, text color, and position.
Visualization: The indicator provides a comprehensive table on the chart showing key data points for technical analysis, including whether moving averages are inline for both the stock and major indexes.
This indicator is particularly useful for swing traders or technical analysts who want a clear overview of a stock’s volume, volatility (via ADR%), and the alignment of moving averages, combined with fundamental metrics like market cap and free cash flow yield.
Stockbee
Swing Trading Indicators (Improved)This "Swing Trading Indicators" script is a sophisticated trading tool designed for traders who wants to use technical analysis for identifying optimal entry points, safeguarding profits, and protect their capital. With foundations loosely based on the momentum burst strategy by Pradeep Bonde, Kristjan Kullamaggie's trading methodologies, and incorporating automatic stop-losses based on Average Daily Range (ADR) and Average True Range (ATR), this script offers a comprehensive solution if you want to capitalize on short-term market movements.
Key Features:
Indicators and Moving Averages: Includes EMA (5, 10, 20, 50 days), SMA (200 days), and the highest and lowest prices over 200 days to provide a multifaceted view of market trends and momentum.
Thrust Indicator: Central to the script, the thrust indicator signals a buy point when a candlestick bar closes above the highs of the last two days, indicating a momentum burst. This feature is particularly inspired by Pradeep Bonde's 4% breakout strategy, highlighting the script's capability to identify range expansion and upward thrusts as key entry moments.
Automatic Stop-Levels: Utilizes ADR and ATR to set dynamic stop-losses, helping traders to manage risk effectively by adapting to market volatility.
Comprehensive Market Analysis : Through volume analysis, RSI, closing range, and other parameters, the script offers a deep dive into market dynamics, aiding in decision-making.
Who Should Use It:
This tool is ideal for swing traders and momentum traders focused on short to medium-term gains. Its robust set of features makes it suitable for those who prefer a data-driven approach to identify buying opportunities and manage risk.
Trading Style Compatibility:
The thrust indicator shines in momentum trading strategies, providing clear signals for entering trades ahead of potential price jumps. The integration of moving averages and volume analysis supports a variety of trading styles, including day trading and swing trading, by offering insights into trend strength and potential reversals.
How the Thrust Indicator Works:
When you see a thrust indicator (green upwards arrow below a candle) when the price is moving out of a consolidation or low volatility price-range , that's the buy point.
The thrust indicator is NOT indended as an indicator for long term positions or trend reversals, but for entries at a good price while capturing the first day of a potential 5-20% move in the coming 3-5 days.
The thrust indicator pinpoints moments when a stock shows a strong upward momentum, characterized by a candlestick closing above the highs of the preceding two days. This identifies a momentum burst, signaling an optimal entry point for traders looking to profit from a short-term price movement, typically ranging from 5-20% over the following 3-5 days. Such precision in identifying entry points is invaluable for traders focusing on capturing quick gains from market volatility.
"Top / Watch out" Indicator:
In addition to the script's core functionality, the "WatchOut" indicator plays a crucial role in identifying potential reversals after significant price movements. By analyzing conditions such as recent price increases compared to the average daily range, RSI levels, and the opening price distance from the EMA, the "WatchOut" indicator alerts traders to exercise caution. This feature is pivotal for those looking to avoid entering trades that might be on the verge of a pullback or reversal, enhancing the script's utility in managing risk.
Stockbee Momentum BurstThis is a script to color code bars based on the bullish- and bearish combination.
Bullish Combination
Percent: Price >= 4% from yesterday and Volume today > Yesterday
Dollar: Price >= 0.9 dollar from open
Base Requirements
- Price > Yesterday's close
- Price > Open
- Price is within 30% of high
- Todays price range >= Yesterdays price range
- Yesterday's move <= 2%
- Volume >= 100 000
Bearish Combination
Percent: Price <= 4% from yesterday and Volume today > Yesterday
Dollar: Price <= 0.9 dollar from open
Base Requirements
- Price < Yesterday's close
- Price < Open
- Price is within 30% of low
- Todays price range >= Yesterdays price range
- Yesterday's move >= -2%
- Minimum volume for each of last 3 days >= 100 000
Momentum Filter
These are based on the 10 and 20 EMA crossover, where the former above would indicate upward momentum and below downward momentum. This can help to narrow down the color code to continuation phases. The linked option will override all other momentum filters, bullish candles will be displayed when EMA 10 > 20 and bearish candles when EMA 10 < 20.
Ollie_allcaps Momentum IndicatorMomentum is created when a security makes a large move on higher-than-average volume. Momentum shows the rate of change in price movement over a period of time to help investors determine the strength of a trend.
This indicator will create a green spike once price advances 4% and is trading above the 50-day average trading volume. However, if the stock begins to breakdown (-4% or greater on above average volume), a red spike will be created.
These green and red spikes represent a change in momentum that occurs in the selected security.
This indictor should be used in 2 ways:
1: What are the charecteristics of this stock? Does it breakdown shortly after a momentum spike? or does the security trend in orderly manner after a momentum spike?
2: Investers should use this indicator to determine the strength of a momentum breakout in real time. Has the stock made a large move, but with no significant volume?
Customization:
The Percentage move, and average daily volume can be changed as well as colors.
Alerts:
If you wish to set an alert, this indicator allows you to create an alert when the selected stock meets your desired criteria.
[TTI] StockBee labelsHISTORY AND CREDITS –––––––––––––––––––––––––––––––––––––––––––––––––––––––
Since I am getting a big interest in the StockBee's TI65 indicator, I decided to make another one which covers the rest of the things I have seen on his chart.
WHAT IT DOES ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
👉 StockBee Labels = these include important measurements that you can have on the chart
— V = Traded Volume Today
— $ = Dollar Net Change Today
— Stop = Stop which is calculated by Low + 1/2 Trading Range
— TI65 = Absolute momentum value
— LD1 = Yesterday's Low
— TC = Todays True Closing Range
— MDR = Modified Double Trouble
Hover over the cells to get additional information
👉 Unusual Volume Bubble = these indicate when an unusually big volume has occurred
👉 Daily Bull/Bear Flags = Technical formation for Bull and Bear Flags
HOW TO USE IT –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
👉 StockBee Labels = can be used to determine the momentum strength, stop losses and general movement of stock. They are really good utility labels
👉 Unusual Volume Bars = Indicate significant times in the development of the tickers price movement. These signal extra caution as can be a begining of a big move
👉 Daily Bull and Bear Flags are technical patterns. If you look to trade Bull Flags make sure there is a preceding trend, consolidation channel and good volume pattern beforehand