[blackcat] L2 Waveband Trading█ OVERVIEW
The Waveband Trading script calculates trading signals based on a modified Relative Strength Index (RSI)-like system combined with specific price action criteria. It plots two lines representing different smoothed RSI-like indicators and marks potential buying opportunities labeled as "S" for stronger trends and "B" for weaker but still favorable ones.
█ LOGICAL FRAMEWORK
The script begins by defining the waveband_trading_signals function which computes RSI-like metrics and determines buy signals under certain conditions. The main sections include input parameter definitions, function calls, data processing within the function, and plot commands for visual representation. Data flows from historical OHLCV data to various technical computations like EMAs and SMAs before being evaluated against user-defined thresholds to generate trade signals.
█ CUSTOM FUNCTIONS
Waveband Trading Signals:
• Purpose: Computes waveband trading signals using a customized version of the RSI indicator.
• Parameters:
— overboughtLevel: Threshold level indicating market overbought condition.
— oversoldLevel: Threshold level indicating market oversold condition.
— strongHoldLevel: Strong hold condition threshold between neutral and overbought states.
— moderateHoldLevel: Moderate hold condition threshold below strong hold level.
• [b>Returns: A tuple containing:
— k: Smoothed RSI-like metric.
— d: Further smoothed version of 'k'.
— buySignalStrong: Boolean indicating a strong trend buy signal.
— buySignalWeak: Boolean indicating a weak but promising buy signal.
█ KEY POINTS AND TECHNIQUES
• Utilizes EMA and SMA functions to smooth out price variations effectively.
• Employs crossover logic between fast ('k') and slow ('d') indicators to identify entry points.
• Incorporates volume checks ensuring increasing interest in trades aligns with upwards momentum.
• Leverages predefined threshold levels allowing flexibility to adapt to varying market conditions.
• Uses the new labeling feature ( label.new ) introduced in Pine Script v5 for marking significant chart events visually.
█ EXTENDED KNOWLEDGE AND APPLICATIONS
Potential enhancements could involve incorporating additional filters such as MACD crossovers or Fibonacci retracement levels alongside optimizing current conditions via backtesting. This technique might also prove useful in other strategies requiring robust confirmation methods beyond simple price action; alternatively, adapting it into a more automated form for execution on exchanges offering API access. Understanding key functionalities like relative strength assessment, smoothed averaging techniques, and conditional buy/sell rules enriches one’s toolkit when developing complex trading algorithms tailored specifically toward personal investment philosophies.
指标和策略
Candlestick Pattern DetectorFeatures
Reversal Patterns:
Bullish Patterns:
Bullish Engulfing: A strong reversal signal when a bullish candle completely engulfs the previous bearish candle.
Hammer: Indicates a potential bottom reversal with a small body and a long lower wick.
Morning Star: A three-candle pattern signaling a transition from a downtrend to an uptrend.
Bearish Patterns:
Bearish Engulfing: A bearish candle fully engulfs the prior bullish candle, indicating a potential downtrend.
Shooting Star: A potential top reversal with a small body and a long upper wick.
Evening Star: A three-candle pattern signaling a shift from an uptrend to a downtrend.
Continuation Patterns:
Bullish Continuation:
Rising Three Methods: A consolidation pattern within an uptrend, indicating the trend is likely to continue.
Bearish Continuation:
Falling Three Methods: A consolidation pattern within a downtrend, suggesting further downside movement.
Visual Highlights:
Bullish Reversal Patterns: Labeled below candles with a green "Bullish" marker.
Bearish Reversal Patterns: Labeled above candles with a red "Bearish" marker.
Bullish Continuation Patterns: Displayed as blue triangles pointing upward.
Bearish Continuation Patterns: Displayed as orange triangles pointing downward.
Real-Time Alerts:
Get notified when a specific candlestick pattern is detected, enabling you to act quickly in dynamic market conditions.
Marubozu White with ATR-based SL and TPMarubozu White with ATR-based SL and TP
***ช่วงการซื้อขาย: 2023-01-01 19:00 - 2025-01-07 09:00, ***ช่วงการทดสอบย้อนหลัง: 2023-01-01 07:00 ถึง 2025-01-07 09:00
***สัญลักษณ์: BINANCE:BTCUSD.P ไทนเฟรม: 2 ข้าโมง,
***Risk/Reward Ratio: 2, ATR Length: 1, ATR Multiplier for SL: 9.5
VST: Daily Close Crossing Weekly HMA & Daily WMAVST: Daily Close Crossing Weekly HMA & Daily WMA, may change its direction upwards and vis a versa
SZN TrendThis indicator showcases various trends.
Local Trend - 13, 21, 34 EMA
Daily Trend - H4 100 and 200 EMA
Weekly Trend - Daily 100 and 200 EMA.
Courtesy of Docxbt.
Monthly Drawdowns and Moves UP This script allows users to analyze the performance of a specific month across multiple years, focusing on maximum drawdowns and maximum upward moves within the selected month. The script offers the following features:
Dynamic Month Selection : Choose any month to analyze using an intuitive dropdown menu.
Maximum Drawdown and Upward Move Calculations :
Calculate the largest percentage drop (drawdown) and rise (move up) for the selected month each year.
Visual Highlights :
The selected month is visually highlighted on the chart with a semi-transparent overlay.
Dynamic Labels:
Labels display the maximum drawdown and upward move directly on the chart for better visualization.
Comprehensive Table Summary:
A table provides a year-by-year summary of the maximum drawdowns and upward moves for the selected month, making it easy to spot trends over time.
Customizable Display Options:
Toggle the visibility of drawdown labels, move-up labels, and the summary table for a clutter-free experience.
This tool is perfect for traders and analysts looking to identify seasonal patterns, assess risk and opportunity, and gain deeper insights into monthly performance metrics across years. Customize, explore, and make informed decisions with this powerful Pine Script indicator.
Master Bitcoin & Litecoin Stock To Flow (S2F) ModelMaster Bitcoin & Litecoin Stock-to-Flow (S2F) Model
This indicator visualizes the Stock-to-Flow (S2F) models for Bitcoin (BTC) and Litecoin (LTC) based on Plan B's methodology. It calculates S2F and projects price models for both assets, incorporating daily changes in circulating supply. The script is designed exclusively for daily timeframes.
Features:
LTC & BTC S2F Models:
Calculates Stock-to-Flow values for both assets using daily new supply and circulating supply data.
Models S2F values with a customizable multiplier for precise adjustments.
500-Day Moving Average Models:
Smoothens the S2F model by applying a 500-day (18-month) moving average, providing a long-term trend perspective.
Customizable Inputs:
Adjust LTC and BTC multipliers to fine-tune the models.
Alert for Timeframe:
Alerts users to switch to the daily timeframe if another period is selected.
Plots:
LTC S2F Model: Blue line representing Litecoin’s calculated S2F-based price model.
BTC S2F Model: Orange line representing Bitcoin’s calculated S2F-based price model.
500-Day Avg Models: Smoothened S2F models for both LTC and BTC.
Notes:
Requires daily timeframe (1D) for accurate calculations.
Supply data is sourced from GLASSNODE:LTC_SUPPLY and GLASSNODE:BTC_SUPPLY.
Disclaimer:
This model is derived from Plan B's S2F methodology and is intended for educational and entertainment purposes only. It does not reflect official predictions or financial advice. Always conduct your own research before making investment decisions.
Multi-ticker Daily Pivot AlertDescription:
The Big Tech Daily Pivot Alert is a powerful TradingView indicator designed to monitor daily pivot points for major tech and market-leading tickers. It provides real-time alerts when prices approach their daily pivot levels, helping traders identify potential trading opportunities during the U.S. market hours.
Key Features:
Multi-Ticker Monitoring: Tracks the daily pivot points for top tech and market tickers, including NVDA, TSLA, AMZN, NFLX, SPY, QQQ, GOOGL, MSFT, META, and AAPL.
Daily Pivot Calculations: Uses yesterday's high, low, and close prices to calculate the pivot point for each ticker.
Real-Time Alerts: Sends instant alerts when the open, high, low, or current price is near the pivot point (within 0.25% tolerance).
Time-Sensitive Alerts: Operates exclusively during U.S. market hours (6:00 AM to 1:00 PM PST) on weekdays (Monday to Friday).
Customizable Alert Format: Alerts are sent as JSON payloads for seamless integration with platforms like Discord or other webhook-supported systems.
How It Works:
The indicator calculates the daily pivot point for each ticker using the formula:
Pivot Point = (High + Low + Close) / 3
It continuously monitors the open, high, low, and current prices of each ticker on a 1-minute timeframe.
If any value approaches the pivot point within a configurable threshold (default: 0.25%), it triggers an alert with detailed information for all tickers meeting the criteria.
Who Should Use It:
Day Traders: Spot potential price reversal or breakout levels based on pivot point testing.
Swing Traders: Identify key levels of support and resistance to inform trading decisions.
Tech and Market Enthusiasts: Stay updated on critical price levels for major tech and market tickers.
Instructions:
Add the indicator to your chart.
Configure your webhook endpoint to receive alerts (e.g., Discord or Slack).
Monitor alerts for actionable opportunities when prices test pivot points.
Buy the Close, Sell the OpenScript de prueba para la estrategia de "Buy the Close, Sell the Open" sugerida por el master HC.
SMA trendIt's simply an SMA (Simple moving average). Set at 8 and when it changes direction it changes color. This will determine what's the trend direction.
Global M2 MonitorYoY change in M2s from US, China, Eurozone, and Japan.
US: 30% weight
China: 30% weight
Eurozone: 25% weight
Japan: 15% weight
These weights are approximations based on relative M2 sizes
Global M2 MonitorYoY change in M2s from US, China, Eurozone, and Japan.
US: 30% weight
China: 30% weight
Eurozone: 25% weight
Japan: 15% weight
These weights are approximations based on relative M2 sizes
Monday JumpThe "Monday Candles with Percentage Difference" indicator calculates the percentage difference between the opening and closing prices for each Monday and displays this difference. This indicator visually shows the user whether the price movement on Mondays is positive or negative.
PrysadaIndicatorAn indicator that shows the RSI value overlayed on the candle chart. The RSI values are inverted and can be interpreted as areas of support and resistance.
Monday Candles with Percentage Difference
The code selects Mondays and indicates the percentage change at which the market closed on those days.
GOLD H1 & H4 Candle TrackerIndikator Penanda Candle H1 & H4 adalah alat yang dirancang untuk menyoroti candle tertentu pada timeframe H1 dan H4 berdasarkan waktu tertentu, yaitu jam 07.00/08.00 dan 19.00/20.00.
Indikator ini bekerja dengan:
Memberi warna merah untuk candle jam 07.00.
Memberi warna biru untuk candle jam 19.00.
Memungkinkan penyesuaian offset waktu untuk menyesuaikan zona waktu broker dengan waktu lokal.
Indikator hanya aktif pada timeframe H1 dan H4, membantu trader mengidentifikasi candle penting pada waktu-waktu strategis untuk analisis pergerakan harga.
EMA Crossover Alerts with Trailing Stop LossThis indicator provides an alert when the 8 EMA crosses the 27 EMA. This is identical for scalping purposes.
Financials Score All Description of the "Financials Score All" Script
This Pine Script calculates a financial score for a specific stock, based on various financial metrics. The purpose is to provide a comprehensive numerical score that reflects the financial health of the stock. The score is calculated using multiple financial indicators, including profitability, valuation, debt management, and liquidity. Here’s a breakdown of what each part of the script does:
period = input.string('FQ', 'Period', options= )
FQ refers to Quarterly financial data.
FY refers to Fiscal Year financial data.
Financial Metrics:
The script uses various financial metrics to calculate the score. These are obtained via request.financial, which retrieves financial data for the stock from TradingView's database. Below are the metrics used:
opmar (Operating Margin): Measures the company's profitability as a percentage of revenue.
eps (Earnings Per Share): Represents the portion of a company's profit allocated to each outstanding share.
eps_ttm (Earnings Per Share – Trailing Twelve Months): EPS over the most recent 12 months.
pe_ratio (Price-to-Earnings Ratio): A measure of the price investors are willing to pay for a stock relative to its earnings.
pb_ratio (Price-to-Book Ratio): A valuation ratio comparing a company’s market value to its book value.
de_ratio (Debt-to-Equity Ratio): A measure of the company’s financial leverage, showing how much debt it has compared to shareholders' equity.
roe_pb (Return on Equity Adjusted to Book): Measures the company's profitability relative to its book value.
fcf_per_share (Free Cash Flow per Share): Represents the free cash flow available for dividends, debt reduction, or reinvestment, per share.
pfcf_ratio (Price-to-Free-Cash-Flow Ratio): A measure comparing a company’s market value to its free cash flow.
current_ratio (Current Ratio): A liquidity ratio that measures a company's ability to pay short-term obligations with its current assets.
RSI Calculation:
The script calculates the Relative Strength Index (RSI) for the stock using an 8-period lookback:
rsi = ta.rsi(close, 8)
Score Calculation:
The script calculates a total score by adding points based on the values of the financial metrics. Each metric is checked against a condition, and if the condition is met, the score is incremented:
If the Operating Margin (opmar) is greater than 20, the score is incremented by 20 points.
If Earnings Per Share (EPS) is positive, 10 points are added.
If the P/E ratio is between 0 and 20, 10 points are added.
If the P/B ratio is less than 3, 10 points are added.
If the Debt-to-Equity ratio is less than 0.8, 10 points are added.
If the Return on Equity Adjusted to Book is greater than 10, 10 points are added.
If the P/FCF ratio is between 0 and 15, 10 points are added.
If the Current Ratio is greater than 1.61, 10 points are added.
If the RSI is less than 35, 10 points are added.
The score is accumulated based on these conditions and stored in the total_score variable.
Displaying the Total Score:
Finally, the total score is plotted on the chart:
Summary of How It Works:
This script calculates a financial score for a stock using a variety of financial indicators. Each metric has a threshold, and when the stock meets certain criteria (for example, a good operating margin, a healthy debt-to-equity ratio, or a low P/E ratio), points are added to the overall score. The result is a single numerical value that reflects the financial health of the stock.
This score can help traders or investors identify companies with strong financials, or serve as a comparison tool between different stocks based on their financial health.
Generally >60 is the best stocks for med and long term trades
EMA Crossover Short-Only Strategy5 min timeframe for best results
and best for index only first analyse then implement your own strategy for better optimisation