Weekly Pivot Strategy (LONG ONLY STRATEGY)Strategy Overview: Weekly Pivot Trading System
Core Concept:
A mean-reversion strategy that trades between weekly pivot levels. It uses calculated support (S1-S4) and resistance (R1-R4) levels derived from the previous week's price action to identify entry and exit points.
Just know, every market is different. You may need to play with the settings to suit you're market
---------------------------------------------------------------------------------------------------------------------
1. Key Features
Weekly Pivot Calculation
Pivot Point = (Previous Week’s High + Low + Close) / 3
Support/Resistance Levels: User-adjustable distances from the pivot (Measured in points).
2. Entry Rules
Buys when price touches S1-S4 (lower = more aggressive).
Each support level triggers a separate entry ("Entry1" at S1, "Entry2" at S2, etc.).
3. Exit Rules
Profit targets set at corresponding R1-R4 levels (R1 for S1 entry, etc.).
No stop-loss (positions remain open until targets are hit).
4. Position Management
Up to 4 concurrent trades per week.
Trades reset weekly with new pivot levels.
No time-based exits.
5.Customization
Adjustable distances for S/R levels.
Position sizing as percentage of equity.
---------------------------------------------------------------------------------------------------------------------
Anticipated FAQs & Answers
Q1: How does this strategy work?
A: It exploits price reversals at weekly support/resistance zones. When price dips to a support level (S1-S4), the strategy buys, expecting a bounce to the corresponding resistance (R1-R4).
Q2: Why use weekly pivots instead of daily?
A: Weekly levels act as stronger psychological zones, reducing noise from short-term fluctuations. This aligns with swing trading/institutional order flow.
Q3: Where are the stop-losses?
A: The original strategy has no stop-loss to allow positions to ride to targets. However, users can add their own stop rules (e.g., below S4 or ATR-based stops).
Q4: How do I adjust risk?
A: Two key controls:
1. default_qty_value: Reduce from 25% to lower position size.
2. S/R distances: Widen offsets for larger buffers.
Q5: Why do trades sometimes not close?
A: Positions remain open indefinitely until price reaches the profit target. This works best in ranging markets but may tie up capital in trends.
Q6: How is this different from standard pivot strategies?
A: Three unique aspects:
1.Weekly reset: Fresh levels every Monday.
2. Multiple entries: Up to 4 trades/week.
3. No repainting: Levels fixed at week start.
Q7: What markets/timeframes does this work on?
A: Best results in:
Markets: Forex, indices, crypto (high liquidity).
Timeframes: 1H or higher (avoids intraweek noise).
Q8: Can I combine this with other indicators?
A: Popular additions:
Trend filter: Only trade S1-S4 in uptrends (e.g., 50 SMA).
Volume confirmation: Require rising volume at support.
RSI divergence: Avoid entries during overextension.
Q9: Why does it enter on touch (not close)?
A: By design, it mimics "limit order" behavior. To require a close below/above, modify the entry condition:
// Replace:
if low <= level
// With:
if close < level // More conservative
Q10: How to avoid whipsaws during volatility?
A: Two solutions:
1.Add a buffer (e.g., require price to close 1% below S1).
2.Use multiple timeframes: Confirm with daily pivot alignment.
Pro Tips for Users
1. Backtest Across Market Phases: Test in both trending and ranging conditions.
2. Adjust Offsets Volatility: Widen S/R distances for high-volatility assets.
Pair with Correlation: Avoid overlapping trades in correlated markets.
This framework balances simplicity with customization potential.
---------------------------------------------------------------------------------------------------------------------
Thank you for taking the time to review this strategy. This is my first finished product. I hope people enjoy testing it.
P.S. Please feel free to change or add whatever you like. If you feel up to the task. Im 100% confident that there are better coders than me that can improve this. :D
Volatilität
Hyper MA Loop | QuantEdgeBIntroducing Hyper MA Loop by QuantEdgeB
Hyper MA Loop | QuantEdgeB is an advanced trend-following indicator that leverages a custom Hyper Moving Average (HyMA) and an innovative loop-based scoring system to assess trend strength and direction. This tool is designed to provide a dynamic perspective on market momentum, allowing traders to capture trends effectively while filtering out market noise.
Key Features:
1. Hyper Moving Average (HyMA) 🟣
- A weighted moving average that enhances trend responsiveness by applying a custom
weight function.
- Ensures smoother trend detection while maintaining reactivity to price changes.
2. Loop-Based Trend Scoring 🔄
- Utilizes a for-loop function to analyze the movement of HyMA over a specified period.
- Compares current values to past values, generating a cumulative score indicating bullish or
bearish momentum.
- Dynamic thresholds adjust to market conditions for better trend filtering.
3. Threshold-Based Signal System ✅❌
- Long Signals: Triggered when the loop score exceeds the long threshold.
- Short Signals: Activated when the score falls below the short threshold.
- Avoids false signals by requiring sustained strength before confirming a trend.
4. Customizable Visualization & Colors 🎨
- Multiple color modes (Default, Solar, Warm, Cool, Classic) for tailored aesthetics.
- Extra plot options enhance visualization of market structure and volatility.
________
How It Works:
- HyMA Calculation : A unique moving average with a specialized weighting function to
smooth out price action.
- Loop Function : Iterates over past HyMA values, assessing whether price is consistently
higher or lower.
- Threshold Comparison : The loop score is compared against pre-set thresholds to
determine bullish or bearish conditions.
- Signal Generation :
1. Bullish (🔵): If the score crosses the long threshold
2. Bearish (🔴): If the score drops below the short threshold.
- Plotting & Styling : Dynamic candles and gradient overlays provide an intuitive
visualization of rend shifts.
________
Use Cases:
✅ Ideal for trend-following traders looking for solid trends confirmation.
✅ Helps filter out choppy market conditions by adjusting sensitivity dynamically.
✅ Works well with other indicators (e.g., ADX, volume-based filters) for added confirmation.
✅ Suitable for both short-term and long-term trend analysis.
________
Customization Options:
- Adjustable HyMA Length: Modify the responsiveness of the moving average. Default se to 2.
- For-Loop Parameters: Fine-tune how far back the trend analysis should consider. Default se to Start = 1 , End = -1.
- Thresholds for Long & Short: Control signal sensitivity to market fluctuations. Default set to Long = 40, Short = 8.
- Color Modes & Extra Plots: Personalize visualization for better clarity.
________
Conclusion:
The Hyper MA Loop | QuantEdgeB is a powerful, adaptive indicator that combines custom moving averages with loop-based trend analysis to deliver accurate, visually intuitive market signals. Whether you're looking to ride strong trends or filter out weak setups, this tool provides the precision and flexibility needed for effective decision-making. 🚀📈
🔹 Disclaimer: Past performance is not indicative of future results. No trading indicator can guarantee success in financial markets.
🔹 Strategic Consideration: As always, backtesting and strategic adjustments are essential to fully optimize this indicator for real-world trading. Traders should consider risk management practices and adapt settings to their specific market conditions and trading style.
Bollinger Bands + RSI [Uncle Sam Trading]The Bollinger Bands + RSI indicator combines two popular technical analysis tools, Bollinger Bands (BB) and the Relative Strength Index (RSI), into a unified framework designed to assess both market volatility and momentum. This indicator provides both visual signals on the chart, and allows you to set alerts. It is intended to help traders identify potential overbought/oversold conditions, trend reversals, and to refine trade entry and exit points.
Key Features:
Bollinger Bands: The indicator plots Bollinger Bands, which consist of a basis line (typically a 20-period Simple Moving Average), an upper band (basis + 2 standard deviations), and a lower band (basis - 2 standard deviations). The bands dynamically adjust to market volatility, widening during periods of increased volatility and contracting during periods of decreased volatility.
Relative Strength Index (RSI): The RSI, a momentum oscillator, is plotted in a separate pane below the price chart. It measures the magnitude of recent price changes to evaluate overbought or oversold conditions in the price of a stock or other asset. Traditional interpretation uses 70 and 30 as overbought and oversold levels, respectively.
Overbought/Oversold Zones Highlighting: This indicator uniquely highlights overbought and oversold zones directly on the price chart based on the RSI values. When the RSI is above the overbought level (default 70), a red-shaded area is displayed. When the RSI is below the oversold level (default 30), a green-shaded area is displayed. These visual cues enhance the identification of potential trend reversals.
Buy and Sell Signals: The indicator generates buy signals when the price crosses above the lower Bollinger Band and the RSI is below the oversold level (if the RSI filter is enabled). Sell signals are generated when the price crosses below the upper Bollinger Band and the RSI is above the overbought level (if the RSI filter is enabled). These signals are plotted as green upward-pointing triangles (buy) and red downward-pointing triangles (sell) on the chart.
Customizable Parameters: Users can adjust various settings, including:
Bollinger Bands Length: The number of periods used to calculate the moving average and standard deviation.
Bollinger Bands Standard Deviation: The multiplier used to determine the distance of the upper and lower bands from the basis.
RSI Length: The number of periods used to calculate the RSI.
RSI Overbought/Oversold Levels: The threshold values that define overbought and oversold conditions for the RSI.
Use RSI Filter for Signals: Enable/disable the RSI filter for buy and sell signals.
Colors: The colors of the Bollinger Bands, RSI, overbought/oversold levels, and zone highlights can be customized to suit user preferences.
Alerts: The indicator supports customizable alerts for various conditions, including:
Buy Signal: Triggered when a buy signal is generated.
Sell Signal: Triggered when a sell signal is generated.
Price Crossed Upper BB: Triggered when the price crosses above the upper Bollinger Band.
Price Crossed Lower BB: Triggered when the price crosses below the lower Bollinger Band.
RSI Overbought: Triggered when the RSI crosses above the overbought level.
RSI Oversold: Triggered when the RSI crosses below the oversold level.
How to Use:
The Bollinger Bands + RSI indicator can be used in various ways, including:
Identifying Potential Trend Reversals: Price crosses above the lower band coupled with an oversold RSI (and highlighted zone) may signal a bullish reversal. Conversely, a price cross below the upper band with an overbought RSI (and highlighted zone) may indicate a bearish reversal.
Confirming Trend Strength: In an uptrend, the price may "ride" the upper band, while in a downtrend, it may "ride" the lower band.
Exit Signals: Crossing the opposite band while in a trade, particularly with confirming RSI signals, is often used to identify potential exit points.
Combined with Other Analysis: This indicator works well in conjunction with other technical analysis tools, such as trend lines, support/resistance levels, chart patterns, and moving average-based strategies.
Disclaimer:
This indicator is for educational and informational purposes only and should not be considered as financial advice. Trading involves risk, and past performance is not indicative of future results. Always conduct thorough research and consider your risk tolerance before making any trading decisions.
Smart Buy/Sell Indicator with Trend & ATR FilterDescription:
This indicator uses a moving average crossover strategy combined with ATR-based stop loss and take profit levels.
✅ Features:
Improvements:
Trend Filter (200-period EMA)
-Only long trades when price is above the 200 EMA
-Only short trades when price is below the 200 EMA
ATR-Based Volatility Filter
-Trades are only taken when the ATR is above a threshold, indicating strong market conditions.
Stop Loss & Take Profit
-Stop loss and take profit dynamically adjust based on ATR x Multiplier, instead of fixed percentages.
-Works best on trending markets (recommended for Forex, Crypto, and Stocks).
🛠 How to Use:
Enter a long trade when a green Buy signal appears.
Enter a short trade when a red Sell signal appears.
Adjust Stop Loss % and Take Profit % based on your risk tolerance.
Liquidity Channel DEX/Uniswap/Crypto by @RichSimonThe indicator automatically detects channels for placing liquidity on decentralized exchanges (DEX).
Based on a linear regression algorithm (similar to the "Regression Trend" tool).
Adjustable parameters: channel width (in standard deviations) and analysis depth (historical period in bars).
Main parameters:
Channel boundaries: Upper (top), Center (central), Lower (bottom). Same for parent channel
ATR (Average True Range) — the average true range, scaled by 100 times over a period equal to the analysis depth.
Range (channel width).
Standard deviation (100xSTD LinReg), scaled by 100 times.
Channel speed — the rate of channel change (slope) per hour. Determines the channel's slope (positive - upward, negative - downward, higher value - steeper slope).
It is possible to create alerts with parameter transmission via placeholders, for example: {{plot_0}}.
Check the placeholder number in the data window.
Acknowledgments, donations, and improvement suggestions can be left in the comments.
RSI + Bollinger Bands + OBV [blondepanther]This custom indicator combines the power of Relative Strength Index (RSI), Bollinger Bands (BB), and On-Balance Volume (OBV) to help identify undervalued and overbought conditions in any market.
QQE Adv / Quantitative Qualitative Estimation AdvancedQQE Adv / Quantitative Qualitative Estimation Advanced
QQE Adv is a trading indicator, refined by the community, that builds upon Roman Ignatov's original Quantitative Qualitative Estimation (QQE). Utilizing smoothed RSI and ATR, QQE Adv dynamically adjusts signal levels based on market volatility. This key enhancement over the standard QQE aims to provide traders with more responsive and potentially more accurate buy/sell signals, adapting to changing market conditions.
Forex trader Jim Brown significantly popularized QQE Adv, and his preferred settings are included as the indicator's default settings.
Key Features:
1. Clear Signal Cross Markers: Visually highlights line crossovers for easy signal identification.
2. Alert Ready: Fully compatible with TradingView's alert system for automated signal notifications.
I encourage your feedback so I can further improve this QQE Advanced Oscillator. Thank you
Anchored VWAPAnchored VWAP with 3 Standard Deviation Bands
📈 Version: Pine Script v5
📌 Author: Aymen Haddaji
🔍 Overview
This indicator calculates an Anchored Volume-Weighted Average Price (AVWAP), allowing traders to anchor the VWAP calculation from a user-defined date and time. It also plots three standard deviation bands above and below the AVWAP to help identify potential areas of overbought and oversold conditions.
📊 Features & Functionality
✔ Custom Anchor Point: Select a specific date and time to start the AVWAP calculation.
✔ OHLC/4 Calculation: Uses the average of Open, High, Low, and Close to smooth the price input.
✔ Three Standard Deviation Bands:
1st Deviation (Green): Moderate volatility zone.
2nd Deviation (Orange): High volatility zone.
3rd Deviation (Red): Extreme overbought/oversold areas.
✔ Real-Time Calculation: Updates dynamically with each price movement.
✔ Clear Visuals:
AVWAP (Blue Line) represents the fair market price from the anchor.
Deviation Bands (Dashed Lines) show potential support and resistance levels.
🛠 How It Works
VWAP Calculation
Uses a cumulative sum of price × volume divided by cumulative volume.
Calculation starts from the user-defined anchor time.
Standard Deviation Bands
Measures the price dispersion around the AVWAP.
The wider the bands, the higher the volatility.
When price touches or exceeds the 3rd deviation, a potential reversal zone is indicated.
Trading Strategies with AVWAP & Deviation Bands
Trend Confirmation:
Price above AVWAP = Uptrend (bullish).
Price below AVWAP = Downtrend (bearish).
Support & Resistance:
AVWAP acts as dynamic support or resistance.
1st & 2nd deviations often act as secondary levels.
Mean Reversion Trading:
When price reaches the 3rd standard deviation, a pullback is likely.
Breakout Confirmation:
A strong close above/below the 3rd deviation may indicate trend continuation.
⚙️ Input Settings
📍 Anchor Time: Allows you to set the exact date and time to start the AVWAP calculation.
🎯 Ideal For
✅ Intraday traders looking for short-term mean reversion plays.
✅ Swing traders identifying key support/resistance zones.
✅ Trend traders confirming long-term market direction.
✅ Volatility traders using standard deviation for trade entries.
Finite Difference - Backward (mcbw_)In calculus there exists a 'derivative', which simply just measures the difference between two points on a curve. For well behaved mathematical functions there are infinitely many points and so there exists a derivative at every point. Where there are infinitely many points in a curve that curve is called 'continuous'. Continuous curves are very nice to deal with since each point on it exists almost exactly where its neighbors are. However, if the curve does not have infinitely many points on it, but instead has a finite number of points on it, that curve is called 'discrete' instead of continuous. Taking the derivative of discrete curves is much trickier business since there are none of the mathematical conveniences that a continuous offers. In the real world everything we measure is a discrete curve, including Price (since we measure it a finite number of times, aka each candlestick)!
The branch of Discrete Mathematics has found an approach to measure the derivative along a discrete curve, that approach is aptly called " Finite Difference ". To get a more accurate approximation of a discrete derivative, the finite difference approach uses weighted combinations of neighboring points. The most common type of finite difference is a 'central' difference, this uses a combination of points before and after the point of interest to approximate the discrete derivative. This is great for historical analysis but is not of much use for trading algorithms since it technically means using future prices to calculate the derivative of the current point. Instead we can use a less common variant called a ' Backwards Difference ' that only uses a combination of points before the current one to help approximate the current derivative.
In this script you can choose the " Order " of your derivative and the " Accuracy " of its approximation. This script is for educational purposes for folks building trading algorithms. Many trading algorithms often have an element of seeing how much Price has changed from the previous candle to the current candle. This approach is the lowest accuracy derivative possible, and using the backwards finite differences, made available for the first time on TradingView (!!), algorithms that use derivatives can now have higher orders of accuracy!
Happy Trading/Developing!
Gong's_indicatorIt is a frame less than 15 minutes, which is an advantageous indicator for use in horizontal sections.
It is recommended to buy and sell in hedging mode because other position orders may be created while the entered position is not organized.
Since the buying/selling position winning rate is similar for a long time, it is also a good idea to proceed with the sale only in one direction while checking the big trend.
Signal labels may appear as candle finish criteria.
Even if the label does not appear, you can open the position in the green section and the red section with the purple line as a stoploss.
It is good for picking up inflection points immediately after a short period of large rise and fall.
The size of the channel gap drawn varies with the intensity of the short-term motion.
In the green area, the long position's profit-loss ratio is advantageous, and in the red area, the short position's profit-loss ratio is advantageous.
If a buy signal occurs, if the location is a green box, you can add a little more seeds or leverage.
If the three diamonds are attached together, it means that they have fallen/increased significantly in a short period of time, and the position you hold at this time will have a lower winning rate, but you can open a position with a high profit/loss ratio.
Since the stopros and target price on the label are not absolute, it is better to set them up by referring to your own trading basis.
One of the two targets is a 1:1 or higher profit or loss ratio calculated based on the distance from the stoploss.
The one thing that remains is based on a technical basis for when you reach a section where the reverse trend can come out.
Stoploss is a value that takes into account the range of stop hunting that slightly breaks the top and bottom of the box.
This indicator has a high win rate for sideways area, but if a trend occurs, the reverse trend position can remain open, which increases the likelihood of losing back-to-back.
Therefore, it is recommended that you stop entering the same position for 240 times the time of the frame you are using once the stop is signed.
When the stoploss are signed, switching in the opposite direction when touching the gray area is also a good response.
After the stoploss, if a big reverse occurred and broke right through the gray area, the additional position entry in the green/red area will mostly protect your money.
15분봉 이하의 프레임으로 횡보구간에서 사용하기 유리한 지표입니다.
진입된 포지션이 정리되지 않은 상태에서 다른 포지션 오더가 추가 생성될 수 있기 때문에 헷지모드로 매매하시는 것을 권장합니다.
긴 시간동안 매수/매도 포지션 승률이 비슷하기 때문에 큰 추세를 확인하면서 한 쪽 방향으로만 매매를 진행하시는 것도 좋은 방법입니다.
캔들 마감 기준으로 시그널 라벨이 등장할 수 있습니다.
라벨이 뜨지 않아도 보라색 선을 스탑로스로 하여 녹색 구간, 적색 구간에서 포지션 오픈이 가능합니다.
단기간 큰 상승,하락 직후 변곡지점을 잡아낼 때 쓰기 좋습니다.
단기 움직임의 강도에 따라 그려져 있는 채널 갭의 크기가 변합니다.
녹색 구간에서는 매수 손익비가 유리하고 적색 구간에서는 매도 손익비가 유리합니다.
만약, 매수 시그널이 발생한 경우 그 위치가 녹색 박스권이라면 시드나 레버리지를 조금 더 추가할 수 있습니다.
위 아래 다이아몬드 3개가 같이 붙어있는 경우에는 단기간 크게 하락/상승했다는 의미이고 이 때 잡는 포지션은 승률이 낮아지지만 높은 손익비의 포지션을 오픈할 수 있습니다.
라벨에 적혀있는 스탑로스와 목표가는 절대적이지 않기 때문에 각자의 매매근거를 참고하셔서 설정하시는 것이 더 좋은 결과를 도출할 수 있습니다.
목표가 두 가지 중 한 가지는 스탑로스와의 거리를 근거로 1:1이상의 손익비를 계산한 값입니다.
남은 한 가지는 역추세가 나올 수 있는 구간에 도달하는 경우에 대한 기술적 근거를 바탕으로 합니다.
스탑로스는 박스권 상단과 하단을 살짝 깨는 스탑헌팅 범위를 고려한 값입니다.
이 지표는 횡보 구간 승률이 높지만 추세가 발생하면 역추세 포지션이 계속 오픈될 수 있기 때문에 연달아 손실을 입을 가능성이 높아집니다.
따라서, 스탑로스가 체결되면 사용중인 프레임의 240배의 시간동안 같은 포지션 진입을 멈추시는 것이 좋습니다.
스탑로스가 체결되면 회색 영역에 닿을 때 반대 방향으로 스위칭을 하시는 것도 좋은 대응이 됩니다.
스탑로스 체결 후 되돌림이 크게 나와서 회색 영역을 바로 돌파하는 경우 라벨이 생성되지 않더라고 녹색/적색 영역에서 추가 포지션 진입을 하면 대부분 본전 이상으로 포지션을 정리할 수 있습니다.
Market Session Highlights- Indicator Function: This indicator highlights the first hour of each major trading session in UTC for better market timing.
- Sessions Covered:
1. Sydney Session – First hour marked.
2. Tokyo Session – First hour marked.
3. London Session – First hour marked.
4. New York Session – First hour marked.
Simplified MA Crossover Strategy with toggle RSI/ATR options1. Strategy Overview
MA Crossover Logic: The strategy uses two simple moving averages (short and long) to generate buy/sell signals.
Buy Signal: When the short MA crosses above the long MA.
Sell Signal: When the short MA crosses below the long MA.
Filters: The strategy includes optional RSI and ATR filters to refine entry conditions.
Risk Management: Includes stop-loss, take-profit, and position sizing based on a percentage of equity.
2. Inputs
MA Lengths:
shortLength: Length of the short MA (default: 9).
longLength: Length of the long MA (default: 21).
RSI Filter:
enableRSI: Toggle to enable/disable the RSI filter.
rsiLength: RSI calculation period (default: 14).
rsiOverbought: Overbought threshold (default: 70).
rsiOversold: Oversold threshold (default: 30).
ATR Filter:
enableATR: Toggle to enable/disable the ATR filter.
atrLength: ATR calculation period (default: 14).
minATR: Minimum ATR threshold for trade entry (default: 0.005).
Risk Management:
stopLossPerc: Stop-loss percentage (default: 0.5%).
riskRewardRatio: Risk-reward ratio for take-profit calculation (default: 2).
riskPercentage: Percentage of equity to risk per trade (default: 2%).
3. Indicators
Moving Averages:
shortMA: Short-term simple moving average.
longMA: Long-term simple moving average.
RSI: Relative Strength Index for filtering overbought/oversold conditions.
ATR: Average True Range for volatility filtering.
4. Trade Conditions
Long Condition:
Short MA crosses above the long MA.
RSI is below the overbought level (if RSI filter is enabled).
ATR is above the minimum threshold (if ATR filter is enabled).
Short Condition:
Short MA crosses below the long MA.
RSI is above the oversold level (if RSI filter is enabled).
ATR is above the minimum threshold (if ATR filter is enabled).
5. Risk Management
Position Sizing:
positionSize: Calculated based on the percentage of equity to risk and the stop-loss level.
Take-Profit and Stop-Loss:
takeProfitLevel: Calculated using the risk-reward ratio.
stopLossLevel: Calculated using the stop-loss percentage.
6. Trade Execution
Long Entry:
Triggers when the long condition is met.
Sets a take-profit and stop-loss level.
Short Entry:
Triggers when the short condition is met.
Sets a take-profit and stop-loss level.
7. Plotting
Moving Averages:
Short MA (blue) and Long MA (red) are plotted on the chart.
RSI Levels:
Overbought (red) and oversold (green) levels are plotted as horizontal lines.
ATR:
ATR is plotted in orange.
Trade Signals:
Buy signals are marked with a green "BUY" label below the bar.
Sell signals are marked with a red "SELL" label above the bar.
8. Customization
You can adjust the input parameters (e.g., MA lengths, RSI/ATR settings, risk management values) to suit your trading preferences.
Disable/enable filters (RSI and ATR) using the enableRSI and enableATR inputs.
9. Notes
This strategy is designed for educational purposes and should be thoroughly tested before use in live trading.
Consider optimizing the parameters (e.g., MA lengths, RSI/ATR thresholds) for specific markets or timeframes.
Ensure proper backtesting and forward testing to evaluate performance under different market conditions.
ATR stop lossPlots the stop loss level based on average true range (ATR) and a multiplier of choice (1 to 2.5, default is 1.5), subtracted from closing price.
Additions in this version:
You can now show percentage labels to help evaluate the level of risk.
The color of the plotted line and the text labels can be picked by the user.
ATR % & 10 / ATR %Shows current ATR as a percentage of current price and also shows 10 divided by current ATR% for leverage purposes.
AyebaleJohnBob-Trading-BotAyebale John Bob - Trading-Bot Overview:
This trading strategy is designed to automate trades based on the "Smart Money Concepts" and "Fair Value Gaps" (FVG). The bot leverages multiple technical indicators and logic to execute buy and sell trades with dynamic stop-loss and take-profit (TP) levels.
Key Features:
User Inputs:
Bull & Bear Colors: Customizable colors for bullish and bearish trends.
Fair Value Gap (FVG) Color: Customizable color for visualizing FVG zones.
ATR Multiplier: Defines the sensitivity of stop-loss calculations based on Average True Range (ATR).
Take-Profit Multipliers: A set of five multipliers that scale take-profit levels dynamically.
Trade Signals:
Buy Signal: Generated when the price crosses above a certain low or when a bullish Fair Value Gap (FVG) is detected.
Sell Signal: Triggered when the price crosses below a high or when a bearish FVG is identified.
Stop-Loss & Take-Profit Logic:
Stop-loss levels are calculated using ATR and the specified multiplier.
Take-profit levels are dynamically determined based on the ATR multipliers, with five different levels for each trade.
Trade Execution:
The strategy allows for five simultaneous buy or sell entries, with each having its own take-profit and stop-loss levels.
The bot operates continuously, without any session restrictions, allowing trades at any time.
Visual Indicators:
Entry Signals: Visual shapes (green for buy and red for sell) appear on the chart to indicate entry points.
Progress Bar: A real-time progress bar is plotted, tracking the percentage gain/loss from the entry price.
Trade Information Table:
A dynamic table is used to display important trade information, including entry price, take-profit levels, and stop-loss. This table updates for each new trade (buy or sell), and shows real-time trade progress.
Risk Management:
The stop-loss is dynamically adjusted based on the ATR calculation, ensuring that the bot adapts to changing market volatility.
Take-profit levels are spread across five increments, offering multiple opportunities for profit capture.
Summary:
The Ayebale John Bob - Trading-Bot is designed to implement a sophisticated strategy that combines smart money concepts, fair value gap analysis, and robust risk management. It provides real-time trade information, progress tracking, and a flexible approach to stop-loss and take-profit strategies. The bot is ideal for traders looking to automate trades and visually track their progress directly on the chart.
Percentage ATRThis script:
Calculates regular ATR over your chosen period
Converts it to a percentage by dividing by current price and multiplying by 100
Plots both the percentage ATR and optionally its moving average
Includes optional reference lines for common volatility levels
5-Min Gainers & Sellers with Keltner/Bollinger BreakoutsI tried to create a 5 minute scalping script that also uses the Kelner Channels but set at the Bollinger 20 internals which should show the sqeeze as well as at leave 1% gain during the 5 minute period
High-Low Breakout Strategy with ATR traling Stop LossThis script is a TradingView Pine Script strategy that implements a High-Low Breakout Strategy with ATR Trailing Stop.created by SK WEALTH GURU, Here’s a breakdown of its key components:
Features and Functionality
Custom Timeframe and High-Low Detection
Allows users to select a custom timeframe (default: 30 minutes) to detect high and low levels.
Tracks the high and low within a user-specified period (e.g., first 30 minutes of the session).
Draws horizontal lines for high and low, persisting for a specified number of days.
Trade Entry Conditions
Long Entry: If the closing price crosses above the recorded high.
Short Entry: If the closing price crosses below the recorded low.
The user can choose to trade Long, Short, or Both.
ATR-Based Trailing Stop & Risk Management
Uses Average True Range (ATR) with a multiplier (default: 3.5) to determine a dynamic trailing stop-loss.
Trades reset daily, ensuring a fresh start each day.
Trade Execution and Partial Profit Taking
Stop-loss: Default at 1% of entry price.
Partial profit: Books 50% of the position at 3% profit.
Max 2 trades per day: If the first trade hits stop-loss, the strategy allows one re-entry.
Intraday Exit Condition
All positions close at 3:15 PM to ensure no overnight risk.
ADR by CTL modelled on TREPENG'sThis is an ADR indicator, a modified version of trepengs.
New ADR levels added 100/150/200/250/300%
Arrow functions and labels option, added to show when candles touch the above levels
MACD + RSI + Stochastic ReversalMACD Calculation: The script calculates the MACD line, signal line, and histogram.
RSI Calculation: The RSI is calculated and overbought/oversold levels are defined.
Stochastic Oscillator: The %K and %D lines are calculated, and overbought/oversold levels are defined.
Buy/Sell Signals: Buy signals are generated when the MACD line crosses above the signal line, RSI is oversold, and Stochastic is oversold. Sell signals are generated when the MACD line crosses below the signal line, RSI is overbought, and Stochastic is overbought.
This script should now compile and function correctly in TradingView, providing a clear visualization of the MACD, RSI, and Stochastic indicators along with buy and sell signals.
MFX temptimes for asia session, liquidity trading times for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity tradingtimes for asia session, liquidity trading
Johnny's Volatility-Driven Trend Identifier w/ Reversal SignalsJohnny's Volatility-Driven Trend Identifier w/ Reversal Signals is designed to identify high-probability trend shifts and reversals by incorporating volatility, momentum, and impulse-based filtering. It is specifically built for traders who want to capture strong trend movements while minimizing false signals caused by low volatility noise.
By leveraging Rate of Change (ROC), Relative Strength Index (RSI), and Average True Range (ATR)-based volatility detection, the indicator dynamically adapts to market conditions. It highlights breakout trends, reversals, and early signs of momentum shifts using strategically placed labels and color-coded trend visualization.
Inspiration taken from Top G indicator .
What This Indicator Does
The Volatility-Driven Trend Identifier works by:
Measuring Market Extremes & Momentum:
Uses ROC normalization with standard deviation to identify impulse moves in price action.
Implements RSI filtering to determine overbought/oversold conditions that validate trend strength.
Utilizes ATR-based volatility tracking to ensure signals only appear when meaningful market movements are occurring.
Identifying Key Trend Events:
Power Peak (🔥): Marks a confirmed strong downtrend, ideal for shorting opportunities.
Surge (🚀): Indicates a confirmed strong uptrend, signaling a potential long entry.
Soft Surge (↗): Highlights a mild bullish reentry or early uptrend formation.
Soft Peak (↘): Shows a mild bearish reentry or early downtrend formation.
Providing Adaptive Filtering for Reliable Signals:
Filters out weak trends with a volatility check, ensuring signals appear only in strong market conditions.
Implements multi-level confirmation by combining trend strength metrics, preventing false breakouts.
Uses gradient-based visualization to color-code market sentiment for quick interpretation.
What This Indicator Signals
Breakouts & Impulse Moves: 🚀🔥
The Surge (🚀) and Power Peak (🔥) labels indicate confirmed momentum breakouts, where the trend has been validated by a combination of ROC impulse, RSI confirmation, and ATR volatility filtering.
These signals suggest that the market is entering a strong trend, and traders can align their entries accordingly.
Early Trend Formation & Reentries: ↗ ↘
The Soft Surge (↗) and Soft Peak (↘) labels indicate areas where a trend might be forming, but is not yet fully confirmed.
These signals help traders anticipate potential entries before the trend gains full strength.
Volatility-Adaptive Trend Filtering: 📊
Since the indicator only activates in volatile conditions, it avoids the pitfalls of low-range choppy markets where false signals frequently occur.
ATR-driven adaptive windowing allows the indicator to dynamically adjust its sensitivity based on real-time volatility conditions.
How to Use This Indicator
1. Identifying High-Probability Entries
Bullish Entries (Long Trades)
Look for 🚀 Surge signals in an uptrend.
Confirm with RSI (should be above 50 for momentum).
Ensure volatility is increasing to validate the breakout.
Use ↗ Soft Surge signals for early entries before the trend fully confirms.
Bearish Entries (Short Trades)
Look for 🔥 Power Peak signals in a downtrend.
RSI should be below 50, indicating downward momentum.
Volatility should be rising, ensuring market momentum is strong.
Use ↘ Soft Peak signals for early entries before a full bearish confirmation.
2. Avoiding False Signals
Ignore signals when the market is ranging (low ATR).
Check RSI and ROC alignment to ensure trend confirmation.
Use additional confluences (e.g., price action, support/resistance levels, moving averages) for enhanced accuracy.
3. Trend Confirmation & Filtering
The stronger the trend, the higher the likelihood that Surge (🚀) and Power Peak (🔥) signals will continue in their direction.
Soft Surge (↗) and Soft Peak (↘) act as early warning signals before major breakouts occur.
What Makes This a Machine Learning-Inspired Moving Average?
While this indicator is not a direct implementation of machine learning (as Pine Script lacks AI/ML capabilities), it mimics machine learning principles by adapting dynamically to market conditions using the following techniques:
Adaptive Trend Selection:
It does not rely on fixed moving averages but instead adapts dynamically based on volatility expansion and momentum detection.
ATR-based filtering adjusts the indicator’s sensitivity to real-time conditions.
Multi-Factor Confirmation (Feature Engineering Equivalent in ML):
Combines ROC, RSI, and ATR in a structured way, similar to how ML models use multiple inputs to filter and classify data.
Implements conditional trend recognition, ensuring that only valid signals pass through the filter.
Noise Reduction with Data Smoothing:
The algorithm avoids false signals by incorporating trend intensity thresholds, much like how ML models remove outliers to refine predictions.
Adaptive filtering ensures that low-volatility environments do not produce misleading signals.
Why Use This Indicator?
✔ Reduces False Signals: Multi-factor validation ensures only high-confidence signals are triggered.
✔ Works in All Market Conditions: Volatility-adaptive nature allows the indicator to perform well in both trending and ranging markets.
✔ Great for Swing & Intraday Trading: It helps spot momentum shifts early and allows traders to catch major market moves before they fully develop.
✔ Visually Intuitive: Color-coded trends and clear signal markers make it easy to interpret.