Breakout & Breakdown Detector with CPRwhwn a break out is indicated enter into a buy position and whwn breakdown is indicated exit trade
Cicli
Weekday Labels with Infinite Vertical LinesThis indicator is 2 part of "Daily Separator with Day". Add this indicator for open all adventage this 2 indicator
Daily Separator with Daythis indicator about vertical lines at weekly days. Add at chart a 2 part of this indicator - Weekdays Labels to have all advantages this indicator
ISSU_LevelMonthly, weekly, daily level
Quarter session
EMA 20,50
Daily close level
IST 10:30am Level
Enhanced Range Filter Strategy with ATR TP/SLBuilt by Omotola
## **Enhanced Range Filter Strategy: A Comprehensive Overview**
### **1. Introduction**
The **Enhanced Range Filter Strategy** is a powerful technical trading system designed to identify high-probability trading opportunities while filtering out market noise. It utilizes **range-based trend filtering**, **momentum confirmation**, and **volatility-based risk management** to generate precise entry and exit signals. This strategy is particularly useful for traders who aim to capitalize on trend-following setups while avoiding choppy, ranging market conditions.
---
### **2. Key Components of the Strategy**
#### **A. Range Filter (Trend Determination)**
- The **Range Filter** smooths price fluctuations and helps identify clear trends.
- It calculates an **adjusted price range** based on a **sampling period** and a **multiplier**, ensuring a dynamic trend-following approach.
- **Uptrends:** When the current price is above the range filter and the trend is strengthening.
- **Downtrends:** When the price falls below the range filter and momentum confirms the move.
#### **B. RSI (Relative Strength Index) as Momentum Confirmation**
- RSI is used to **filter out weak trades** and prevent entries during overbought/oversold conditions.
- **Buy Signals:** RSI is above a certain threshold (e.g., 50) in an uptrend.
- **Sell Signals:** RSI is below a certain threshold (e.g., 50) in a downtrend.
#### **C. ADX (Average Directional Index) for Trend Strength Confirmation**
- ADX ensures that trades are only taken when the trend has **sufficient strength**.
- Avoids trading in low-volatility, ranging markets.
- **Threshold (e.g., 25):** Only trade when ADX is above this value, indicating a strong trend.
#### **D. ATR (Average True Range) for Risk Management**
- **Stop Loss (SL):** Placed **one ATR below** (for long trades) or **one ATR above** (for short trades).
- **Take Profit (TP):** Set at a **3:1 reward-to-risk ratio**, using ATR to determine realistic price targets.
- Ensures volatility-adjusted risk management.
---
### **3. Entry and Exit Conditions**
#### **📈 Buy (Long) Entry Conditions:**
1. **Price is above the Range Filter** → Indicates an uptrend.
2. **Upward trend strength is positive** (confirmed via trend counter).
3. **RSI is above the buy threshold** (e.g., 50, to confirm momentum).
4. **ADX confirms trend strength** (e.g., above 25).
5. **Volatility is supportive** (using ATR analysis).
#### **📉 Sell (Short) Entry Conditions:**
1. **Price is below the Range Filter** → Indicates a downtrend.
2. **Downward trend strength is positive** (confirmed via trend counter).
3. **RSI is below the sell threshold** (e.g., 50, to confirm momentum).
4. **ADX confirms trend strength** (e.g., above 25).
5. **Volatility is supportive** (using ATR analysis).
#### **🚪 Exit Conditions:**
- **Stop Loss (SL):**
- **Long Trades:** 1 ATR below entry price.
- **Short Trades:** 1 ATR above entry price.
- **Take Profit (TP):**
- Set at **3x the risk distance** to achieve a favorable risk-reward ratio.
- **Ranging Market Exit:**
- If ADX falls below the threshold, indicating a weakening trend.
---
### **4. Visualization & Alerts**
- **Colored range filter line** changes based on trend direction.
- **Buy and Sell signals** appear as labels on the chart.
- **Stop Loss and Take Profit levels** are plotted as dashed lines.
- **Gray background highlights ranging markets** where trading is avoided.
- **Alerts trigger on Buy, Sell, and Ranging Market conditions** for automation.
---
### **5. Advantages of the Enhanced Range Filter Strategy**
✅ **Trend-Following with Noise Reduction** → Helps avoid false signals by filtering out weak trends.
✅ **Momentum Confirmation with RSI & ADX** → Ensures that only strong, valid trades are executed.
✅ **Volatility-Based Risk Management** → ATR ensures adaptive stop loss and take profit placements.
✅ **Works on Multiple Timeframes** → Effective for day trading, swing trading, and scalping.
✅ **Visually Intuitive** → Clearly displays trade signals, SL/TP levels, and trend conditions.
---
### **6. Who Should Use This Strategy?**
✔ **Trend Traders** who want to enter trades with momentum confirmation.
✔ **Swing Traders** looking for medium-term opportunities with a solid risk-reward ratio.
✔ **Scalpers** who need precise entries and exits to minimize false signals.
✔ **Algorithmic Traders** using alerts for automated execution.
---
### **7. Conclusion**
The **Enhanced Range Filter Strategy** is a powerful trading tool that combines **trend-following techniques, momentum indicators, and risk management** into a structured, rule-based system. By leveraging **Range Filters, RSI, ADX, and ATR**, traders can improve trade accuracy, manage risk effectively, and filter out unfavorable market conditions.
This strategy is **ideal for traders looking for a systematic, disciplined approach** to capturing trends while **avoiding market noise and false breakouts**. 🚀
Estrategia 15 MINThe 50-EMA and 200-EMA are exponential moving averages (EMA) used in technical analysis to identify trends. The 50-EMA is used to analyze short- and medium-term trends, while the 200-EMA is used to analyze long-term trends.
50-EMA
Averaged over 50 periods
Allows for faster reaction to price changes
Used to analyze short- and medium-term trends
200-EMA
Averaged over 200 periods
Indicates an overall trend
Used to analyze long-term trends
AsianRange&Midnight 2.2### Midnight Setup: Trading Strategy
#### **Bias Definition (Trend Identification)**
- The Daily (D) bias is defined the previous day and validated on the line chart.
- On the Daily chart, identify the nearest V-shaped formation that has broken close to the current price. This formation determines the Daily bias direction.
#### **H4 Bias Analysis (Trend Confirmation)**
- Switch to an H4 chart to refine the analysis.
- Identify a similar V-shaped formation that has broken in the H4 timeframe.
- If the Daily and H4 biases are aligned, the setup is valid.
#### **Entry Strategy (Position Entries)**
- **Bearish Bias (D and H4 identical):**
- Short entry at the high level of the Midnight range.
- **Bullish Bias (D and H4 identical):**
- Long entry at the low level of the Midnight range.
#### **Bias Divergence (Context Adaptation)**
- If the H4 bias is opposite to the Daily bias, this indicates an H4 retracement of the Daily bias.
- Enter a counter-trend trade with reduced risk.
- No TP target beyond 50% of the extension validating the Daily break. It is also not recommended to enter against this divergence beyond 50%.
#### **Divergence Scenarios (Reactions to Divergences)**
- **Daily Bearish Bias, H4 Bullish Bias:**
- Long entry at the Midnight Low.
- **Daily Bullish Bias, H4 Bearish Bias:**
- Short entry at the Midnight High.
#### **Daily Bias Resumption (Trend Alignment)**
- As soon as the H4 bias resumes the Daily bias direction, follow this trend and adjust the position accordingly.
#### **Instructions for Divergent Bias (Managing Divergence)**
- When holding a position with a divergent bias, it is crucial to manage it carefully.
- Exit counter-trend trades as soon as the H4 bias realigns with the Daily bias.
- Limit the duration of counter-trend trades per session and adjust the H4 bias for the next session if needed.
#### **SL/TP Management (Profit Taking and Protection Optimization)**
- **Take Profit (TP):**
- Entry in M15 with a minimum RR of 3.
- TP at 5H NYE, or RR 5, or 15H NYE.
- **Stop Loss (SL):**
- Minimum 15 pips, placed just above the nearest swing to the entry point to protect capital.
- **Red Announcement Days:**
- Either abstain from trading or set a 40-pip SL to limit volatility impact.
- **At 6H/7H NYE:**
- Manage the trade based on its progress: exit, set to BE (Break Even), or keep the SL in place.
- Any SL adjustment outside these rules can only be made if supported by data or backtests.
#### **Risk Management (Capital Protection)**
- Maximum risk of **1% of capital per trade** (allowing for **10 consecutive losses** without significantly affecting capital).
- In case of a loss, **reduce risk by 50% on the next trade** until the loss is recovered.
#### **Efficiency Conditions (When This Setup Works Best)**
- This setup is particularly effective in **strong trends**, where the market has a clear direction.
- It is **less effective in ranging markets**, where prices move within a narrow range without a clear trend.
Setup Midnight : Stratégie de Trading
EMA & RSI & MACD & Stochastic sec TTD
---
## **EMA & RSI & MACD – Trend Dashboard by Timeframe**
This script is a **multi-timeframe trend dashboard** that combines several popular technical indicators across key timeframes to give traders a **quick snapshot of trend direction**.
---
### 🔍 **What This Indicator Does**
This indicator visually displays the **trend bias** from five key indicators:
- **EMA 50/200**: Long-term trend (classic golden/death cross logic)
- **EMA 5/7/9**: Short-term trend
- **RSI (14)**: Momentum trend using RSI vs its own 14-SMA
- **MACD**: MACD line vs Signal line
- **EMA 5 vs SMA 14**: A unique short-to-mid-term trend perspective
Each trend is represented by an emoji symbol:
- 🟢 **Uptrend**
- 🔴 **Downtrend**
- ⚫️ **Neutral**
---
### 🕒 **Covered Timeframes**
You can toggle on/off each timeframe as needed:
- 2H
- 3H
- 4H
- 8H
- 12H
- 1D
These are displayed vertically, with trend indicators across columns, so you can spot multi-timeframe confluence easily.
---
### 📊 **Dashboard Features**
- Positioned **on chart** at customizable screen locations (e.g., Middle Right, Bottom Left, etc.)
- **Table color, text size, and emojis** can all be customized in the settings
- **Live updating table** (last bar only) to reduce lag and clutter
---
### 📈 **Calculation Logic**
Each trend indicator is derived as follows:
#### ✅ **EMA 5/7/9 Trend**
- 🟢 if 5 > 7 > 9 (short-term bullish)
- 🔴 if 5 < 7 < 9 (short-term bearish)
- ⚫️ otherwise (neutral)
#### ✅ **EMA 50/200 Trend**
- 🟢 if price > EMA50 > EMA200 (classic bullish)
- 🔴 if price < EMA50 < EMA200 (classic bearish)
- ⚫️ otherwise
#### ✅ **RSI Trend**
- 🟢 if RSI > SMA(RSI)
- 🔴 if RSI < SMA(RSI)
- ⚫️ otherwise
#### ✅ **MACD Trend**
- 🟢 if MACD Line > Signal Line
- 🔴 if MACD Line < Signal Line
- ⚫️ otherwise
#### ✅ **EMA 5 vs SMA 14 Trend**
- 🟢 if EMA5 > SMA14
- 🔴 if EMA5 < SMA14
- ⚫️ otherwise
---
### 🛠️ **Customization**
In the settings panel, users can:
- Show/hide each timeframe
- Change the table's position
- Adjust text size and color
- Customize emoji symbols used for trends
---
### 📌 Use Case
This dashboard is ideal for:
- **Swing traders** and **intraday traders** monitoring multiple timeframes
- Identifying **trend confluence zones** across indicators
- Making quick, high-confidence trading decisions
---
Supertrend + MACD CrossoverKey Elements of the Template:
Supertrend Settings:
supertrendFactor: Adjustable to control the sensitivity of the Supertrend.
supertrendATRLength: ATR length used for Supertrend calculation.
MACD Settings:
macdFastLength, macdSlowLength, macdSignalSmoothing: These settings allow you to fine-tune the MACD for better results.
Risk Management:
Stop-Loss: The stop-loss is based on the ATR (Average True Range), a volatility-based indicator.
Take-Profit: The take-profit is based on the risk-reward ratio (set to 3x by default).
Both stop-loss and take-profit are dynamic, based on ATR, which adjusts according to market volatility.
Buy and Sell Signals:
Buy Signal: Supertrend is bullish, and MACD line crosses above the Signal line.
Sell Signal: Supertrend is bearish, and MACD line crosses below the Signal line.
Visual Elements:
The Supertrend line is plotted in green (bullish) and red (bearish).
Buy and Sell signals are shown with green and red triangles on the chart.
Next Steps for Optimization:
Backtesting:
Run backtests on BTC in the 5-minute timeframe and adjust parameters (Supertrend factor, MACD settings, risk-reward ratio) to find the optimal configuration for the 60% win ratio.
Fine-Tuning Parameters:
Adjust supertrendFactor and macdFastLength to find more optimal values based on BTC's market behavior.
Tweak the risk-reward ratio to maximize profitability while maintaining a good win ratio.
Evaluate Market Conditions:
The performance of the strategy can vary based on market volatility. It may be helpful to evaluate performance in different market conditions or pair it with a filter like RSI or volume.
Let me know if you'd like further tweaks or explanations!
Session Color Blocks🧠 Purpose:
To visually highlight different market sessions — Asia, London, Premarket (US), and New York — using colored background blocks on the chart for better timing, context, and trade planning.
🕓 Session Times Used (Eastern Time / New York Time):
Session Time (ET) Color
Asia 8:00 PM – 3:00 AM 🟨 Yellow
London 3:00 AM – 8:30 AM 🟥 Red
Premarket 8:30 AM – 9:30 AM 🟦 Blue
New York 9:30 AM – 4:00 PM 🟩 Green
(DST is automatically handled via "America/New_York" timezone)
✅ Features:
Session colors appear only when that session is active.
Sessions are mutually exclusive, so no overlapping blocks.
Works on any symbol, especially useful for US stock/futures traders.
Auto-adjusts for daylight savings (using TradingView's IANA timezones).
🔧 Future Enhancements (Optional):
Toggle each session on/off
Add vertical lines or labels for session opens
Extend to weekends or custom sessions
yatofxDescription: "Ramon Coto's 3 Session Bar Color" Indicator
This TradingView Pine Script indicator colors candlestick bars based on three custom trading sessions. It allows traders to visually distinguish different market timeframes on their charts.
Features:
Three configurable trading sessions with user-defined time ranges.
Customizable session colors:
Session A → Blue
Session B → Red
Session C → Lime
Enable/disable sessions independently using input toggles.
Automatic session detection: Bars are colored based on the active session.
Optimized for TradingView Mobile & Desktop with clear and efficient logic.
How It Works:
1. User Inputs: The script takes session time ranges and enables/disables each session.
2. Session Detection: The script checks whether the current time falls within any of the defined sessions.
3. Bar Coloring: If a session is active, the corresponding color is applied to the bars.
This indicator helps traders quickly recognize which market session they are in, improving decision-making for session-based strategies.
Sessions [Key Sessions]Personal Script
This Pine Script (v5) indicator, "Sessions ," overlays trading session data on a TradingView chart. It supports four customizable sessions (default: New York, London, Tokyo, Sydney) with configurable time ranges, colors, and overlay options (Range, Trendline, Mean, VWAP, Max/Min). Session ranges are displayed as shaded boxes with adjustable transparency and optional outlines/labels. Timezone settings allow UTC offset or exchange timezone use. Daily dividers mark day changes with customizable line style (Solid, Dashed, Dotted), line color, text position (Top, Bottom), text color, and text size (Tiny, Small, Normal). Session dividers are optional, showing session transitions with dots and bars. The script uses functions to calculate averages, trendlines, VWAP, and ranges, plotting results with up to 500 bars back. Dashboard functionality is absent, focusing solely on session visualization and dividers.
Médias Móveis Personalizadas por TipoContains 9, 20, 50, and 200 moving averages and a VWAP, allowing selection between simple and exponential with different colors and more!
Contem medias de 9 20 50 e 200 e uma vwap podendo escolher entre simples e exponencial com diferentes cores e etc!
Omar TradingOmar Trading Indicator – Description
The Omar Trading Indicator is a custom-built trading tool designed to identify potential buy signals based on multiple technical analysis factors. This indicator combines several key elements to improve trade accuracy and reliability.
Key Features:
✅ Zero Reversal from the Bottom – Detects price reversals from recent lows.
✅ Liquidity Check – Uses volume analysis to confirm market strength.
✅ MACD Crossover – Identifies bullish momentum when the MACD line crosses above the signal line.
✅ Moving Average Crossover – Confirms trend direction when a fast-moving average crosses a slow-moving average.
✅ Fibonacci Levels – Displays key Fibonacci retracement levels to identify potential support and resistance zones.
How It Works:
• The indicator scans for a zero-level price reversal from recent lows.
• It checks if volume is above the average liquidity level to confirm trade strength.
• A bullish MACD crossover is required to ensure upward momentum.
• A moving average crossover provides additional confirmation.
• Fibonacci retracement levels help traders identify key price zones for entry or exit.
Alerts & Notifications:
• The indicator plots buy signals directly on the chart.
• TradingView alerts can be set up to notify traders when all conditions align.
• Telegram integration allows automatic notifications for trade opportunities.
This tool is ideal for traders looking for a systematic and multi-confirmation approach to identifying potential buy opportunities.
EURUSD Swing High/Low ProjectionBikini Bottom custom projection tool. Aimed to project tops and bottoms. Don't use unless you understand how it works :)
Gold Scalping Basic+This script is the "Basic+ Gold Scalping Strategy," specifically designed for scalping XAUUSD on the 5-minute chart. It combines smart indicator filters with price action logic to help traders identify high-probability entries and exits. The strategy is based on market structure, trend bias, and momentum confirmation, making it ideal for short-term traders who want clarity in fast-moving gold markets.
Key Features:
Trend-based entry signals using price action
Indicator filters to avoid false setups
Works best in volatile conditions
Optimized for 5M timeframe
Includes visual signals for buy/sell zones
First EMA Touch (Last N Bars)Okay, here's a description of the "First EMA Touch (Last N Bars)" TradingView indicator:
Indicator Name: First EMA Touch (Last N Bars)
Core Purpose:
This indicator is designed to visually highlight on the chart the exact moment when the price (specifically, the high/low range of a price bar) makes contact with a specified Exponential Moving Average (EMA) for the first time within a defined recent lookback period (e.g., the last 20 bars).
How it Works:
EMA Calculation: It first calculates a standard Exponential Moving Average (EMA) based on the user-defined EMA Length and EMA Source (e.g., close price). This EMA line is plotted on the chart, often serving as a dynamic level of potential support or resistance.
"Touch" Detection: For every price bar, the indicator checks if the bar's range (from its low to its high) overlaps with or crosses the calculated EMA value for that bar. If low <= EMA <= high, it's considered a "touch".
"First Touch" Logic: This is the key feature. The indicator looks back over a specified number of preceding bars (defined by the Lookback Period). If a "touch" occurs on the current bar, and no "touch" occurred on any of the bars within that preceding lookback window, then the current touch is marked as the "first touch".
Visual Signal: When a "first touch" condition is met, the indicator plots a distinct shape (by default, a small green triangle) below the corresponding price bar. This makes it easy to spot these specific events.
Key Components & Settings:
EMA Line: The calculated EMA itself is plotted (typically as an orange line) for visual reference.
First Touch Signal: A shape (e.g., green triangle) appears below bars meeting the "first touch" criteria.
EMA Length (Input): Determines the period used for the EMA calculation. Shorter lengths make the EMA more reactive to recent price changes; longer lengths make it smoother and slower.
Lookback Period (Input): Defines how many bars (including the current one) the indicator checks backwards to determine if the current touch is the first one. A lookback of 20 means it checks if there was a touch in the previous 19 bars before signalling the current one as the first.
EMA Source (Input): Specifies which price point (close, open, high, low, hl2, etc.) is used to calculate the EMA.
Interpretation & Potential Uses:
Identifying Re-tests: The signal highlights when price returns to test the EMA after having stayed away from it for the duration of the lookback period. This can be significant as the market re-evaluates the EMA level.
Potential Reversal/Continuation Points: A first touch might indicate:
A potential area where a trend might resume after a pullback (if price bounces off the EMA).
A potential area where a reversal might begin (if price strongly rejects the EMA).
A point of interest if price consolidates around the EMA after the first touch.
Filtering Noise: By focusing only on the first touch within a period, it can help filter out repeated touches that might occur during choppy or consolidating price action around the EMA.
Confluence: Traders might use this signal in conjunction with other forms of analysis (e.g., horizontal support/resistance, trendlines, candlestick patterns, other indicators) to strengthen trade setups.
Limitations:
Lagging: Like all moving averages, the EMA is a lagging indicator.
Not Predictive: The signal indicates a specific past event (the first touch) occurred; it doesn't guarantee a future price movement.
Parameter Dependent: The effectiveness and frequency of signals heavily depend on the chosen EMA Length and Lookback Period. These may need tuning for different assets and timeframes.
Requires Confirmation: It's generally recommended to use this indicator as part of a broader trading strategy and not rely solely on its signals for trade decisions.
In essence, the "First EMA Touch (Last N Bars)" indicator provides a specific, refined signal related to price interaction with a moving average, helping traders focus on potentially significant initial tests of the EMA after a period of separation.
Eclipse Dates IndicatorThis TradingView indicator displays vertical lines on eclipse dates from 1980 to 2030, with comprehensive filtering options for different types of eclipses.
Features
Date Range: Covers 221 eclipse events from 1980 to 2030
Eclipse Types: Filter by Solar and/or Lunar eclipses
Eclipse Subtypes: Filter by Total, Partial, Annular, Penumbral, and Hybrid eclipses
Year Range Selection: Focus on specific decades (1980-1990, 1990-2000, etc.)
Visual Customization: Separate styling for Solar and Lunar eclipses
Line Appearance: Customize color, style, and width
Label Options: Show/hide labels with customizable appearance
Eclipse Types
Show Solar Eclipses: Toggle visibility of Solar eclipses
Show Lunar Eclipses: Toggle visibility of Lunar eclipses
Eclipse Subtypes
Show Total Eclipses: Toggle visibility of Total eclipses
Show Partial Eclipses: Toggle visibility of Partial eclipses
Show Annular Eclipses: Toggle visibility of Annular eclipses
Show Penumbral Eclipses: Toggle visibility of Penumbral eclipses
Show Hybrid Eclipses: Toggle visibility of Hybrid eclipses
Visual Settings
Solar/Lunar Eclipse Line Color: Set the color for eclipse lines
Solar/Lunar Eclipse Line Style: Choose between solid, dashed, or dotted lines
Solar/Lunar Eclipse Line Width: Set the width of eclipse lines
Solar/Lunar Label Text Color: Set the color for label text
Solar/Lunar Label Background Color: Set the background color for labels
General Settings
Show Eclipse Labels: Toggle visibility of eclipse labels
Label Size: Choose between tiny, small, normal, or large labels
Extend Lines to Chart Borders: Toggle whether lines extend to chart borders
Year Range: Filter eclipses by decade (1980-1990, 1990-2000, etc.)
Usage Tips
For optimal visualization, use daily or weekly timeframes
When analyzing specific periods, use the Year Range filter
To focus on specific eclipse types, use the type and subtype filters
For cleaner charts, you can hide labels and only show lines
Customize colors to match your chart theme
Data Source
Eclipse data is sourced from NASA's Five Millennium Catalog of Solar Eclipses and includes both solar and lunar eclipses from 1980 to 2030.
Renko Flip MarkerThis script shows on chart where Renko bricks flip for candlestick chart. I intended it for candlestick chart, but it seems to work Renko chart too from my testing so far. You may change the Renko size for your own scenario you're trading. Hopefully helps, Thank you.
Vertical Lines Every 30 MinShows a vertical Line every 30 minutes
The Line is pink
Not much more to it
SCE GANN PredictionsThis is a script designed to give an insight on price direction from being above or below a GANN Value.
What Are GANN Waves?
The SCE GANN Predictions indicator is inspired by the work of W.D. Gann, a renowned trader who believed that price movements follow geometric and mathematical patterns. GANN waves use past price behavior—specifically momentum or "velocity"—to forecast where prices might head next.
How Does the Indicator Work?
Calculating Velocity
The script starts by measuring the "velocity" of price movement over a user-defined lookback period (denoted as n). This velocity is the average difference between the close and open prices over n bars. Think of it as the market’s speed in a given direction.
Predicting the Future Price
Using this velocity, the indicator estimates a future price after a specific time horizon—calculated as n + n*2 bars into the future (e.g., if n = 15, it predicts 45 bars ahead). It scales the velocity by a ratio (Gr) to determine the "end price." This is the raw GANN prediction.
Optimizing the Ratio (Gr)
The key to a good prediction is finding the right Gr. The script tests a range of Gr values (from Gr_min to Gr_max, stepping by Gr_step) and evaluates each one by calculating the sum of squared errors (SSE) between the predicted prices and the actual historical close prices. The Gr with the lowest SSE is deemed "optimal" and used for the final prediction.
Smoothing with an SMA
The raw GANN prediction is then smoothed using a simple moving average (SMA) over the lookback period (n). This SMA is plotted on your chart, serving as a dynamic trend line. The plot’s color changes based on the current price: teal if the close is above the SMA (bullish), and red if below (bearish).
Visuals
This example shows how the value explains price strength and changes color. When the price is above the line, and it’s green, we’re showing an up trend. The opposite is when the price is below the line, and it’s red, showing a down trend.
We can see that there may be moments where price drops under the value for just that one bar.
In scenarios with sideways price action, even though the price crosses, there is no follow through. This is a shortcoming of the overall concept.
Customizable Inputs
Timeframe: Choose the timeframe for analysis (default is 2 minutes).
Show GANN Wave: Toggle the GANN SMA plot on or off (default is true).
Lookback Period (Gn): Set the number of bars for velocity and SMA calculations (default is 15).
Min Ratio (Gr_min): The lower bound for the Gr optimization (default is 0.05).
Max Ratio (Gr_max): The upper bound for Gr (default is 0.2).
Step for Gr (Gr_step): The increment for testing Gr values (default is 0.01).
How to Use SCE GANN Predictions
Trend Direction
The colored SMA provides a quick visual cue. Teal suggests an uptrend, while red hints at a downtrend. Use this to align your trades with the broader momentum.
Crossover Signals
Watch for the close price crossing the GANN SMA. A move above could signal a buy opportunity, while a drop below might indicate a sell. Combine this with other indicators for confirmation.
Fine-Tuning
Experiment with the lookback period (Gn) and Gr range to optimize for your market. Shorter lookbacks might suit fast-moving assets, while longer ones could work for slower trends.
Like any technical tool, SCE GANN Predictions isn’t a crystal ball. It’s based on historical data and mathematical assumptions, so it won’t always be spot-on.
Cycle Biologique Strategy // (\_/)
// ( •.•)
// (")_(")
//@fr33domz
Experimental Research: Cycle Biologique Strategy
Overview
The "Cycle Biologique Strategy" is an experimental trading algorithm designed to leverage periodic cycles in price movements by utilizing a sinusoidal function. This strategy aims to identify potential buy and sell signals based on the behavior of a custom-defined biological cycle.
Key Parameters
Cycle Length: This parameter defines the duration of the cycle, set by default to 30 periods. The user can adjust this value to optimize the strategy for different asset classes or market conditions.
Amplitude: The amplitude of the cycle influences the scale of the sinusoidal wave, allowing for customization in the sensitivity of buy and sell signals.
Offset: The offset parameter introduces phase shifts to the cycle, adjustable within a range of -360 to 360 degrees. This flexibility allows the strategy to align with various market rhythms.
Methodology
The core of the strategy lies in the calculation of a periodic cycle using a sinusoidal function.
Trading Signals
Buy Signal: A buy signal is generated when the cycle value crosses above zero, indicating a potential upward momentum.
Sell Signal: Conversely, a sell signal is triggered when the cycle value crosses below zero, suggesting a potential downtrend.
Execution
The strategy executes trades based on these signals:
Upon receiving a buy signal, the algorithm enters a long position.
When a sell signal occurs, the strategy closes the long position.
Visualization
To enhance user experience, the periodic cycle is plotted visually on the chart in blue, allowing traders to observe the cyclical nature of the strategy and its alignment with market movements.