Cryptocurrency trend following EMA Ribbon LONG only strategyThis strategy is based on EMA Ribbon and uses multiple indicators to find optimal time to enter/exit the trade and filter out false signals. The script with default setting is developed mainly for trading altcoins/stable coin pair such as ADA/USDT etc on 4h timeframe but it can be applied to any pair/any timeframe with some settings adjustments.
For plot on chart features make sure that you have both study and strategy scripts on chart with same settings.
Strategy settings description:
1. Signal EMA Length - Value for exponencial moving average (slowest from EMA Ribbon)
1a. Buy price toleration (%) - Price deviation for filtering bounces of EMA - price must close defined percents above EMA to open long trade
1b. Sell price toleration (%) - Price deviation for filtering bounces of EMA - price must close defined percents bellow EMA to close long trade
1c. EMA deelay - EMA id delayed by defined bars for smoothening
2. Filter by Fast EMA - Strategy filters signals to prevent buy while coin is dropping
2a. Fast EMA Length - Value for fast exponencial moving average
3. Filter by SMA - Strategy filters signals to confirm trend change
3a. SMA Length - Value for simple moving average
4. Filter by RSI - Strategy filters signals to prevent buing/selling overbought/oversold coins
4a. RSI Length - Length of RSI identificator
4b. RSI Source candle - What price of candle is used for RSI calculation (open, close, high, low)
4c. RSI Long condition - When buy, RSI indicator must be below this value to prevent of buying already overbought coin
4d. RSI Short condition - When sell, RSI indicator must be above this value to prevent of selling already oversold coin
5. RSI Close Trade Condition - Strategy sell coin once RSI reach defined value
5a. RSI close trade condition - Sell once RSI indicator acquires defined value
6. Close trade by Take Profit or Stop Loss Condition (STRATEGY ONLY) - Strategy sell coin once defined take profit / stoploss level is reached
6a. Take Profit (%) - Take profit value in percent
6b. Stop Loss (%) - Stop loss value in percent
6c. Plot targets on chart - defined targets will be plotted as lines on chart
7. Date range from
7a From Year - To run strategy in interval
7b From Month - To run strategy in interval
7c From Day - To run strategy in interval
8. Date range to
8a To Year - To run strategy in interval
8b To Month - To run strategy in interval
8c To Day - To run strategy in interval
9. Wait to confirm the signal
9a Wait candless to buy - strategy will wait defined candless to confirm the signal before buy
9b Wait candless to sell - strategy will wait defined candless to confirm the signal before sell
10. Plotting on chart (STUDY ONLY)
10a Plot signal line channel with bows on chart
10b Plot simple moving average on chart
10c Plot EMA Ribbon on chart
10d Plot recent support and resistance levels on chart
11. Show Every signal (STUDY ONLY) - Unchecked shows only first signal based on strategy. But if you use take profit/stoploss settings within your bot, you might want to rebuy on next signal. Checked shows signal on each candle.
Throw on chart also buld-in RSI indicator and set the same as strategy
Notice that there might be false signals, especially when the coin is not trending or is strongly manipulated. Overall strategy is profitable though. You just take some minor loses and wont miss the big move.
You may also consider to compare buy&hold return vs profit from trading this strategy. In downtrend as we have seen recently, profit may not be as high as you expect but it is still much better than just hold and hope.
You can use the strategy script for fine tunning settings and find best settings for yourself.
Study script helps you to automate trading with use of alerts perharps with 3commas bot or even trade manually based on email/sms notification setted by tradingview
Notice that study script does not handle takeprofit/stoploss order. That is why sell arrows could be plotted by study script later than strategy script. To rebuy after takeprofit/stop-loss use "11. Show Every signal (STUDY ONLY)" setting
Make sure that you keep same settings for strategy and study scripts.
If you need any help with settings do not hesitate to ask. I would also appriciate any feedback and ideas how to improve this script.
Here is backtest result from 1. Nov 2018 using constant 100USD Buy ammount:
在腳本中搜尋"take profit"
ADX+DI+SUPERTREND StrategyThis strategy is a port of famous script from MasaNakamura ADX and DI.
Here is the exact startegy from original study from MasaNakamura MasaNakamura at
In this version, I added also SUPERTREND as filter!
Scope of this port is to identify corrects inputs to get best results from signals that indicator gives.
I added the possibility to choose stop loss and take profits and to smooth the results also with heikin ashi candles.
Please use comment section for any feedback.
Next improvement (only to whom is interested to this script and follows me): study with alerts on multiple tickers all at one. Leave a comment if you want to have access to study.
********************************** IMPORTANT*******************************
I have developed an expert advisor for metatrader4 (MT4) and for jforex platform: results of expert advisor form 2015-01-01 to 2018-11-25 are very good with low drawdown and good profit.
********************************************************************************
ADX and DI StrategyThis strategy is a port of famous script from MasaNakamura ADX and DI
Original study from MasaNakamura MasaNakamura at
Scope of this port is to identify corrects inputs to get best results from signals that indicator gives.
I added the possibility to choose stop loss and take profits and to smooth the results also with heikin ashi candles.
Please use comment section for any feedback.
Next improvement (only to whom is interested to this script and follows me): study with alerts on multiple tickers all at one. Leave a comment if you want to have access to study.
********************************** IMPORTANT*******************************
I have developed an expert advisor for metatrader4 (MT4) and for jforex platform: results of expert advisor form 2015-01-01 to 2018-11-25 are very good with low drawdown and good profit.
********************************************************************************
Cryptocurrency trend following LONG only strategyThis strategy uses multiple indicators to find optimal time to enter/exit the trade. The default setting is mainly for trading bitcoin/stable coin pair such as USDT etc on 1h timeframe but it can be applied to any pair/any timeframe with some settings adjustments.
Strategy settings description:
ID Name Descrption
1 FastMA - Value for fast exponencial moving average
2 SlowEMA - Value for slow exponencial moving average
3 SMA - Value for simple moving average
4 RSI Length - Length of RSI identificator
5 RSI Source candle - What price of candle is used for RSI calculation (open, close, high, low)
6 RSI Long condition - When buy, RSI indicator must be below this value to prevent of buying already overbought coin
7 RSI Short condition - When sell, RSI indicator must be above this value to prevent of selling already oversold coin
8 RSI close trade condition - Sell once RSI indicator acquires defined value
9 Take Profit (%) - Take profit value in percent
10 Stop Loss (%) - Stop loss value in percent
11 Long price toleration (%) - Price deviation for filtering bounces of simple moving average - price must close defined percents above SMA to open long trade
12 Short price toleration (%) - Price deviation for filtering bounces of simple moving average - price must close defined percents bellow SMA to close long trade
13 From Year - To run strategy in interval
14 From Month - To run strategy in interval
15 From Day - To run strategy in interval
16 To Year - To run strategy in interval
17 To Month - To run strategy in interval
18 To Day - To run strategy in interval
19 Show every signal? - (Study only) Unchecked shows only first signal based on strategy. But if you use take profit/stoploss settings within your bot, you might want to rebuy on next signal. Checked shows signal on each candle.
Notice that there are also false signals, especially when the coin is not trending or is strongly manipulated. Overall strategy is profitable though. You just take some minor loses and wont miss the big move.
You may also consider to compare buy&hold return vs profit from trading this strategy. In downtrend as we have seen recently, profit may not be as high as you expect but it is still much better than just hold and hope.
You can use the strategy script for fine tunning settings and find best settings for yourself
Study script helps you to automate trading with use of alerts perharps with 3commas bot or even trade manually based on email/sms notification setted by tradingview
Make sure that you keep same settings for strategy and study scripts.
If you need any help with settings do not hesitate to ask. I would also appriciate any feedback and ideas how to improve this script.
Here is backtest result from 23.08.2017:
-- Ultimate Crypto Trading Strategy -- Backtesting version** This is the backtesting (strategy) version of the ~ Ultimate Crypto Trading Strategy ~ script in TradingView. **
~ Ultimate Crypto Trading Strategy ~
֎ Trading system script on @tradingview that brings the easiest approach to trading with a high profitability rate
֎ Optimized for crypto markets, to catch trend movements as soon as possible and maximize profitability
֎ Sell & Buy alerts, Safeguard mode, Take Profits alerts, auto resistance-support and always adding new features!
֎ Customizable settings.
֎ Users Discord community for learning, sharing and direct support
֎ Ultimate Crypto Trading Strategy Tutorial Video: www.youtube.com www.youtube.com
֎ Safeguard feature (match multiple timeframes signals) explained: youtu.be youtu.be
If you’d like to test the trading script in TradingView, I can give you access to a 10 days trial.
Please send me a message in tradingview and I’ll activate it right away.
Thank you!
Bedrock Bot - BTCUSD 30m Scalper BotBedrock Bot trades on BTCUSD charts and is a high frequency scalper bot - for those that like a little more action.
The strategy was developed for use on more recent market conditions - smaller trends within larger sideways ranges. It will work in trends as well. It is made for quick take profits and tight stop losses to maximize overall profit and minimize losses (check out the win ratio and downdraw results). It does not trade on the weekends as much of the volume is now weekday based.
Backtest results look great and we have been running this bot on live markets as well in forward testing with profit results.
These live tests were done exclusively on BitMex and by using automation on Crypto Bots Hub . Monthly returns have been around 8% - you may think this doesn't sound amazing but understand compound interest and do check out the win percentage and downdraw. In these sideways markets, this can keep building your profits slow and steady with minimal risk.
The bot controls entries, stop losses, and take profits as part of the code.
Message me on information to get free access.
Golden Cross, SMA 200 Moving Average Strategy (by ChartArt)This famous moving average strategy is very easy to follow to decide when to buy (go long) and when to take profit.
The strategy goes long when the faster SMA 50 (the simple moving average of the last 50 bars) crosses above the slower SMA 200. Orders are closed when the SMA 50 crosses below the SMA 200. This simple strategy does not have any other stop loss or take profit money management logic. The strategy does not short and goes long only!
Here is an article explaining the "golden cross" strategy in more detail:
www.stockopedia.com
On the S&P 500 index (symbol "SPX") this strategy worked on the daily chart 81% since price data is available since 1982. And on the DOW Jones Industrial Average (symbol "DOWI") this strategy worked on the daily chart 55% since price data is available since 1916. The low number of trades is in both cases not statistically significant though.
All trading involves high risk; past performance is not necessarily indicative of future results. Hypothetical or simulated performance results have certain inherent limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not actually been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown.
UT Bot - Non-Repainting DRMUT Bot Non-Repainting Strategy with Dynamic Risk Management (DRM)
Overview:
This comprehensive TradingView strategy is built upon the popular UT Bot concept, meticulously engineered to be strictly non-repainting. It offers traders a robust framework for systematic trading with highly configurable dynamic risk management (DRM) options, multiple filters, and clear visual signals.
All trading decisions, including signal generation, filter checks, stop-loss/take-profit calculations, and position sizing, are based on confirmed data from the previous closed bar ( ), ensuring realistic backtesting results and preventing look-ahead bias.
Key Features:
Non-Repainting Core Logic:
Signals are generated based on crossovers/crossunders of the previous bar's close (close ) and a dynamic ATR-based trailing stop line (xATRTrailingStop), which itself is calculated using previous bar data.
Adjustable Key Value (Sensitivity) and ATR Period for the core signal.
Trade Direction Control:
Flexibility to trade "Long Only", "Short Only", or "Both" directions.
Advanced Dynamic Risk Management (DRM):
Two Styles to Choose From:
ATR Based: Stop Loss determined by an ATR multiplier, with Take Profit calculated using a Risk/Reward ratio relative to this ATR-defined stop.
Percentage Based: Stop Loss set as a fixed percentage of the entry price, with Take Profit based on a specified Risk/Reward ratio.
Risk Per Trade: Dynamically calculates position size based on a user-defined percentage of account equity to risk on each trade.
Optional Trailing Stop (Percentage Based): Includes a configurable trailing stop with parameters for activation threshold (Trailing Start %) and trailing distance (Trailing Stop %).
Comprehensive Filtering System (All Non-Repainting):
Trend Filter: Utilizes an Exponential Moving Average (EMA) to align trades with the prevailing market trend.
Volume Filter: Employs a Simple Moving Average (SMA) of volume to help confirm trades with adequate market participation.
ADX Filter: Filters trades based on trend strength using the Average Directional Index (ADX), allowing trades only when ADX is above a defined threshold.
Crucially, all filter conditions are evaluated using data from the previous bar ( ) to maintain the strategy's non-repainting nature.
Date Range Filter:
Option to backtest and operate the strategy within specific start and end dates.
Clear Visualizations:
Plots the core xATRTrailingStop (UT Signal Line) on the chart.
Displays the Trend Filter EMA when enabled.
Provides clear "Buy" and "Sell" labels on the chart for entry signals.
Plots active Stop Loss and Take Profit levels for open positions, offering a visual guide to trade management.
Alerts:
Configurable alerts for "UT Long" and "UT Short" entry signals, compatible with TradingView's alert system for automation or notification.
How It Works (Non-Repainting Explained):
The strategy's design philosophy centers around avoiding repaint, ensuring that historical performance accurately reflects how it would have performed in real-time:
Entry Signals: Buy or Sell signals are triggered based on the close (previous bar's close) crossing the xATRTrailingStop (which is also calculated using data).
Filter Conditions: All filters (Trend, Volume, ADX) evaluate their conditions using data strictly from the previous, fully formed bar ( ).
Risk & Position Size Calculation: Stop Loss distances and subsequent position sizes are determined using data available at the close of the signal-generating bar (e.g., close , xATR ).
Trade Management: Initial Stop Loss and Take Profit levels are set based on the entry price and risk parameters derived from data. Trailing stop adjustments also reference previous bar data (close , high , low ).
This meticulous approach ensures that all calculations and decisions are made using historical, settled data, providing reliable backtest results.
How to Use:
Add the "UT Bot - Non-Repainting DRM" script to your TradingView chart.
Open the script's settings (click the ⚙️ icon).
Configure Core Logic: Adjust Key Value and ATR Period.
Set Trading Preferences: Choose Trade Direction.
Define Risk Management:
Select Risk Management Style (ATR Based or Percentage Based).
Input parameters for your chosen style (e.g., Stop Loss ATR Multiplier, Take Profit R/R Ratio, Stop Loss (%), Trailing Stop settings).
Set your desired Risk Per Trade (%) for position sizing.
Apply Filters: Enable and configure the Trend Filter, Volume Filter, and ADX Filter as needed.
Date Range: If desired, set the Start Date and End Date for backtesting.
Observe the plotted signals, signal line, and SL/TP levels on your chart.
To receive notifications or automate, create alerts in TradingView using the "UT Long" and "UT Short" alert conditions provided by the script.
Disclaimer:
Trading involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. This script is provided for educational and informational purposes only and should not be considered financial advice. Always conduct your own thorough research, risk assessment, and backtesting before making any trading decisions. Use at your own risk.
MACD 直方图背离 + 连续N柱动能 + 量能/RSI 过滤(含固定 TP/SL + 追踪止盈)Sure, here’s the text without any headings, bullet points, or extra spacing, compressed into a continuous form:
This strategy combines MACD histogram divergence with multi-bar momentum confirmation supported by volume and RSI filters. It detects early reversals using MACD divergence, confirms trends with consecutive momentum bars to reduce false signals, and ensures market support with volume and RSI before entry. Risk is managed by fixed take profit and stop loss levels plus a dynamic trailing stop that locks in profits automatically when the price moves favorably. Backtests on BTC/ETH show a profit factor around 1.3, a win rate near 30%, max drawdown about 24%, and over 1,000 trades. Results may vary by market and timeframe. It suits swing or trend traders seeking reversal detection combined with confirmation, those preferring rule-based low-maintenance strategies, and anyone aiming for consistent profits with controlled risk. Search “MACD Divergence Pro” on TradingView or contact us for early access. Automate your edge, trade with discipline, and let the strategy handle the work.
Pierre's H4 EMA/MA Compression Strategy (BTC)Pierre's logic and trading strategy from the X post and its related threads. The post focuses on Bitcoin (BTC) price action on a 4-hour (H4) chart, using Exponential Moving Averages (EMAs) and Moving Averages (MAs) to identify a potential "EMA/MA compression" scenario, which is a key part of his analysis.
Summary of Pierre's Logic
Pierre is analyzing Bitcoin's price movement on the H4 timeframe, focusing on a technical pattern he calls "EMA/MA compression." This concept is central to his analysis and involves the interaction of key moving averages (H4 100 MA, H4 200 EMA, and H4 300 MA) to predict price behavior. Here's the breakdown of his logic:
EMA/MA Compression Concept:
Pierre describes "EMA/MA compression" as a scenario where the price consolidates around key moving averages, leading to a tightening of volatility before a breakout or breakdown.
In this case, the H4 100 MA, H4 200 EMA, and H4 300 MA are the critical levels to watch. These moving averages act as dynamic support/resistance levels, and their behavior (break, hold, or flip) dictates the trend direction.
He notes that this compression often follows a cycle: EMA/MA compression → Trend → Gap Fills → Repeat. This cycle suggests that after a compression phase, the price tends to trend, fill any price gaps, and then return to another compression phase.
Key Levels and Conditions for a Bullish Scenario:
H4 100 MA: Must break or flip to the upside. A break above this level signals bullish momentum, while a failure to hold above it (a "flip") invalidates the bullish case.
H4 200 EMA: Acts as an "intermediary" level that must hold during pullbacks. If this level holds, it supports the bullish structure.
H4 300 MA: A critical support level. It must hold to keep the bullish scenario intact. If the price loses this level (and it flips to resistance), the bullish outlook is invalidated.
Pierre mentions that after the price breaks the H4 100 MA, it should aim to fill gaps between 109.5 and 110.5 (likely in thousands, so $109,500–$110,500). If the H4 200 EMA holds, the price might pull back to the H4 300 MA, where it could consolidate further before continuing the trend.
Invalidation Scenarios:
The bullish scenario is invalidated if:
The H4 100 MA is broken and flips to resistance (i.e., price closes below it after initially breaking above).
The H4 300 MA is lost and flips to resistance (i.e., price closes below it and fails to reclaim it).
Current Market Context:
Pierre notes a "nice bounce" in BTC's price, bringing it back into the compression zone. The price is currently fighting a key area on lower timeframes (LTF), likely referring to shorter timeframes like H1 or M15.
He mentions that all gaps have been filled for now (referencing the cycle of gap fills), which aligns with his expectation of reduced volatility as the price enters another compression phase.
Historical Context and Consistency:
Pierre has been tracking this scenario since the H4 100 MA break, as shared in his group @TheHavenCrypto
. He references notes from Monday (likely June 2, 2025, as the post is from June 6), indicating that his analysis has been consistent over the week.
In a follow-up post, he reflects on a recent trade where he took partial profits on the bounce but couldn’t fully capitalize on the move due to being on his phone and managing only a fraction of his intended position size near the H4 300 MA (for BTC) and H4 200 EMA (for ETH).
Pierre's Trading Strategy
Based on the post and its context, Pierre’s trading strategy revolves around the EMA/MA compression framework. Here’s how he approaches trades:
Setup Identification:
Pierre identifies setups using the H4 timeframe, focusing on the interaction of the H4 100 MA, H4 200 EMA, and H4 300 MA.
He looks for a "compression" phase where the price consolidates around these moving averages, signaling a potential breakout or breakdown.
In this case, the price breaking the H4 100 MA to the upside was his initial signal for a bullish setup.
Entry Points:
Pierre likely entered a long position (buy) near the H4 300 MA or H4 200 EMA during the recent bounce, as he mentions taking partial profits on the move.
He prefers entering after a pullback to these key levels (e.g., H4 200 EMA or H4 300 MA) as long as they hold as support. For example, in Thread 1 (Post 1930270942871118081), he shares a chart showing a long entry near the H4 300 MA with an upside target near 110,000–111,000.
Target Setting:
His primary target after the H4 100 MA break is to fill gaps between $109,500 and $110,500.
If the price reaches these levels and the H4 200 EMA holds, he expects a potential pullback to the H4 300 MA, followed by another leg up (as part of the trend phase in his cycle).
Risk Management:
Pierre sets clear invalidation levels:
A close below the H4 100 MA after breaking above it.
A close below the H4 300 MA with a failure to reclaim it.
He takes partial profits on bounces, as seen in his follow-up post where he mentions securing gains but not fully capitalizing on the move due to limited position size.
Position Sizing and Execution:
Pierre mentions being limited by trading from his phone, which restricted his position size. This suggests he typically scales into trades with a planned size but adjusts based on execution conditions.
He also notes going "AFK for the weekend" after taking profits, indicating a disciplined approach to stepping away from the market when not actively monitoring.
Cycle-Based Trading:
His strategy follows the cycle of EMA/MA compression → Trend → Gap Fills → Repeat. After the gaps are filled, he expects volatility to tighten (another compression phase), which could set up the next trade.
Key Takeaways for Traders
Focus on Key Levels: Pierre’s strategy hinges on the H4 100 MA, H4 200 EMA, and H4 300 MA. These levels are used to confirm trends, identify entries, and set invalidation points.
Patience for Compression: He waits for the price to enter a compression phase (tight consolidation around MAs) before expecting a breakout or breakdown.
Gap-Filling as a Target: Pierre uses price gaps (e.g., $109,500–$110,500) as targets, aligning with the market’s tendency to fill these gaps (as noted in the related web result from investing.com about CME gaps).
Risk Management: He has clear invalidation rules and takes partial profits to lock in gains while letting the trade play out.
Cycle Awareness: His trades are part of a broader cycle (compression → trend → gap fill → repeat), which helps him anticipate market behavior.
Additional Context from Related Threads
Thread 1 (June 4–June 6): Pierre’s earlier posts (e.g., Post 1930270942871118081) show historical examples of EMA/MA compression leading to trends and gap fills, reinforcing his current analysis. He also shares a chart with a potential upside target of $110,000–$111,000 if the H4 300 MA holds.
Thread 2 (June 3): Pierre mentions a Daily (D1) timeframe analysis where the D1 100 MA and D1 200 EMA align with range lows, suggesting a potential "wet dream swing long opportunity" if the price holds these levels. This indicates he’s also considering higher timeframes for confirmation.
Thread 3 (May 27): Pierre’s earlier analysis highlights similar concepts (e.g., H4 100 MA break, H4 200 EMA hold), showing consistency in his approach over time.
Conclusion
Pierre’s logic is rooted in technical analysis, specifically the interaction of moving averages on the H4 timeframe to identify "EMA/MA compression" setups. His strategy involves buying on pullbacks to key support levels (H4 200 EMA, H4 300 MA) after a breakout (H4 100 MA), targeting gap fills ($109,500–$110,500), and managing risk with clear invalidation levels. He follows a cyclical approach to trading, expecting periods of compression, trending, and gap-filling to repeat, which guides his entries, exits, and overall market outlook.
RSI Reversal Pro [跨 10 周期 OR] (Vol + 阳线多/阴线空)Easily capture overbought/oversold reversals using RSI signals from 10 timeframes with OR logic, enhanced with a volume spike filter. Built-in stop loss and take profit protection. Entries rely on just three elements: RSI extreme → volume breakout → candle direction.
Why Try It?
• Works on any asset: Crypto, Forex, Indices, and more
• Multi-timeframe ready: From 15min up to 3-day charts
• No pyramiding: Fixed SL at 1.5% and TP at 2% for clean risk management
Total Net Profit: +204,734.18 USDT (+20.47%)
Max Equity Drawdown: 21,709.20 USDT (1.88%)
Total Trades: 20
Winning Trades: 75.00% (15 wins / 5 losses)
Profit Factor: 11.635
Note
This is a lite showcase version with simplified logic for educational and testing purposes.
HolyGrail by FX War RoomBelow is a concise and professional description for publishing your "HolyGrail by FX War Room" strategy on TradingView. The description is designed to clearly explain the strategy's purpose, functionality, and usage while adhering to TradingView's guidelines for script publication.
---
### HolyGrail by FX War Room
**Description**
The HolyGrail strategy is a breakout trading system designed to capture price movements outside a user-defined time range. It identifies the highest high and lowest low within a specified session (e.g., market open hours) and triggers long or short trades when the price breaks above the session high or below the session low. The strategy includes risk management with customizable stop-loss and take-profit levels, making it suitable for traders seeking a structured approach to breakout trading.
**Key Features**
- **Customizable Time Range**: Users can set the start and end times (HH:MM) to define the session for calculating the high and low range.
- **Breakout Signals**: Enters long trades on breakouts above the session high and short trades on breakouts below the session low.
- **Visual Cues**: Highlights the active time range with a green background and draws dashed lines for the session high (red) and low (blue). Labels mark "BUY" and "SELL" signals for clarity.
- **Risk Management**: Configurable position size, stop-loss, and take-profit levels (in pips) to align with your trading plan.
- **Flexible Application**: Works across various markets (forex, stocks, crypto) and timeframes when adjusted appropriately.
**How It Works**
1. During the user-defined time range (e.g., 9:00–17:00), the strategy tracks the highest high and lowest low over a 31-bar lookback period.
2. When the time range ends, horizontal lines are drawn at the session high and low.
3. A long trade is triggered when the price closes above the session high, with a stop-loss below the entry and a take-profit above it.
4. A short trade is triggered when the price closes below the session low, with a stop-loss above the entry and a take-profit below it.
5. Trades are exited automatically based on the stop-loss or take-profit levels.
**Settings**
- **Start Hour/Minute**: Set the start time of the session (e.g., 9:00).
- **End Hour/Minute**: Set the end time of the session (e.g., 17:00).
- **Position Size**: Number of contracts/lots per trade (default: 1.0).
- **Stop Loss (Pips)**: Distance for stop-loss (default: 20 pips).
- **Take Profit (Pips)**: Distance for take-profit (default: 40 pips).
**Usage Tips**
- Adjust the time range to match the most active trading session for your instrument (e.g., London session for forex).
- Test the strategy on a demo account or backtest with your preferred market and timeframe to optimize settings.
- Ensure stop-loss and take-profit levels align with your risk management rules.
- Consider market volatility when setting position size and pip values.
**Disclaimer**
Trading involves risk, and past performance is not indicative of future results. Always test strategies thoroughly and use proper risk management. This strategy is provided for educational purposes and should be used at your discretion.
Stoch bot s50!Stoch S50 Strategy — Trend Analysis and Trading Force Strategy
Stoch S50 Strategy is a trend analysis strategy designed to help users assess entry and exit points based on price direction. It uses a combination of technical tools such as Stochastic, RSI, EMA and trading volume filters to increase the accuracy of signals. It is suitable for assets with clear trends such as S50 Futures.
Preliminary warning
This strategy is developed to be used as a tool to help analyze only. It should not be used as an automatic trading signal. Users should study the data, backtest and assess the risks by themselves before using it for real.
Key features of the strategy
Use the EMA50 line to assess the main trend.
Uptrend: Closing price is above EMA50
Downtrend: Closing price is below EMA50
Conditions for analyzing entry points
Uptrend case:
Stochastic < 25 (in the Oversold zone)
RSI > 50 (Strong momentum)
Trading volume is greater than the 20-day average (if enabled)
Downtrend case:
Stochastic > 75 (in the Overbought zone)
RSI < 50
Selling volume is greater than the 20-day average (if enabled)
Risk management system in the strategy example
Set automatic profit (Take Profit) at 120 ticks
Limit loss (Stop Loss) at 40 ticks
There is a Trailing Stop system to lock in profits if the price moves in the desired direction (40 points + offset 15)
Important note
This strategy is designed by considering the characteristics of assets such as S50 Futures, which have clear trends and volumes. Users who are interested in using it with individual stocks, crypto or Forex should backtest and adjust the parameters to suit the asset before actual use.
ETH Compounder [crankyprofits]Overview
ETH Compounder is a 15-minute trading strategy built for Ethereum (ETH/USD), combining trend confirmation, momentum shifts, and structured risk management. This strategy is designed to catch trend breakouts with high conviction and compound profits using multiple take-profit levels.
Core Strategy Logic
Trend Direction: Uses Hull Moving Average to determine market bias.
Breakout Entry: Enters on price breakout above/below a Keltner Channel.
Momentum Trigger: Combines MACD and STC-style momentum to validate entry points.
Heikin Ashi Candles: Used internally to smooth price action for cleaner signals.
No Pyramiding: Only one trade at a time to avoid stacking entries during choppy markets.
Profit-Taking System
The strategy features a tiered take-profit system:
TP1: ~2% gain (100% in free version)
TP2–TP4: Additional tiers reserved for premium builds
This approach allows partial exits to lock in gains while letting remaining position ride the trend.
Risk Management
Default stop loss: ~4.75% from entry
Trailing stop based on Keltner channel and trend strength
Alerts included for Buy, Sell, and Close signals
Best Use Case
This script is optimized for ETH/USD on 15m timeframes. Tuned for Binance out of the box. Ideal for traders who want a semi-passive, momentum-based system that avoids constant screen-watching.
Alerts
Custom alerts are available for:
Buy Entry
Sell Entry
Exit Signal (TP or SL)
TP1–TP4 (for granular control)
Disclaimer
This script is for educational purposes only and does not constitute financial advice. Always backtest and use proper risk management before live trading.
Want to unlock premium features & get alerts? Join our Discord: discord.gg
🔥Scalping Fusion Strategy v6🔥Scalping Fusion (v6)
✅ Overview:
This is a powerful intraday scalping strategy that combines two Super Trend systems:
Pivot Super Trend – uses dynamic pivot highs/lows and ATR-based bands.
Classic Super Trend – a traditional ATR-based trailing trend filter.
By combining both, the strategy ensures strong trend confirmation before taking trades.
⚙️ Core Logic:
Buy Entry:
Pivot Super Trend turns Bullish (Trend = 1)
Classic Super Trend also Bullish
Pivot Trend must have just changed from Bearish to Bullish
Sell Entry:
Pivot Super Trend turns Bearish (Trend = -1)
Classic Super Trend also Bearish
Pivot Trend must have just changed from Bullish to Bearish
🎯 Stop Loss / Take Profit:
Based on ATR (14):
Stop Loss = Entry ± 1.5 × ATR
Target = Entry ± 3.0 × ATR
This ensures dynamic SL/TP based on market volatility.
📈 Key Features:
Dual Super Trend Confirmation = Reduces false entries
ATR-based Stop Loss & Target = Adaptive to volatility
Pivot-based Trend Detection = Detects strong reversals
Buy/Sell labels + alerts for easy visual and automated trading
⏱️ Recommended Timeframe:
3-Minute or 5-Minute charts
Ideal for fast scalping and high-frequency trading sessions.
🧪 Backtest Suggestions:
Use during high volume hours (e.g., 9:15 AM – 2:30 PM)
Filter trades using volume or session-based logic
Consider adding maximum trades per day for better risk control
Pin Bar Reversal StrategyStrategy: Pin Bar Reversal with Trend Filter
One effective high-probability setup is a Pin Bar reversal in the direction of the larger trend. A pin bar is a candlestick with a tiny body and a long wick, signaling a sharp rejection of price
By itself, a pin bar often marks a potential reversal, but not all pin bars lead to profitable moves. To boost reliability, this strategy trades pin bars only when they align with the prevailing trend – for example, taking a bullish pin bar while the market is in an uptrend, or a bearish pin bar in a downtrend. The trend bias can be determined by a long-term moving average or higher timeframe analysis.
Why it works: In an uptrend, a bullish pin bar after a pullback often indicates that sellers tried to push price down but failed, and buyers are resuming control. Filtering for pin bars near key support or moving averages further improves odds of success. This aligns the entry with both a strong price pattern and the dominant market direction, yielding a higher win rate. The pin bar’s own structure provides natural levels for stop and target placement, keeping risk management straightforward.
Example Setup:
USDCHF - 4 Hour Chart
Trend SMA 12
Max Body - 34
Min Wick - 66
ATR -15
ATR Stop Loss Multiplier - 2.3
ATR Take Profit Multiplier - 2.9
Minimum ATR to Enter - 0.0025
Momentum Long + Short Strategy (BTC 3H)Momentum Long + Short Strategy (BTC 3H)
🔍 How It Works, Step by Step
Detect the Trend (📈/📉)
Calculate two moving averages (100-period and 500-period), either EMA or SMA.
For longs, we require MA100 > MA500 (uptrend).
For shorts, we block entries if MA100 exceeds MA500 by more than a set percentage (to avoid fading a powerful uptrend).
Apply Momentum Filters (⚡️)
RSI Filter: Measures recent strength—only allow longs when RSI crosses above its smoothed average, and shorts when RSI dips below the oversold threshold.
ADX Filter: Gauges trend strength—ensures we only enter when a meaningful trend exists (optional).
ATR Filter: Confirms volatility—avoids choppy, low-volatility conditions by requiring ATR to exceed its smoothed value (optional).
Confirm Entry Conditions (✅)
Long Entry:
Price is above both MAs
Trend alignment & optional filters pass ✅
Short Entry:
Price is below both MAs and below the lower Bollinger Band
RSI is sufficiently oversold
Trend-blocker & ATR filter pass ✅
Position Sizing & Risk (💰)
Each trade uses 100 % of account equity by default.
One pyramid addition allowed, so you can scale in if the move continues.
Commission and slippage assumptions built in for realistic backtests.
Stops & Exits (🛑)
Long Stop-Loss: e.g. 3 % below entry.
Long Auto-Exit: If price falls back under the 500-period MA.
Short Stop-Loss: e.g. 3 % above entry.
Short Take-Profit: e.g. 4 % below entry.
🎨 Why It’s Powerful & Customizable
Modular Filters: Turn on/off RSI, ADX, ATR filters to suit different market regimes.
Adjustable Thresholds: Fine-tune stop-loss %, take-profit %, RSI lengths, MA gaps and more.
Multi-Timeframe Potential: Although coded for 3 h BTC, you can adapt it to stocks, forex or other cryptos—just recalibrate!
Backtest Fine-Tuned: Default settings were optimized via backtesting on historical BTC data—but they’re not guarantees of future performance.
⚠️ Warning & Disclaimer
This strategy is for educational purposes only and designed for a toy fund. Crypto markets are highly volatile—you can lose 100 % of your capital. It is not a predictive “holy grail” but a rules-based framework using past data. The parameters have been fine-tuned on historical data and are not valid for future trades without fresh calibration. Always practice with paper-trading first, use proper risk management, and do your own research before risking real money. 🚨🔒
Good luck exploring and experimenting! 🚀📊
Ai BTC Signals Buy & Whales / Liquidation - Strategy [Ai Whales]Dear Trader,
The development involved professional analysts and incorporated AI to adapt signals to the modern, constantly changing, and highly volatile BTCUSD market, also taking into account the presence and actions of large institutional players — the so-called "Whales." The strategy allows you to instantly evaluate any configuration you set within the indicator and see the results reflected in professional performance metrics aligned with your chosen strategy.
The indicator displays several signals on the chart:
1) Buy signal (not sell signals)
2) Take profit line and price
3) Stop loss line and price
4) Manipulations & Liquidations observed in the market
5) Whale activity—buying in small, medium, and large amounts
The indicator does not repaint because it is based on showing signals only after the candle closes, so the calculations are true and not distorted.
Recommended pair: BTCUSD ; BTCUSDT ; BTCUSDTP and same.
The indicator can show R/R - 0.5:1 1:1 1:2 1:3 1:4
Recommended timeframes for use: from 4 hours up to 1 week, with the ideal being 1 day. However, you are free to experiment with other near timeframes.
Possible trading modes: spot or futures.
Some methods used in the calculations of the indicator:
- statistical patterns that have the ability to repeat in the future. Bitcoin cycles in different market phases that also have the ability to repeat and are included in the indicator,
- miners' capitulation and hashrate level are also taken into account by the indicator,
- candle volumes and their deltas are taken into account in the calculations,
- as well as other bases such as RSI and its divergence, the crossing of EMA of various configurations and etc.
**How the strategy calculates positions:**
A position opens at the Buy signal level and is fixed at the level of the thick green line, which serves as the primary take profit target. Pyramiding (adding to positions) can be enabled in the settings.
The size of each position is adjustable via the settings. Importantly, each signal creates its own take profit lines. When pyramiding is enabled, all positions are eventually closed at the nearest take profit level generated by any of the pyramiding signals. This approach minimizes potential losses if the price doesn’t reach the maximum take profit levels initially set; the strategy closes positions at the closest available take profit level. This conservative method for strategy reduces risk, although ideally, each position in the pyramid should be closed at an individual take-profit level, which would lead to even better results during deep backtesting.
The strategy includes alerts that can be configured based on your platform’s capabilities. Alerts trigger on the chart when "Buy" or "Whale" signals are detected.
**Settings Overview:**
- Inside the strategy: default platform options.
- Inside the indicato have some filters:
1) allows traders to choose display modes
2) position entries based on market phase—rising or falling
3) can also select whether to trade after manipulations and liquidations
4) can also select whether to trade after whale activity (small medium or big amounts of whales).
You can manually adjust take profit and stop loss levels via simple method selections, making these flexible yet user-friendly. The indicator offers three main styles:
- "Universal" (standard levels)
- "Aggressive"
- "Conservative"
**Performance and caveats:**
Deep Backtested from day one of Bitcoin’s listing on various exchanges under specific conditions (no liquidations, certain settings), the indicator has shown a maximum drawdown of about 5-15%, with final returns surpassing "buy and hold" more than 1000000% and WinRate 93-100% However, it’s crucial to understand that such spectacular past performance does not guarantee future results.
If you are serious about your investments, remember that geopolitical events, institutional shifts, or other unforeseen factors can significantly impact Bitcoin’s price—or even its existence. Unfortunately, AI has not yet learned to fully account for these macro conditions within its adaptive mechanisms.
Trade wisely, and use this powerful tool responsibly.
Best regards,
Fusion Sniper X [ Crypto Strategy]📌 Fusion Sniper X — Description for TradingView
Overview:
Fusion Sniper X is a purpose-built algorithmic trading strategy designed for cryptocurrency markets, especially effective on the 1-hour chart. It combines advanced trend analysis, momentum filtering, volatility confirmation, and dynamic trade management to deliver a fast-reacting, high-precision trading system. This script is not a basic mashup of indicators, but a fully integrated strategy with logical synergy between components, internal equity management, and visual trade analytics via a customizable dashboard.
🔍 How It Works
🔸 Trend Detection – McGinley Dynamic + Gradient Slope
McGinley Dynamic is used as the baseline to reflect adaptive price action more responsively than standard moving averages.
A custom gradient filter, calculated using the slope of the McGinley line normalized by ATR, determines if the market is trending up or down.
trendUp when slope > 0
trendDown when slope < 0
🔸 Momentum Confirmation – ZLEMA-Smoothed CCI
CCI (Commodity Channel Index) is used to detect momentum strength and direction.
It is further smoothed with ZLEMA (Zero Lag EMA) to reduce noise while keeping lag minimal.
Entry is confirmed when:
CCI > 0 (Bullish momentum)
CCI < 0 (Bearish momentum)
🔸 Volume Confirmation – Relative Volume Spike Filter
Uses a 20-period EMA of volume to calculate the expected average.
Trades are only triggered if real-time volume exceeds this average by a user-defined multiplier (default: 1.5x), filtering out low-conviction signals.
🔸 Trap Detection – Wick-to-Body Reversal Filter
Filters out potential trap candles using wick-to-body ratio and body size compared to ATR.
Avoids entering on manipulative price spikes where:
Long traps show large lower wicks.
Short traps show large upper wicks.
🔸 Entry Conditions
A trade is only allowed when:
Within selected date range
Cooldown between trades is respected
Daily drawdown guard is not triggered
All of the following align:
Trend direction (McGinley slope)
Momentum confirmation (CCI ZLEMA)
Volume spike active
No trap candle detected
🎯 Trade Management Logic
✅ Take Profit (TP1/TP2 System)
TP1: 50% of the position is closed at a predefined % gain (default 2%).
TP2: Remaining 100% is closed at a higher profit level (default 4%).
🛑 Stop Loss
A fixed 2% stop loss is enforced per position using strategy.exit(..., stop=...) logic.
Stop loss is active for both TP2 and primary entries and updates the dashboard if triggered.
❄️ Cooldown & Equity Protection
A user-defined cooldown period (in bars) prevents overtrading.
A daily equity loss guard blocks new trades if portfolio drawdown exceeds a % threshold (default: 2.5%).
📊 Real-Time Dashboard (On-Chart Table)
Fusion Sniper X features a futuristic, color-coded dashboard with theme controls, showing:
Current position and entry price
Real-time profit/loss (%)
TP1, TP2, and SL status
Trend and momentum direction
Volume spike state and trap candle alerts
Trade statistics: total, win/loss, drawdown
Symbol and timeframe display
Themes include: Neon, Cyber, Monochrome, and Dark Techno.
📈 Visuals
McGinley baseline is plotted in orange for trend bias.
Bar colors reflect active positions (green for long, red for short).
Stop loss line plotted in red when active.
Background shading highlights active volume spikes.
✅ Why It’s Not Just a Mashup
Fusion Sniper X is an original system architecture built on:
Custom logic (gradient-based trend slope, wick trap rejection)
Synergistic indicator stacking (ZLEMA-smoothed momentum, ATR-based slope)
Position and equity tracking (not just signal-based plotting)
Intelligent risk control with take-profits, stop losses, cooldown, and max loss rules
An interactive dashboard that enhances usability and transparency
Every component has a distinct role in the system, and none are used as-is from public sources without modification or integration logic. The design follows a cohesive and rule-based structure for algorithmic execution.
⚠️ Disclaimer
This strategy is for educational and informational purposes only. It does not constitute financial advice. Trading cryptocurrencies involves substantial risk, and past performance is not indicative of future results. Always backtest and forward-test before using on a live account. Use at your own risk.
📅 Backtest Range & Market Conditions Note
The performance results displayed for Fusion Sniper X are based on a focused backtest period from December 1, 2024 to May 10, 2025. This range was chosen intentionally due to the dynamic and volatile nature of cryptocurrency markets, where structural and behavioral shifts can occur rapidly. By evaluating over a shorter, recent time window, the strategy is tuned to current market mechanics and avoids misleading results that could come from outdated market regimes. This ensures more realistic, forward-aligned performance — particularly important for high-frequency systems operating on the 1-hour timeframe.
Dumb Money ConceptUse in 1 minute timeframe
1. Strategy setup
Name & sizing: Trades 25% of your account on each signal, assumes 0.04% commission + 2‑tick slippage, starts with a notional 10 million.
Timing: Only makes decisions at each 1‑minute bar close, and processes orders at bar‑close.
2. Optional filters (both default to off)
Volatility filter : when on, requires that yesterday’s ATR (average true range) ≥ your threshold before even placing an entry.
Trend filter : when on, only allows a “long” if yesterday’s close was above its daily MA, or a “short” if below.
You can toggle each filter on/off and adjust ATR period, ATR threshold, and MA length through the inputs at the top.
3. Signal logic (“dumb money” wicks)
At today’s first minute, the script pulls yesterday’s open, high, low, close, ATR and MA—using only completed daily bars so nothing repaints.
It measures the size of yesterday’s upper wick (close→high) vs. lower wick (open→low).
If the upper wick was longer, that sets a long bias (“dumb money” got shaken out at the top). Otherwise it sets a short bias.
4. Calculate where to place orders
On that same first minute of day:
Entry: a limit order at half of yesterday’s range away from today’s open (below the open for longs, above for shorts).
Stop‑loss: one full‑range (×1.0) below today’s open for longs (and above for shorts).
Take‑profit: 1.236× yesterday’s range above today’s open for longs (and below for shorts).
5. Apply filters before sending entry
Before actually placing that limit order, it checks:
Volatility: if enabled, requires yesterday’s ATR ≥ your “Min Daily ATR.”
Trend: if enabled, requires yesterday’s close to lie on the same side of its daily MA as your signal.
If either filter fails, no order is sent.
6. Give the limit order up to 24 hours to fill
The code remembers the bar‑index when the order went live.
If 1440 one‑minute bars pass (≈24 h) without a fill, it automatically cancels the unfilled entry—so stale orders don’t hang around.
7. Once filled, TP/SL manage the trade
As soon as your limit order executes, two opposite orders are placed:
A take‑profit at the 1.236× range level
A stop‑loss at the –1.0× range level
One cancels the other when triggered.
8. No overnight risk
On the very first minute of the next daily bar, any position still open is force‑closed (“Time Exit”)
Fibonacci + TP/SL Strategy [Backtest]✅ Key Features Added and Adjusted:
Fibonacci Retracement Levels:
Automatically calculated based on the last 100 bars' high/low
Plotted levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
Extension targets: 161.8%, 261.8%, 423.6%
Buy/Sell Signal Logic:
Buy: Price is between 78.6% and 38.2% levels
Sell: Price is between 61.8% and 23.6% levels
Both depend on a can_trade time filter to avoid overtrading
ATR-based Stop-Loss:
Stop-loss dynamically adapts to market volatility:
SL = Entry - ATR * 1.5 (long)
SL = Entry + ATR * 1.5 (short)
Fixed Take-Profit:
Configurable via input: default is 4%
Can be changed in TradingView UI
Golden/Death Cross Indicator (Visual Only):
EMA 50 crossing EMA 200 plotted on chart:
Golden Cross = Buy signal (green triangle)
Death Cross = Sell signal (red triangle)
Weekly Profit Cap:
Prevents new trades if weekly profit exceeds 15%
Resets at the start of every week
Visual Elements:
All Fibonacci levels are plotted
Buy/Sell signals are labeled on the chart (BUY, SELL)
External Signals Strategy Tester v5External Signals Strategy Tester v5 – User Guide (English)
1. Purpose
This Pine Script strategy is a universal back‑tester that lets you plug in any external buy/sell series (for example, another indicator, webhook feed, or higher‑time‑frame condition) and evaluate a rich set of money‑management rules around it – with a single click on/off workflow for every module.
2. Core Workflow
Feed signals
Buy Signal / Sell Signal inputs accept any series (price, boolean, output of request.security(), etc.).
A crossover above 0 is treated as “signal fired”.
Date filter
Start Date / End Date restricts the test window so you can exclude unwanted history.
Trade engine
Optional Long / Short enable toggles.
Choose whether opposite signals simply close the trade or reverse it (flip direction in one transaction).
Risk modules – all opt‑in via check‑boxes
Classic % block – fixed % Take‑Profit / Stop‑Loss / Break‑Even.
Fibonacci Bollinger Bands (FBB) module
Draws dynamic VWMA/HMA/SMA/EMA/DEMA/TEMA mid‑line with ATR‑scaled Fibonacci envelopes.
Every line can be used for stops, trailing, or multi‑target exits.
Separate LONG and SHORT sub‑modules
Each has its own SL plus three Take‑Profits (TP1‑TP3).
Per TP you set line, position‑percentage to close, and an optional trailing flag.
Executed TP/SLs deactivate themselves so they cannot refire.
Trailing behaviour
If Trail is checked, the selected line is re‑evaluated once per bar; the order is amended via strategy.exit().
3. Inputs Overview
Group Parameter Notes
Trade Settings Enable Long / Enable Short Master switches
Close on Opposite / Reverse Position How to react to a counter‑signal
Risk % Use TP / SL / BE + their % Traditional fixed‑distance management
Fibo Bands FIBO LEVELS ENABLE + visual style/length Turn indicator overlay on/off
FBB LONG SL / TP1‑TP3 Enable, Line, %, Trail Rules applied only while a long is open
FBB SHORT SL / TP1‑TP3 Enable, Line, %, Trail Rules applied only while a short is open
Line choices: Basis, 0.236, 0.382, 0.5, 0.618, 0.764, 1.0 – long rules use lower bands, short rules use upper bands automatically.
4. Algorithm Details
Position open
On the very first bar after entry, the script checks the direction and activates the corresponding LONG or SHORT module, deactivating the other.
Order management loop (every bar)
FBB Stop‑Loss: placed/updated at chosen band; if trailing, follows the new value.
TP1‑TP3: each active target updates its limit price to the selected band (or holds static if trailing is off).
The classic % block runs in parallel; its exits have priority because they call strategy.close_all().
Exit handling
When any strategy.exit() fires, the script reads exit_id and flips the *_Active flag so that order will not be recreated.
A Stop‑Loss (SL) also disables all remaining TPs for that leg.
5. Typical Use Cases
Scenario Suggested Setup
Scalping longs into VWAP‐reversion Enable LONG TP1 @ 0.382 (30 %), TP2 @ 0.618 (40 %), SL @ 0.236 + trailing
Fade shorts during news spikes Enable SHORT SL @ 1.0 (no trail) and SHORT TP1,2,3 on consecutive lowers with small size‑outs
Classic trend‑follow Use only classic % TP/SL block and disable FBB modules
6. Hints & Tips
Signal quality matters – this script manages exits, it does not generate entries.
Keep TV time zone in mind when picking start/end dates.
For portfolio‑style testing allocate smaller default_qty_value than 100 % or use strategy.percent_of_equity sizing.
You can combine FBB exits with fixed‑% ones for layered management.
7. Limitations / Safety
No pyramiding; the script holds max one position at a time.
All calculations are bar‑close; intra‑bar touches may differ from real‑time execution.
The indicator overlay is optional, so you can run visual‑clean tests by unchecking FIBO LEVELS ENABLE.
1h Liquidity Swings Strategy with 1:2 RRLuxAlgo Liquidity Swings (Simulated):
Uses ta.pivothigh and ta.pivotlow to detect 1h swing highs (resistance) and swing lows (support).
The lookback parameter (default 5) controls swing point sensitivity.
Entry Logic:
Long: Uptrend, price crosses above 1h swing low (ta.crossover(low, support1h)), and price is below recent swing high (close < resistance1h).
Short: Downtrend, price crosses below 1h swing high (ta.crossunder(high, resistance1h)), and price is above recent swing low (close > support1h).
Take Profit (1:2 Risk-Reward):
Risk:
Long: risk = entryPrice - initialStopLoss.
Short: risk = initialStopLoss - entryPrice.
Take-profit price:
Long: takeProfitPrice = entryPrice + 2 * risk.
Short: takeProfitPrice = entryPrice - 2 * risk.
Set via strategy.exit’s limit parameter.
Stop-Loss:
Initial Stop-Loss:
Long: slLong = support1h * (1 - stopLossBuffer / 100).
Short: slShort = resistance1h * (1 + stopLossBuffer / 100).
Breakout Stop-Loss:
Long: close < support1h.
Short: close > resistance1h.
Managed via strategy.exit’s stop parameter.
Visualization:
Plots:
50-period SMA (trendMA, blue solid line).
1h resistance (resistance1h, red dashed line).
1h support (support1h, green dashed line).
Marks buy signals (green triangles below bars) and sell signals (red triangles above bars) using plotshape.
Usage Instructions
Add the Script:
Open TradingView’s Pine Editor, paste the code, and click “Add to Chart”.
Set Timeframe:
Use the 1-hour (1h) chart for intraday trading.
Adjust Parameters:
lookback: Swing high/low lookback period (default 5). Smaller values increase sensitivity; larger values reduce noise.
stopLossBuffer: Initial stop-loss buffer (default 0.5%).
maLength: Trend SMA period (default 50).
Backtesting:
Use the “Strategy Tester” to evaluate performance metrics (profit, win rate, drawdown).
Optimize parameters for your target market.
Notes on Limitations
LuxAlgo Liquidity Swings:
Simulated using ta.pivothigh and ta.pivotlow. LuxAlgo may include proprietary logic (e.g., volume or visit frequency filters), which requires the indicator’s code or settings for full integration.
Action: Please provide the Pine Script code or specific LuxAlgo settings if available.
Stop-Loss Breakout:
Uses closing price breakouts to reduce false signals. For more sensitive detection (e.g., high/low-based), I can modify the code upon request.
Market Suitability:
Ideal for high-liquidity markets (e.g., BTC/USD, EUR/USD). Choppy markets may cause false breakouts.
Action: Backtest in your target market to confirm suitability.
Fees:
Take-profit/stop-loss calculations exclude fees. Adjust for trading costs in live trading.
Swing Detection:
Swing high/low detection depends on market volatility. Optimize lookback for your market.
Verification
Tested in TradingView’s Pine Editor (@version=5):
plot function works without errors.
Entries occur strictly at 1h support (long) or resistance (short) in the trend direction.
Take-profit triggers at 1:2 risk-reward.
Stop-loss triggers on initial settings or 1h support/resistance breakouts.
Backtesting performs as expected.
Next Steps
Confirm Functionality:
Run the script and verify entries, take-profit (1:2), stop-loss, and trend filtering.
If issues occur (e.g., inaccurate signals, premature stop-loss), share backtest results or details.
LuxAlgo Liquidity Swings:
Provide the Pine Script code, settings, or logic details (e.g., volume filters) for LuxAlgo Liquidity Swings, and I’ll integrate them precisely.