15-Year Seasonality ChartThis is 15 years seasonality line chat to help you make informed decision on your trading
Cycles
Selic x Précomparar Selci com Pré de 3 anos
é o primeiro grafico que estou fazendo, teste, aprendendo
Relative Strength Index with Buy/Sell Signalsrsi ema wma
lenh buy khi thoa man dong thời, rsi ,ema wma của khung đang chạy và rsi h1 lớn hơn wma h1
lenh buy khi thoa man dong thời, rsi ,ema wma của khung đang chạy và rsi h1 nhỏ hon hơn wma h1
Galactic Momentum Flux SignalsMomentum Flux:
Measures the acceleration of price momentum (second derivative of price). A high positive flux means the "spaceship" is blasting off, while a negative flux signals a crash.
Threshold (e.g., 1.5) filters out weak moves.
Volatility Gravity:
Uses the Average True Range (ATR) normalized to price to detect when the market’s "gravitational field" is strong (high volatility = strong trend).
Only trades when gravity exceeds the threshold, avoiding choppy markets.
Cosmic Alignment:
A creative twist: simulates a lunar cycle using a sine wave over a 28-bar period (adjustable). Trades align with "waxing" (rising) phases for longs and "waning" (falling) phases for shorts.
This adds a rhythmic filter, mimicking how celestial events might influence human behavior or market psychology.
Entry Rules:
Long: Momentum accelerates upward (flux > 1.5), volatility is high (gravity > 0.8), and the lunar phase is waxing.
Short: Momentum accelerates downward (flux < -1.5), volatility is high, and the lunar phase is waning.
Exit Rules:
Close when momentum reverses (flux crosses zero) or volatility drops too low (gravity weakens), indicating the trend is losing steam.
Why It’s "Out of This World"
Unconventional Metrics: Combining second-order momentum (flux) with normalized volatility is rare and catches explosive moves early.
Celestial Twist: The lunar cycle filter is a wild card—while not literally tied to the moon, it introduces a cyclical timing mechanism that’s unique and could resonate with market rhythms.
Adaptive: The strategy thrives in trending markets (high gravity) and avoids sideways traps, making it potentially more effective than standard oscillators.
Volume Percentage//@version=5
indicator("Volume Percentage", overlay=false)
// Input for the length of the period to calculate average volume
length = input.int(20, title="Average Volume Length", minval=1)
// Calculate the average volume over the specified length
avg_volume = ta.sma(volume, length)
// Calculate the volume percentage
volume_percent = (volume / avg_volume) * 100
// Plot the volume percentage
plot(volume_percent, title="Volume %", color=color.blue, linewidth=2)
// Optional: Add a horizontal line for 100% (baseline)
hline(100, title="100% Baseline", color=color.gray, linestyle=hline.style_dotted)
// Display the volume percentage value on the chart
label_text = "Vol %: " + str.tostring(volume_percent, "#.##") + "%"
label.new(bar_index, volume_percent, label_text, style=label.style_label_down, color=color.blue, textcolor=color.white)
BTC/Gold Ratio Price ChartThis Chart Runs on top of any Price chart, displaying the ration between Bitcoin and Gold.
Grok was the writer, I, Felipe Robayo, was the prompter, tester and reporter to Grok to emit a new script, and now the publisher.
We also wrote the BTC/Gold Ratio as well as the Gold/BTC Ratio.
You can find those as well.
Dynamic Breakout Master by tradingbauhaus 🌟 Code Description:
This Pine Script implements a trading strategy called "Dynamic Breakout Master" 💥. The core idea of the strategy is to identify breakouts (price movements) at key support 💙 and resistance 🔴 levels, through a dynamic channel that adapts to the market’s conditions. Here's how it works:
🔧 Customizable Input Parameters:
🧭 Pivot Period: This defines the number of bars (candles) to the left and right used to detect pivots (highs and lows) that mark the support and resistance zones.
📊 Data Source: You can choose whether to use highs and lows or closes and opens of the candles to identify the pivots.
📏 Max Channel Width: Specifies the maximum width allowed for the support/resistance channel, expressed as a percentage over the last 300 bars.
💪 Minimum Pivot Strength: This defines the minimum number of pivots needed for a support or resistance level to be considered valid.
🏔 Max Support/Resistance Zones: Limits the number of key zones displayed on the chart.
📅 Lookback Period: Adjusts how many bars back the system should check to find and validate support and resistance levels.
🎨 Custom Colors: You can choose colors for the support, resistance, and in-channel zones.
📉 Moving Averages (MA): The strategy allows adding up to two moving averages (SMA or EMA) to assist in making trading decisions.
📊 Calculating Support/Resistance Levels:
The system uses an algorithm to identify pivots from prices and calculates dynamic support and resistance zones 🔒🔓.
The closer the pivots are and the stronger their influence, the more relevant the zone becomes for the strategy.
The dynamic channel is drawn on the chart, with a maximum width limit for these zones defined by the input parameter.
📈 Trading Logic:
🚀 Identifying Breakouts:
The strategy looks for when the price breaks (breakouts) a resistance or support level.
If the price breaks upward through the resistance level, a buy order 📈 is triggered.
If the price breaks downward through the support level, a sell order 📉 is triggered.
🔔 Alerts:
Resistance Break (ResBreak) and Support Break (SupBreak) alerts are configured to notify users when a significant breakout occurs.
💰 Commissions:
The strategy includes a commission (0.1%) to simulate transaction costs for each trade.
📊 Chart Visualization:
The support and resistance zones are displayed as colored rectangles:
🔴 Resistance (red) and
🔵 Support (blue).
Pivots of support and resistance can be labeled as P (for resistance) and V (for support).
Breakouts of support or resistance levels are marked with triangles that appear on the chart 🔺🔻.
📈 Trading Strategy:
If the price breaks upward through the resistance level, a long position (buy) 📈 is opened.
If the price breaks downward through the support level, a short position (sell) 📉 is opened.
🏆 Conclusion:
This script is a dynamic breakout strategy 💥 that allows traders to capture significant price movements when support or resistance channels break. The customizable parameters let users fine-tune the strategy according to their preferences, while the visual alerts on the chart make it easier to follow trading opportunities. The inclusion of moving averages and key price zones adds an extra layer of analysis to improve decision-making 💡.
Bauhaus Reversal MasterWelcome to the Bauhaus Reversal Master!
A Pine Script (v6) creation for TradingView that detects market reversals using classic candlestick patterns. Think of yourself as a chart detective—this script does the heavy lifting by spotting signals, labeling them, and running an automated trading strategy with built-in risk management.
🔍 What Does This Script Do?
Identifies Candlestick Patterns: Recognizes formations like Hammer Time, Falling Star, Bullish Munch, and more.
Confirms the Trend: Uses stochastic to ensure patterns appear in extreme zones (overbought/oversold), increasing reliability.
Automates Trading: Places buy/sell orders with predefined risk parameters.
Labels the Chart: Displays clear tags (e.g., "HAM" or "STAR") for instant visualization.
Manages Risk: Calculates risk and reward based on market volatility (ATR-based).
It’s like having a trading assistant with precision and style! 🎯
🛠 How It Works: Step by Step
1️⃣ Setup (Control Panel)
Capital Allocation: Bets 10% per trade (adjustable).
Commission: Default 0.1% per trade (modifiable for your broker).
Custom Options:
ATR Period: Measures volatility (default 14 bars).
Profit & Loss: Multipliers for Take Profit (1.5x ATR) & Stop Loss (1x ATR).
Trend Lookback: Number of candles analyzed (default 14).
Reversal Threshold: Overbought/Oversold levels (default 80).
Smoothing Factor: Helps reduce noise (default 20).
2️⃣ Candlestick Patterns (The Stars of the Show)
📈 Bullish Patterns (Buy Signals)
Hammer Time: Long lower wick in a downtrend.
Inverted Hammer: Long upper wick in a downtrend.
Bullish Munch: A big green candle swallowing a red one.
Tweezer Bottom: Two candles with identical lows, one red, one green.
📉 Bearish Patterns (Sell Signals)
Hanging Man: A hammer-like candle but in an uptrend.
Falling Star: Long upper wick in an uptrend.
Bearish Gobble: A big red candle engulfing a green one.
Tweezer Top: Two candles with identical highs, one green, one red.
✅ Each pattern can be toggled ON/OFF.
3️⃣ Trend Confirmation (The Filter)
Uses stochastic (kTrend) to detect extreme market conditions:
Overbought (>80) → Bearish Zone
Oversold (<20) → Bullish Zone
Averages it (smoothK) to filter out false signals.
Buys only in bearish zones, sells only in bullish zones.
4️⃣ Candlestick Math (For Nerds 🤓)
Breaks each candle into:
Body
Upper Wick
Lower Wick
Measures proportions of each to detect valid patterns.
5️⃣ Risk & Reward (Your Money’s Bodyguard)
Uses ATR (atrVal) to set dynamic profit & loss levels:
Buy Trade:
Take Profit = Price + (ATR × 1.5)
Stop Loss = Price - (ATR × 1)
Sell Trade:
Take Profit = Price - (ATR × 1.5)
Stop Loss = Price + (ATR × 1)
Ensures a Risk/Reward Ratio favoring larger wins over losses.
6️⃣ Execution (Let’s Trade!)
Spots a bullish pattern? Places a Buy Order (GoLong).
Detects a bearish pattern? Places a Sell Order (GoShort).
Exits automatically at Take Profit or Stop Loss.
7️⃣ Chart Labels (Visual Cues)
Displays clear signals:
Bullish: "HAM" (hammer), "INV" (inverted hammer), "BULL" (bullish engulfing), "TWZB" (tweezer bottom) → Green Labels
Bearish: "STAR" (shooting star), "HANG" (hanging man), "BEAR" (bearish engulfing), "TWZT" (tweezer top) → Red Labels
📊 Why Use This Script?
✅ Automated Trading – Execute trades on TradingView effortlessly.✅ Visual Insights – Labels help identify patterns instantly.✅ Backtesting – Simulate past performance (e.g., starting with $10,000).✅ Customizable – Modify settings for risk, market type (stocks, forex, crypto), and strategy.
💡 Pro Tips for Users
Test Before Trading – Run TradingView’s backtest to evaluate performance.
Adjust Risk Settings – Increase Stop Loss or lower Take Profit in volatile markets.
Choose the Right Timeframe – Works best on H1 (1-hour) and H4 (4-hour) charts.
Match Commissions – Set the commission rate to match your broker’s fees.
Use Additional Analysis – Patterns aren’t 100% reliable; combine this with your own insights.
Pyramid of Gann FieldThis is the Secret Sauce. indicator based on the Pyramid of Gann Field involves translating the concepts from the pyramid.
The pyramid you've shared outlines different levels of analysis:
LOV (Law of Vibration): This might relate to the fundamental principles of market movement.
Squares: Refers to Gann Squares, which are used to predict support and resistance levels.
Cycles + Time Factors: Involves identifying repeating patterns over time.
Natal Charts: Could relate to the initial conditions of a market or security at a specific point in time.
Aspects + Eclipses: This might involve astrological aspects and their influence on market trends.
Short Screener: Declining EPSWhat This Script Does
🔹 Screens for Shorting Opportunities
🔹 Checks if EPS is declining (Current < Next Year)
🔹 Confirms Downtrend (Price < SMA 200)
🔹 Uses RSI & MACD for Bearish Signals
🔹 Checks Debt-to-Equity (> 1.5)
Vertical Lines at Specific Times### **Script Description**
This **Pine Script v6** indicator for **TradingView** plots **vertical dotted lines** at user-specified times, marking key time ranges during the day. It is designed to help traders visually track market movements within specific timeframes.
#### **Features:**
✔ **Custom Timeframes:**
- Two separate time ranges can be defined:
- **Morning Session:** (Default: 9 AM - 10 AM, New York Time)
- **Evening Session:** (Default: 9 PM - 10 PM, New York Time)
✔ **Adjustable Line Properties:**
- **Line Width:** Users can change the thickness of the vertical lines.
- **Line Colors:** Users can select different colors for morning and evening session lines.
✔ **New York Local Time Support:**
- Ensures that the vertical lines appear correctly based on **Eastern Time (ET)**.
✔ **Full-Height Vertical Lines:**
- Lines extend across the **entire chart**, from the highest high to the lowest low, for clear visibility.
- Uses **dotted line style** to avoid cluttering the chart.
#### **How It Works:**
1. The script retrieves the **current date** (year, month, day) in **New York time**.
2. Converts the **user-defined input times** into **timestamps** for accurate placement.
3. When the current time matches a specified session time, a **dotted vertical line** is drawn.
4. The script **repeats this process daily**, ensuring automatic updates.
#### **Customization Options (Inputs):**
- **Morning Start & End Time** (Default: 9 AM - 10 AM)
- **Evening Start & End Time** (Default: 9 PM - 10 PM)
- **Line Width** (Default: 2)
- **Morning Line Color** (Default: Blue)
- **Evening Line Color** (Default: Green)
#### **Use Case Scenarios:**
📈 Marking market **open & close** hours.
📊 Highlighting **key trading sessions** for day traders.
🔎 Identifying time-based **price action patterns**.
Global Liquidity Indicator in USDThis indicator aggregates the total central bank balance sheets and M2 money supply for the USA, Canada, China, European Union, Japan, and the UK, converting all values to USD and normalizing them to trillions for easy visualization. It plots three lines: Total Balance Sheet, Total M2, and Combined Total, providing a comprehensive view of global liquidity trends.
Key Features:
Dynamic Coloring: Customize line colors based on direction—green for upward trends, red for downward (or any colors you choose), with independent on/off toggles for each line.
Real-Time Currency Conversion: Uses live forex rates (e.g., USD/CNY, USD/EUR) for accurate USD conversions.
Smart Tracing [t.me/HolyGrailClub] v0.2aSmart Tracing v0.2a is a composite forecast indicator inspired by WD Gann methodology. It aggregates historical price moves from user-defined time ranges by calculating the change from each range’s initial close, then averages these deltas to project a future forecast line starting at a specified time. Licensed for non-commercial use.
Anari Gold Circuit BacktestUses Neural net weights from a trained strategy. Volume, price, time, and value area high/low go into the decision making.
Cycle Finder with Polynomial RegressionBelow is a detailed description of the "Cycle Finder with Polynomial Regression" script:
---
**Overview**
This TradingView indicator is designed to reveal the cyclical behavior of a stock’s price performance over the course of a year. It aggregates historical weekly data—specifically, the percentage change from the start-of-year price—and then applies a quadratic (degree‑2) polynomial regression to smooth out the cycle, especially addressing the abrupt drop at the start of each new year.
---
**Key Components**
1. **Data Aggregation Across Years**
- **Year Initialization:**
At the start of each year, the indicator records the opening price as a baseline (i.e., the first trading day’s price for that year).
- **Weekly Calculation:**
For each completed week, it calculates the percentage change from the recorded year-open to the close of the last bar in that week. This calculation is performed for every year, and the results are stored in persistent arrays that hold cumulative sums and counts for each week (from week 1 to week 53).
2. **Raw Weekly Average Move**
- For any given week (based on the current week number), the script computes the average percentage move. This "raw" average is obtained by dividing the cumulative sum of weekly moves by the number of years that have data for that week.
- This raw average represents the unadjusted, historical average performance of the stock for that particular week relative to the start-of-year price.
3. **Polynomial Regression for Smoothing**
- **Purpose:**
Because the raw cycle data resets at the start of each new year (often resulting in an abrupt drop to zero), the script employs polynomial regression to create a smooth, continuous cycle.
- **Method:**
It fits a quadratic polynomial (i.e., \( y = a_0 + a_1x + a_2x^2 \)) to the set of average weekly moves across weeks 1 to 53.
- It accumulates the necessary sums (e.g., sum of week indices, squares, cubes, etc.) for all weeks with available data.
- These sums are used to solve the normal equations for quadratic regression, yielding coefficients that define the best-fit curve.
- **Evaluation:**
The polynomial is then evaluated at the current week number to provide a smoothed cycle value that transitions seamlessly across the year boundary.
4. **Plotting the Indicator**
- **Smoothed Cycle Curve (Blue):**
The indicator plots the output of the polynomial regression, which represents the smoothed cyclical pattern of the stock’s price move relative to the start of the year.
- **Raw Data Points (Red, Optional):**
For reference, the script can also plot the raw weekly average moves as red markers. This allows you to compare the underlying historical data with the smoothed regression curve.
---
**Usage and Benefits**
- **Visualizing Cycles:**
By plotting a smooth, continuous curve that represents average weekly performance over many years, traders can better visualize seasonal or cyclical patterns in the stock’s price behavior.
- **Smoothing Transitions:**
The polynomial regression mitigates the sharp drop at the beginning of a new year, offering a more realistic view of how the cycle evolves continuously throughout the year.
- **Adaptable to Any Ticker:**
The indicator automatically uses the primary ticker symbol on the chart, making it versatile and applicable across different stocks without further configuration.
---
**Conclusion**
This script is a powerful tool for analyzing cyclical trends in stock performance. It takes a straightforward approach—calculating weekly percentage moves from the year's start, aggregating historical data, and then applying a quadratic regression to smooth the results—making it easier to identify recurring patterns that may inform trading decisions.
---
Feel free to adjust the polynomial degree or refine the aggregation method based on your specific analysis needs.
Bar Count - WBBar Count for futures day trading. It counts bars from 6:30 am (PST) to 1:10 pm (PST) resulting in 1..81 bars. Folks can use it to understand open, middle, and ending candles and ranges for the day trading sessions.
RIFMA - Ruiz Icochea Fibonacci MA"RIFMA, created by Pharaoh BRC-20, is a powerful technical analysis tool harnessing Fibonacci sequence-aligned moving averages (5, 8, 13, 21, 55, 89, 144, 233, 377, 610, 987, 1597). Designed for precision, it dynamically adjusts colors—vivid green for short periods, transitioning through red to deep brown for longer ones—reflecting trends against a dark backdrop. With thin lines for short-term MAs and thicker ones for long-term, RIFMA excels at identifying trends, supports, and resistances across any market. Optimized for TradingView, it’s an essential companion for traders seeking clarity and actionable insights in their charts."
Cycle & Quarter Indicator//@version=5
indicator("Cycle & Quarter Indicator", overlay=true)
// Configuração inicial
timeframeInMinutes = 90 // Ciclo principal de 1h30m
quarterInMinutes = 22.5 // Cada quarter dentro do ciclo
startHour = 7 // Hora inicial do primeiro ciclo
startTime = timestamp(year(time), month(time), dayofmonth(time), startHour, 0)
// Calcula o tempo do ciclo e dos quarters
cycleOffset = timeframeInMinutes * 60 * 1000 // Converte para milissegundos
quarterOffset = quarterInMinutes * 60 * 1000 // Converte para milissegundos
// Cores
defaultCycleColor = color.blue
defaultQuarterColor = color.gray
defaultLabelColor = color.white
// Variável de tempo atual
var float lastCycleTime = na
// Plota ciclos principais
if bar_index > 0 and na(lastCycleTime)
lastCycleTime := startTime
while lastCycleTime < time
line.new(x1=int(lastCycleTime), y1=high, x2=int(lastCycleTime), y2=low, width=2, color=defaultCycleColor)
// Plota os quarters dentro do ciclo
for j = 1 to 4
quarterTime = lastCycleTime + j * quarterOffset
if quarterTime < time
line.new(x1=int(quarterTime), y1=high, x2=int(quarterTime), y2=low, width=1, color=defaultQuarterColor)
label.new(x=int(quarterTime), y=high, text="Q" + str.tostring(j), color=defaultLabelColor, textcolor=color.black, size=size.small, yloc=yloc.abovebar)
lastCycleTime := lastCycleTime + cycleOffset
Nobitadqt trading systemXác nhận có quán tính hoặc cấu trúc đỉnh đáy
Xác định xu hướng chính trên khung D1/D2
Điều kiện vào lệnh Long & Short
3D Clock | Live Time [CHE] Presentation: 3D Clock | Live Time
Slide 1 – Title & Introduction
🔹 Title: *3D Clock | Live Time *
🔹 Technology: TradingView Pine Script (Version 6)
🔹 Purpose:
✔️ A visually appealing 3D clock indicator displaying live time in real-time.
✔️ Customizable clock face, hands, colors, and time zones for a unique trading experience.
✔️ A cutting-edge tool for traders who value both functionality and aesthetics.
Slide 2 – The Power of a 3D Clock in Trading
💡 Why do traders need a 3D clock?
✔️ Time awareness: Know the exact moment markets open, close, or react to news.
✔️ Visual clarity: A dynamic and easy-to-read display enhances market timing strategies.
✔️ Customization & personalization: Make it fit your unique trading style!
🚀 Stand out with a beautifully designed, interactive clock while keeping precision at your fingertips!
Slide 3 – Fully Customizable Input Parameters
🎨 Personalize your trading clock!
✔️ Clock Size (`CLOCK_RADIUS`): From 50 to 500 pixels for ultimate flexibility.
✔️ Camera Angle (`CAMERA_ANGLE`): Adjust from 0° (top-down) to 90° (flat-side) for the best perspective.
✔️ Resolution (`SEGMENTS`): Up to 64 segments for a smooth and detailed clock face.
💡 Your clock, your way – optimized for any screen and trading setup!
Slide 4 – Custom Hands & Colors for Maximum Visibility
⏳ Perfectly Calibrated Hands:
✔️ Hour Hand Length (`HOUR_HAND_LENGTH`) – 10 to 200 pixels.
✔️ Minute Hand Length (`MINUTE_HAND_LENGTH`) – 10 to 200 pixels.
✔️ Second Hand Length (`SECOND_HAND_LENGTH`) – 10 to 200 pixels.
🎨 Color Customization:
✔️ Clock Face (`CLOCK_COLOR`) – Choose your preferred tone.
✔️ Hour Hand (`HOUR_COLOR`) – Default: 🔴 Red (can be changed).
✔️ Minute Hand (`MINUTE_COLOR`) – Default: 🟢 Green (can be changed).
✔️ Second Hand (`SECOND_COLOR`) – Default: 🟡 Yellow (can be changed).
🚀 Enhance clarity and style—match the clock to your trading theme!
Slide 5 – Advanced Time Zone & DST Support
🌍 Trade in any time zone, effortlessly!
✔️ Select from 24 time zones – from New York to Tokyo to London.
✔️ Enable Daylight Saving Time (DST) with just one click.
✔️ Stay in sync with global markets without manually adjusting your clock!
💡 Never miss a trade due to incorrect time settings again!
Slide 6 – Cutting-Edge 3D Visualization
🖥️ How does it work?
✔️ Real-time 3D rendering: Simulates depth & perspective for an authentic look.
✔️ Mathematical precision: Uses trigonometric calculations for accurate rotation.
✔️ Dynamic perspective adjustment: Rotate and scale for the best viewing angle.
💡 A next-level, interactive experience for traders who demand excellence!
Slide 7 – Smart Labeling & Digital Time Display
🕒 Stay focused with clear hour markers!
✔️ Hour Labels (`LABEL_SIZE`) – Small, Normal, Large, Huge.
✔️ Digital Time Display (`DIGITAL_SIZE`) – Keep track of HH:MM:SS at a glance.
✔️ Custom Vertical Offset (`DIGITAL_OFFSET`) – Adjust the digital time position.
🚀 Designed for readability, clarity, and precision!
Slide 8 – Seamless Integration with Your TradingView Setup
✔️ Works flawlessly with all TradingView charts.
✔️ Adjustable scaling and overlay options for a clutter-free interface.
✔️ Enhances professional and beginner traders' experiences alike.
💡 Your trading environment should be as powerful as your strategy!
Slide 9 – The Future of Time Visualization in Trading
✅ Precision-engineered for professional traders.
✅ Highly customizable to match any trading workflow.
✅ Designed to keep you ahead of the market—always on time.
🚀 Take your trading to the next level with the ultimate 3D clock!
💡 Available now – integrate it into your TradingView setup today!
Slide 10 – Questions & Next Steps
❓ Want a custom version for your strategy?
📩 Let’s discuss how this can be tailored for your needs!
🌍 Join the future of trading tools – upgrade your TradingView experience today!
🔥 3D Clock | Live Time – The Ultimate Timekeeping Solution for Traders!
This sales-oriented presentation highlights the benefits, features, and real-world impact of your 3D Trading Clock, making it an attractive solution for traders looking for precision, style, and functionality. 🚀