Ciclos
PSP [Daye's Theory]Precision Swing Point (PSP) is a distinct technical analysis tool designed to evaluate the price action of three synchronized tickers.
Once a crack in correlation is detected, the indicator will display a shape below the candle where the divergence occurs.
© 2025 Matan Amar. All rights reserved.
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**.
Percentage Based ZigZag█ OVERVIEW
The Percentage-Based ZigZag indicator is a custom technical analysis tool designed to highlight significant price reversals while filtering out market noise. Unlike many standard zigzag tools that rely solely on fixed price moves or generic trend-following methods, this indicator uses a configurable percentage threshold to dynamically determine meaningful pivot points. This approach not only adapts to different market conditions but also helps traders distinguish between minor fluctuations and truly significant trend shifts—whether scalping on shorter timeframes or analyzing longer-term trends.
█ KEY FEATURES & ORIGINALITY
Dynamic Pivot Detection
The indicator identifies pivot points by measuring the percentage change from the previous extreme (high or low). Only when this change exceeds a user-defined threshold is a new pivot recognized. This method ensures that only substantial moves are considered, making the indicator robust in volatile or noisy markets.
Enhanced ZigZag Visualization
By connecting significant highs and lows with a continuous line, the indicator creates a clear visual map of price swings. Each pivot point is labelled with the corresponding price and the percentage change from the previous pivot, providing immediate quantitative insight into the magnitude of the move.
Trend Reversal Projections
In addition to marking completed reversals, the script computes and displays potential future reversal points based on the current trend’s momentum. This forecasting element gives traders an advanced look at possible turning points, which can be particularly useful for short-term scalping strategies.
Customizable Visual Settings
Users can tailor the appearance by:
• Setting the percentage threshold to control sensitivity.
• Customizing colors for bullish (e.g., green) and bearish (e.g., red) reversals.
• Enabling optional background color changes that visually indicate the prevailing trend.
█ UNDERLYING METHODOLOGY & CALCULATIONS
Percentage-Based Filtering
The script continuously monitors price action and calculates the relative percentage change from the last identified pivot. A new pivot is confirmed only when the price moves a preset percentage away from this pivot, ensuring that minor fluctuations do not trigger false signals.
Pivot Point Logic
The indicator tracks the highest high and the lowest low since the last pivot. When the price reverses by the required percentage from these extremes, the algorithm:
1 — Labels the point as a significant high or low.
2 — Draws a connecting line from the previous pivot to the current one.
3 — Resets the extreme-tracking for detecting the next move.
Real-Time Reversal Estimation
Building on traditional zigzag methods, the script incorporates a projection calculation. By analyzing the current trend’s strength and recent percentage moves, it estimates where a future reversal might occur, offering traders actionable foresight.
█ HOW TO USE THE INDICATOR
1 — Apply the Indicator
• Add the Percentage-Based ZigZag indicator to your trading chart.
2 — Adjust Settings for Your Market
• Percentage Move – Set a threshold that matches your trading style:
- Lower values for sensitive, high-frequency analysis (ideal for scalping).
- Higher values for filtering out noise on longer timeframes.
• Visual Customization – Choose your preferred colors for bullish and bearish signals and enable background color changes for visual trend cues.
• Reversal Projection – Enable or disable the projection feature to display potential upcoming reversal points.
3 — Interpret the Signals
• ZigZag Lines – White lines trace significant high-to-low or low-to-high movements, visually connecting key swing points.
• Pivot Labels – Each pivot is annotated with the exact price level and percentage change, providing quantitative insight into market momentum.
• Trend Projections – When enabled, projected reversal levels offer insight into where the current trend might change.
4 — Integrate with Your Trading Strategy
• Use the indicator to identify support and resistance zones derived from significant pivots.
• Combine the quantitative data (percentage changes) with your risk management strategy to set optimal stop-loss and take-profit levels.
• Experiment with different threshold settings to adapt the indicator for various instruments or market conditions.
█ CONCLUSION
The Percentage-Based ZigZag indicator goes beyond traditional trend-following tools by filtering out market noise and providing clear, quantifiable insights into price action. With its percentage threshold for pivot detection and real-time reversal projections, this original methodology and customizable feature set offer traders a versatile edge for making informed trading decisions.
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.
Order Block Signals//@version=5
indicator("Order Block Signals", overlay=true, max_lines_count=500, max_labels_count=500)
// Inputs
OB_Threshold = input.float(0.001, "OB Threshold (%)", step=0.001) / 100
Lookback = input.int(200, "Lookback Period")
min_diff = input.float(1.0, "Min Candle %", step=0.1)
max_diff = input.float(1.2, "Max Candle %", step=0.1)
tp_percent = input.float(1.3, "Take Profit %", step=0.1) / 100
sl2_percent = input.float(1.3, "Second SL %", step=0.1) / 100
// Order Block Detection
var float highRange = na
var float lowRange = na
highRange := ta.highest(high, Lookback)
lowRange := ta.lowest(low, Lookback)
Buy_OB = low >= lowRange * (1 - OB_Threshold) and low <= lowRange * (1 + OB_Threshold)
Sell_OB = high >= highRange * (1 - OB_Threshold) and high <= highRange * (1 + OB_Threshold)
// Candle Filter
candle_diff = ((high - low) / low) * 100
valid_candle = candle_diff >= min_diff and candle_diff <= max_diff
// Signal Generation
Buy_Signal = Buy_OB and valid_candle
Sell_Signal = Sell_OB and valid_candle
// Remove Excess Signals
var int lastSignal = 0
Buy_Signal := Buy_Signal and lastSignal <= 0
Sell_Signal := Sell_Signal and lastSignal >= 0
if Buy_Signal
lastSignal := 1
else if Sell_Signal
lastSignal := -1
// Price Levels
var float entryPrice = na
var float slPrice = na
var float tpPrice = na
var float sl2Price = na
if Buy_Signal
entryPrice := high
slPrice := low
tpPrice := entryPrice * (1 + tp_percent)
sl2Price := slPrice * (1 - sl2_percent)
else if Sell_Signal
entryPrice := low
slPrice := high
tpPrice := entryPrice * (1 - tp_percent)
sl2Price := slPrice * (1 + sl2_percent)
// Plotting
plot(entryPrice, "Entry", color.new(color.green, 0), 2)
plot(slPrice, "SL", color.new(color.red, 0), 2)
plot(tpPrice, "TP", color.new(color.blue, 0), 2)
plot(sl2Price, "SL2", color.new(color.orange, 0), 2)
// Enhanced Signal Markers
plotshape(Buy_Signal, style=shape.square, location=location.belowbar,
color=color.new(color.green, 0), size=size.tiny, offset=-40)
plotshape(Buy_Signal, style=shape.square, location=location.belowbar,
color=color.new(color.lime, 0), size=size.tiny, offset=-50)
plotshape(Buy_Signal, style=shape.triangleup, location=location.belowbar,
color=color.new(color.white, 0), size=size.small, offset=-45)
plotshape(Sell_Signal, style=shape.square, location=location.abovebar,
color=color.new(color.red, 0), size=size.tiny, offset=40)
plotshape(Sell_Signal, style=shape.square, location=location.abovebar,
color=color.new(color.orange, 0), size=size.tiny, offset=50)
plotshape(Sell_Signal, style=shape.triangledown, location=location.abovebar,
color=color.new(color.white, 0), size=size.small, offset=-45)
// Order Block Zones
bgcolor(Buy_OB ? color.new(color.green, 90) : na)
bgcolor(Sell_OB ? color.new(color.red, 90) : na)
// Dynamic Lines
var line entryLine = na
var line slLine = na
var line tpLine = na
var line sl2Line = na
if Buy_Signal or Sell_Signal
entryLine := line.new(bar_index, entryPrice, bar_index+1, entryPrice,
color=color.green, width=2)
slLine := line.new(bar_index, slPrice, bar_index+1, slPrice,
color=color.red, width=2)
tpLine := line.new(bar_index, tpPrice, bar_index+1, tpPrice,
color=color.blue, width=2)
sl2Line := line.new(bar_index, sl2Price, bar_index+1, sl2Price,
color=color.orange, width=2)
//@version=5
indicator("Order Block Signals - Exclusive & Dynamic", overlay=true, max_lines_count=500)
// Inputs
Lookback = input.int(200, "Lookback Period")
min_diff = input.float(1.0, "Min Candle %", step=0.1)
max_diff = input.float(1.2, "Max Candle %", step=0.1)
tp_percent = input.float(1.3, "Take Profit %", step=0.1) / 100
sl2_percent = input.float(1.3, "Second SL %", step=0.1) / 100
// Order Block Detection
var float highRange = na
var float lowRange = na
highRange := ta.highest(high, Lookback)
lowRange := ta.lowest(low, Lookback)
Buy_OB = low >= lowRange * (1 - OB_Threshold) and low <= lowRange * (1 + OB_Threshold)
Sell_OB = high >= highRange * (1 - OB_Threshold) and high <= highRange * (1 + OB_Threshold)
// Candle Filter
candle_diff = ((high - low) / low) * 100
valid_candle = candle_diff >= min_diff and candle_diff <= max_diff
// Signal Generation with Mutual Exclusivity
var int lastSignal = 0 // -1 = Sell active, 0 = Neutral, 1 = Buy active
var float entryPrice = na
var float slPrice = na
var float tpPrice = na
var float sl2Price = na
Buy_Signal = false
Sell_Signal = false
// Check for new signals
if Buy_OB and valid_candle and lastSignal <= 0
Buy_Signal := true
lastSignal := 1
entryPrice := high
slPrice := low
tpPrice := entryPrice * (1 + tp_percent)
sl2Price := slPrice * (1 - sl2_percent)
else if Sell_OB and valid_candle and lastSignal >= 0
Sell_Signal := true
lastSignal := -1
entryPrice := low
slPrice := high
tpPrice := entryPrice * (1 - tp_percent)
sl2Price := slPrice * (1 + sl2_percent)
// Check for TP/SL hit to reset signals
if lastSignal == 1 and (high >= tpPrice or low <= slPrice)
lastSignal := 0
entryPrice := na
slPrice := na
tpPrice := na
sl2Price := na
else if lastSignal == -1 and (low <= tpPrice or high >= slPrice)
lastSignal := 0
entryPrice := na
slPrice := na
tpPrice := na
sl2Price := na
// Plotting
plot(entryPrice, "Entry", color.new(color.green, 0), 2, linewidth=2)
plot(slPrice, "SL", color.new(color.red, 0), 2, linewidth=2)
plot(tpPrice, "TP", color.new(color.blue, 0), 2, linewidth=2)
plot(sl2Price, "SL2", color.new(color.orange, 0), 2, linewidth=2)
// Signal Markers
plotshape(Buy_Signal, style=shape.triangleup, location=location.belowbar,
color=color.new(color.green, 0), size=size.normal, text="BUY", textcolor=color.white)
plotshape(Sell_Signal, style=shape.triangledown, location=location.abovebar,
color=color.new(color.red, 0), size=size.normal, text="SELL", textcolor=color.white)
// Order Block Zones
bgcolor(Buy_OB ? color.new(color.green, 90) : na, title="Buy OB Zone")
bgcolor(Sell_OB ? color.new(color.red, 90) : na, title="Sell OB Zone")
// Dynamic Lines for TP/SL
var line entryLine = na
var line slLine = na
var line tpLine = na
var line sl2Line = na
if Buy_Signal or Sell_Signal
entryLine := line.new(bar_index, entryPrice, bar_index + 1, entryPrice,
color=color.new(color.green, 0), width=2)
slLine := line.new(bar_index, slPrice, bar_index + 1, slPrice,
color=color.new(color.red, 0), width=2)
tpLine := line.new(bar_index, tpPrice, bar_index + 1, tpPrice,
color=color.new(color.blue, 0), width=2)
sl2Line := line.new(bar_index, sl2Price, bar_index + 1, sl2Price,
color=color.new(color.orange, 0), width=2)
// Clear lines when position is closed
if lastSignal == 0
line.delete(entryLine)
line.delete(slLine)
line.delete(tpLine)
line.delete(sl2Line)
Order Block Signals - Exclusive & Dynamicchhayanidhaval
high bracke then buy low brack then sell 1:1 tp
Price Alert Indicator with TableIndicator Description: Price Alert Indicator with Table
The Custom Price Alert Indicator with Table is a TradingView script designed to help traders monitor and react to significant price levels during the Asian and London trading sessions. This indicator provides visual alerts and displays relevant session data in a user-friendly table format.
Key Features:
User-Defined Session Times:
Users can specify the start and end hours for both the Asian (default: 8 AM to 2 PM) and London (default: 2 PM to 8 PM) trading sessions in their local time zone.
This flexibility allows traders from different regions to customize the indicator according to their trading hours.
Real-Time Highs and Lows:
The indicator calculates and tracks the high and low prices for the Asian and London sessions in real-time.
It continuously updates these values as new price data comes in.
Touch Notification Logic:
Alerts are triggered when the price touches the session high or low points.
Notifications are designed to avoid repetition; if the London session touches the Asian high or low, subsequent touches are not alerted until the next trading day.
Interactive Table Display:
A table is presented in the bottom right corner of the chart, showing:
The Asian low and high prices
The London low and high prices
Whether each price level has been touched.
Touched levels are visually highlighted in green, making it easy for traders to identify relevant price actions.
Daily Reset of Notifications:
The notification statuses are reset at the end of the London session each day, preparing for the next day’s trading activity.
Use Cases:
Traders can utilize this indicator to stay informed about pivotal price levels during important trading sessions, aiding in decision-making and strategy development.
The clear visual representation of price levels and touch statuses helps traders quickly assess market conditions.
This indicator is particularly beneficial for day traders and those who focus on price movements around key high and low points during the trading day.
Heikin Horizon v8.4 by hajiHeikin Horizon v8.4 by haji
Heikin Horizon v8.4 is an advanced, multi-timeframe TradingView indicator that integrates sophisticated Heikin Ashi analysis with dynamic pattern recognition, comprehensive backtesting statistics, and an intuitive trade helper module. Designed for advanced traders, this all-in-one tool provides a detailed, top‐down view of market trends alongside actionable insights to refine your trading strategy.
Key Features:
Multi-Timeframe Heikin Ashi Analysis:
Leverages Heikin Ashi data from a wide range of timeframes—from intraday (1-second, 1-minute, etc.) to daily charts—to offer a comprehensive picture of market momentum and trend direction.
Dynamic Trend Pattern Recognition:
Automatically identifies and displays current, previous, or custom candlestick patterns based on the color-coded Heikin Ashi candles. Visual trend squares and detailed tables help you quickly assess market conditions and potential shifts.
Robust Backtesting and Statistical Insights:
Runs extensive historical tests over user-defined samples, calculating key performance metrics such as win rate, expected value, average price change, and more. Detailed outcome tables break down all possible results, enabling you to evaluate the effectiveness of each pattern.
Comprehensive Trade Helper Module:
Provides trade direction bias (BUY/SELL) based on multiple factors—including expected move, win rate, profit factor, and trend consistency—while offering both manual and automatic risk management for setting stop loss and take profit levels.
Customizable On-Screen Display:
Multiple, configurable tables (pattern display, previous trends, multi-timeframe analysis, outcomes, detailed history, and trade helper) allow you to tailor the visual layout to your specific needs and preferred chart positions.
Access Control for Advanced Features:
A built-in locking mechanism secures advanced functionalities, ensuring that only users with the proper access password can activate sensitive settings.
How It Works:
Heikin Horizon v8.4 continuously processes Heikin Ashi data across multiple timeframes to generate a layered analysis of market trends. By comparing candle colors and patterns, it identifies consolidation areas and trend shifts, then quantifies these observations through rigorous backtesting. The resulting statistics—ranging from win rate and average candle sizes to expected move calculations—feed into a trade helper module that highlights potential trade setups and risk parameters, all displayed via customizable on-chart panels.
Whether you’re fine-tuning your short-term entries or developing a robust long-term strategy, Heikin Horizon v8.4 delivers an in-depth analytical framework to help you make more informed trading decisions.
Anari Gold Circuit BacktestUses Neural net weights from a trained strategy. Volume, price, time, and value area high/low go into the decision making.
HMA Hidden Signals (1H Optimized)HMA və Repainting
HMA-nın təbiəti: HMA, WMA (Weighted Moving Average) hesablamalarına əsaslanır və nəzəri olaraq "repainting" etmir, çünki o, cari çubuğun bağlanmasını gözləyir və keçmiş məlumatlara əsaslanaraq hesablanır. Yəni, bir çubuk bağlandıqdan sonra HMA dəyəri dəyişmir — bu, onu "non-repainting" edir.
Sənin skriptin: Skriptdə ta.crossover və ta.crossunder funksiyaları istifadə olunur ki, bunlar da cari və əvvəlki HMA dəyərlərini müqayisə edir (hma və prevHma). Bu funksiyalar da keçmişdəki dəyərləri dəyişdirmir, sadəcə mövcud məlumatlara əsaslanaraq siqnal yaradır.
Həcm Filtri
Skriptdə həcm filtiri (volumeConfirmed = volume > volumeMa * 1.2) də var. Bu da real vaxtda hesablanan SMA (Simple Moving Average) istifadə edir və keçmiş çubukların dəyərlərini dəyişdirmir. Həcm də cari çubuğun bağlanmasına əsaslanır, ona görə də burada da "repainting" problemi yoxdur.
Nəticə
Bu skript "non-repainting"dir. Çünki:
HMA dəyərləri çubuk bağlandıqdan sonra dəyişmir.
Siqnallar (crossover və crossunder) yalnız cari və əvvəlki çubukların sabit dəyərlərinə əsaslanır.
Həcm filtiri də keçmişdəki məlumatları yenidən çəkmir.
Əlavə Qeyd
Əgər sən "non-repainting" olmasını təmin etmək üçün əlavə yoxlama istəyirsənsə, skripti test edə bilərsən: Tarixi məlumatlarda siqnalların yerindən oynayıb-oynamadığına bax. Amma kodun strukturuna görə, bu indikator yenidən çəkilməməlidir. Başqa sualın varsa, soruş!
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.
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.
Rounded Levels: Big-Figure, Mid-Figure, 80-20 levelsjust changed to custom pip spacing. I did nothing else. thank you to whoever made this first
TA Monks Sessions + NewsColor candles based on UTC+0 market sessions
Show inside bars
Show forex factory news on the chart as vertical lines for future news, red dots for past news and toggle visibility of weekly and daily news on the chart
Display current session on top left
[COG]TMS Crossfire 🔍 TMS Crossfire: Guide to Parameters
📊 Core Parameters
🔸 Stochastic Settings (K, D, Period)
- **What it does**: These control how the first stochastic oscillator works. Think of it as measuring momentum speed.
- **K**: Determines how smooth the main stochastic line is. Lower values (1-3) react quickly, higher values (3-9) are smoother.
- **D**: Controls the smoothness of the signal line. Usually kept equal to or slightly higher than K.
- **Period**: How many candles are used to calculate the stochastic. Standard is 14 days, lower for faster signals.
- **For beginners**: Start with the defaults (K:3, D:3, Period:14) until you understand how they work.
🔸 Second Stochastic (K2, D2, Period2)
- **What it does**: Creates a second, independent stochastic for stronger confirmation.
- **How to use**: Can be set identical to the first one, or with slightly different values for dual confirmation.
- **For beginners**: Start with the same values as the first stochastic, then experiment.
🔸 RSI Length
- **What it does**: Controls the period for the RSI calculation, which measures buying/selling pressure.
- **Lower values** (7-9): More sensitive, good for short-term trading
- **Higher values** (14-21): More stable, better for swing trading
- **For beginners**: The default of 11 is a good balance between speed and reliability.
🔸 Cross Level
- **What it does**: The centerline where crosses generate signals (default is 50).
- **Traditional levels**: Stochastics typically use 20/80, but 50 works well for this combined indicator.
- **For beginners**: Keep at 50 to focus on trend following strategies.
🔸 Source
- **What it does**: Determines which price data is used for calculations.
- **Common options**:
- Close: Most common and reliable
- Open: Less common
- High/Low: Used for specialized indicators
- **For beginners**: Stick with "close" as it's most commonly used and reliable.
🎨 Visual Theme Settings
🔸 Bullish/Bearish Main
- **What it does**: Sets the overall color scheme for bullish (up) and bearish (down) movements.
- **For beginners**: Green for bullish and red for bearish is intuitive, but choose any colors that are easy for you to distinguish.
🔸 Bullish/Bearish Entry
- **What it does**: Colors for the entry signals shown directly on the chart.
- **For beginners**: Use bright, attention-grabbing colors that stand out from your chart background.
🌈 Line Colors
🔸 K1, K2, RSI (Bullish/Bearish)
- **What it does**: Controls the colors of each indicator line based on market direction.
- **For beginners**: Use different colors for each line so you can quickly identify which line is which.
⏱️ HTF (Higher Timeframe) Settings
🔸 HTF Timeframe
- **What it does**: Sets which higher timeframe to use for filtering (e.g., 240 = 4 hour chart).
- **How to choose**: Should be at least 4x your current chart timeframe (e.g., if trading on 15min, use 60min or higher).
- **For beginners**: Start with a timeframe 4x higher than your trading chart.
🔸 Use HTF Filter
- **What it does**: Toggles whether the higher timeframe filter is applied or not.
- **For beginners**: Keep enabled to reduce false signals, especially when learning.
🔸 HTF Confirmation Bars
- **What it does**: How many bars must confirm a trend change on higher timeframe.
- **Higher values**: More reliable but slower to react
- **Lower values**: Faster signals but more false positives
- **For beginners**: Start with 2-3 bars for a good balance.
📈 EMA Settings
🔸 Use EMA Filter
- **What it does**: Toggles price filtering with an Exponential Moving Average.
- **For beginners**: Keep enabled for better trend confirmation.
🔸 EMA Period
- **What it does**: Length of the EMA for filtering (shorter = faster reactions).
- **Common values**:
- 5-13: Short-term trends
- 21-50: Medium-term trends
- 100-200: Long-term trends
- **For beginners**: 5-10 is good for short-term trading, 21 for swing trading.
🔸 EMA Offset
- **What it does**: Shifts the EMA forward or backward on the chart.
- **For beginners**: Start with 0 and adjust only if needed for visual clarity.
🔸 Show EMA on Chart
- **What it does**: Toggles whether the EMA appears on your main price chart.
- **For beginners**: Keep enabled to see how price relates to the EMA.
🔸 EMA Color, Style, Width, Transparency
- **What it does**: Customizes how the EMA line looks on your chart.
- **For beginners**: Choose settings that make the EMA visible but not distracting.
🌊 Trend Filter Settings
🔸 Use EMA Trend Filter
- **What it does**: Enables a multi-EMA system that defines the overall market trend.
- **For beginners**: Keep enabled for stronger trend confirmation.
🔸 Show Trend EMAs
- **What it does**: Toggles visibility of the trend EMAs on your chart.
- **For beginners**: Enable to see how price moves relative to multiple EMAs.
🔸 EMA Line Thickness
- **What it does**: Controls how the thickness of EMA lines is determined.
- **Options**:
- Uniform: All EMAs have the same thickness
- Variable: Each EMA has its own custom thickness
- Hierarchical: Automatically sized based on period (longer periods = thicker)
- **For beginners**: "Hierarchical" is most intuitive as longer-term EMAs appear more dominant.
🔸 EMA Line Style
- **What it does**: Sets the line style (solid, dotted, dashed) for all EMAs.
- **For beginners**: "Solid" is usually clearest unless you have many lines overlapping.
🎭 Trend Filter Colors/Width
🔸 EMA Colors (8, 21, 34, 55)
- **What it does**: Sets the color for each individual trend EMA.
- **For beginners**: Use a logical progression (e.g., shorter EMAs brighter, longer EMAs darker).
🔸 EMA Width Settings
- **What it does**: Controls the thickness of each EMA line.
- **For beginners**: Thicker lines for longer EMAs make them easier to distinguish.
🔔 How These Parameters Work Together
The power of this indicator comes from how these components interact:
1. **Base Oscillator**: The stochastic and RSI components create the main oscillator
2. **HTF Filter**: The higher timeframe filter prevents trading against larger trends
3. **EMA Filter**: The EMA filter confirms signals with price action
4. **Trend System**: The multi-EMA system identifies the overall market environment
Think of it as multiple layers of confirmation, each adding more reliability to your trading signals.
💡 Tips for Beginners
1. **Start with defaults**: Use the default settings first and understand what each element does
2. **One change at a time**: When customizing, change only one parameter at a time
3. **Keep notes**: Write down how each change affects your results
4. **Backtest thoroughly**: Test any changes on historical data before trading real money
5. **Less is more**: Sometimes simpler settings work better than complicated ones
Remember, no indicator is perfect - always combine this with proper risk management and other forms of analysis!
AMPAS StrategyAn "Anti-Manipulation" price action strategy aims to identify and avoid trading situations where a security's price is being artificially influenced by large market players, often through tactics like "pump and dump" schemes, by focusing heavily on analyzing price patterns, volume, and key support and resistance levels to identify potential manipulation signs before making trading decisions.
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.