Can you cheat a back test? Things to look out for...I have seen a lot of people selling strategies for large amounts of money. But please be careful. In this I am going to show a strategy that says it makes 9 trillion % profit and is 100% of the time profitable.
If someone was trying to sell you this, alarm bells should be ringing. I have managed to get very good results without cheating, as you can see in all our other strategies where the figures you see are real.
How to cheat a back test
You can not really cheat it, but if you play around with the figures you can drastically improve the results.
First you need to get a good strategy with over 95% time profitable and a good net profit (this is the hard part)
Then simply click on the gear icon of that strategy, go to the property tab, set initial capital to 1000 and increase the order size to 10000000000000000.
Its that simple
Most strategies work on either 1000 or 10,000 initial capital. Its the order size that should be 1 to get more realistic results.
All our other strategies use 1000 for initial capital and 1 for order size.
Please note when back testing you should always enter the commission of that exchange, I like to use 0.3%.
Hope this helps, please let me know your thoughts.
If you would like to be kept up to date please FOLLOW us and try our indicators and strategies here: uk.tradingview.com
If you like it please click the LIKE button.
在腳本中搜尋"profit"
XPloRR MA-Buy ATR-Trailing-Stop Long Term Strategy Beating B&HXPloRR MA-Buy ATR-MA-Trailing-Stop Strategy
Long term MA Trailing Stop strategy to beat Buy&Hold strategy
None of the strategies that I tested can beat the long term Buy&Hold strategy. That's the reason why I wrote this strategy.
Purpose: beat Buy&Hold strategy with around 10 trades. 100% capitalize sold trade into new trade.
My buy strategy is triggered by the EMA(blue) crossing over the SMA curve(orange).
My sell strategy is triggered by another EMA(lime) of the close value crossing the trailing stop(green) value.
The trailing stop value(green) is set to a multiple of the ATR(15) value.
ATR(15) is the SMA(15) value of the difference between high and low values.
Every stock has it's own "DNA", so first thing to do is find the right parameters to get the best strategy values voor EMA, SMA and Trailing Stop.
Then keep using these parameter for future buy/sell signals only for that particular stock.
Do the same for other stocks.
Here are the parameters:
Exponential MA: buy trigger when crossing over the SMA value (use values between 11-50)
Simple MA: buy trigger when EMA crosses over the SMA value (use values between 20 and 200)
Stop EMA: sell trigger when Stop EMA of close value crosses under the trailing stop value (use values between 8 and 16)
Trailing Stop #ATR: defines the trailing stop value as a multiple of the ATR(15) value
Example parameters for different stocks (Start capital: 1000, Order=100% of equity, Period 1/1/2005 to now):
BAR(Barco): EMA=11, SMA=82, StopEMA=12, Stop#ATR=9
Buy&HoldProfit: 45.82%, NetProfit: 294.7%, #Trades:8, %Profit:62.5%, ProfitFactor: 12.539
AAPL(Apple): EMA=12, SMA=45, StopEMA=12, Stop#ATR=6
Buy&HoldProfit: 2925.86%, NetProfit: 4035.92%, #Trades:10, %Profit:60%, ProfitFactor: 6.36
BEKB(Bekaert): EMA=12, SMA=42, StopEMA=12, Stop#ATR=7
Buy&HoldProfit: 81.11%, NetProfit: 521.37%, #Trades:10, %Profit:60%, ProfitFactor: 2.617
SOLB(Solvay): EMA=12, SMA=63, StopEMA=11, Stop#ATR=8
Buy&HoldProfit: 43.61%, NetProfit: 151.4%, #Trades:8, %Profit:75%, ProfitFactor: 3.794
PHIA(Philips): EMA=11, SMA=80, StopEMA=8, Stop#ATR=10
Buy&HoldProfit: 56.79%, NetProfit: 198.46%, #Trades:6, %Profit:83.33%, ProfitFactor: 23.07
I am very curious to see the parameters for your stocks and please make suggestions to improve this strategy.
Aurum15 - http://tvautotrader.comAurum15 - tvautotrader.com
Initial version of strategy, basing on market condition and price movement according to MA's, closing on RSI overbought value.
Exit position are configurable by RSI (default rsi(open,29) > 70), designed for 15 minutes charts
It creates very long trades (above 300 bars per trade) but is very profitable.
Tested at:
USOIL - 66% profitable, 15 trades since 2017-09-04
LTCUSD - 75% profitable, 20 trades since 2017-10-02
XRPUSD - 87.5% profitable, 8 trades since 2017-10-02
IOTUSD - 77% profitable, 9 trades since 2017-10-02
This strat is not for sale yet, I need to make futher tests in more sideways market.
Upgraded XAUUSD 30m only Strategy V2.0So i've been fiddling around with this once more
The result is increased net profit, same time frame as previous strategy, more drawdown, but that comes with the net profit.
1 pip = 1$
Pyramiding of 3 orders.
Commission included.
More trades
Profitability rate is about the same.
MACDouble + RSI (rec. 15min-2hr intrv) Uses two sets of MACD plus an RSI to either long or short. All three indicators trigger buy/sell as one (ie it's not 'IF MACD1 OR MACD2 OR RSI > 1 = buy", its more like "IF 1 AND 2 AND RSI=buy", all 3 match required for trigger)
The MACD inputs should be tweaked depending on timeframe and what you are trading. If you are doing 1, 3, 5 min or real frequent trading then 21/44/20 and 32/66/29 or other high value MACDs should be considered. If you are doing longer intervals like 2, 3, 4hr then consider 9/19/9 and 21/44/20 for MACDs (experiment! I picked these example #s randomly).
Ideal usage for the MACD sets is to have MACD2 inputs at around 1.5x, 2x, or 3x MACD1's inputs.
Other settings to consider: try having fastlength1=macdlength1 and then (fastlength2 = macdlength2 - 2). Like 10/26/10 and 23/48/20. This seems to increase net profit since it is more likely to trigger before major price moves, but may decrease profitable trade %. Conversely, consider FL1=MCDL1 and FL2 = MCDL2 + (FL2 * 0.5). Example: 10/26/10 and 22/48/30 this can increase profitable trade %, though may cost some net profit.
Feel free to message me with suggestions or questions.
MACD, backtest 2015+ only, cut in half and doubledThis is only a slight modification to the existing "MACD Strategy" strategy plugin!
found the default MACD strategy to be lacking, although impressive for its simplicity. I added "year>2014" to the IF buy/sell conditions so it will only backtest from 2015 and beyond ** .
I also had a problem with the standard MACD trading late, per se. To that end I modified the inputs for fast/slow/signal to double. Example: my defaults are 10, 21, 10 so I put 20, 42, 20 in. This has the effect of making a 30min interval the same as 1 hour at 10,21,10. So if you want to backtest at 4hr, you would set your time interval to 2hr on the main chart. This is a handy way to make shorter time periods more useful even regardless of strategy/testing, since you can view 15min with alot less noise but a better response.
Used on BTCCNY OKcoin, with the chart set at 45 min (so really 90min in the strategy) this gave me a percent profitable of 42% and a profit factor of 1.998 on 189 trades.
Personally, I like to set the length/signals to 30,63,30. Meaning you need to triple the time, it allows for much better use of shorter time periods and the backtests are remarkably profitable. (i.e. 15min chart view = 45min on script, 30min= 1.5hr on script)
** If you want more specific time periods you need to try plugging in different bar values: replace "year" with "n" and "2014" with "5500". The bars are based on unix time I believe so you will need to play around with the number for n, with n being the numbers of bars.
Outsidebar vs Insidebar, Illusion Strategy (by ChartArt)WARNING: This strategy does not work! Please don't trade with this strategy
I'm sharing this strategy for the following three educational reasons:
1. You can easily find 100% strategies, but if they only seem to work 100% on one asset, they actually don't work at all. Therefore never backtest your strategy only on one asset, especially forward testing is useless, because it tends to repeat the old patterns. Your strategy has to work on as many different assets as possible.
2. The pyramiding of orders can have an impact on the strategy. In this case if you manually change the strategy settings by increasing it from 1 to 100 pyramiding orders changes the percent profitable on "UKOIL" monthly from 100% to 90% profitable. On other assets you can see very different results. Allowing much more pyramiding orders in this case results in opening orders where the background color highlights appear.
3. The Tradingview backtest beta version currently does not close the last open trade during the backtest. In this case going long on "UKOIL" near the top in 2011 as this strategy did would result in a big loss in 2015. But since the trade is still open and not canceled out by a new short order it still appears as if this strategy works 100% profitable. Which it doesn't.
ISM Indicator As a Strategy Here's a very easy code, plotting the ISM against the SPX. In this exercise, i wanted to see if one could use the ISM indicator only to generate buy/sell signal, and what would be the performance.
What is the ISM
The ISM Manufacturing Index monitors employment, production inventories, new orders and supplier deliveries.By monitoring the ISM Manufacturing Index, investors are able to better understand national economic conditions. When this index is increasing, investors can assume that the stock markets should increase because of higher corporate profits. The opposite can be thought of the bond markets, which may decrease as the ISM Manufacturing Index increases because of sensitivity to potential inflation.
Buy/Sell Signal
ISM above 50 usually good economic condition and vice versa when below 50 . For this code I used 48.50 as my buy/sell signal line.
Results
To test this on a longer time period, I use the SPX index instead of SPY. The results are surprisingly good. 76.92% profitability with 3.03 profit factor.
Conclusion
Investors could use the ISM with other indicators to determine better entry and exit point. I will see if combining the ISM with other custom indicators , could generate better result. Feel free to share your results here.
Cheers
Algo.
MACD + SMA 200 Strategy (by ChartArt)Here is a combination of the classic MACD (moving average convergence divergence indicator) with the classic slow moving average SMA with period 200 together as a strategy.
This strategy goes long if the MACD histogram and the MACD momentum are both above zero and the fast MACD moving average is above the slow MACD moving average. As additional long filter the recent price has to be above the SMA 200. If the inverse logic is true, the strategy goes short. For the worst case there is a max intraday equity loss of 50% filter.
Save another $999 bucks with my free strategy.
This strategy works in the backtest on the daily chart of Bitcoin, as well as on the S&P 500 and the Dow Jones Industrial Average daily charts. Current performance as of November 30, 2015 on the SPX500 CFD daily is percent profitable: 68% since the year 1970 with a profit factor of 6.4. Current performance as of November 30, 2015 on the DOWI index daily is percent profitable: 51% since the year 1915 with a profit factor of 10.8.
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.
CamarillaStrategy -V1 - H4 and L4 breakout - exits addedExits added using trailing stops.
2.6 Profit Factor and 76% Profitable on SPY , 5M - I think it's a pretty good number for an automated strategy that uses Pivots. I don't think it's possible to add volume and day open price in relation to pivot levels -- that's what I do manually ..
Still trying to add EMA for exits.. it will increase profitability. You can play in pinescript with trailing stops entries..
Fundamental Strategy - anuragmundraFundamental Score Based Backtest
This strategy combines fundamental analysis with automated backtesting to help identify long-term investment opportunities. Instead of relying only on price action or technical indicators, it evaluates the financial health of a company and generates simulated BUY/SELL signals accordingly.
🔑 Key Parameters Considered:
Price-to-Earnings (P/E Ratio): Ensures the stock is not overpriced.
Return on Equity (ROE): Indicates efficiency of management and business profitability.
Debt-to-Equity Ratio (D/E): Evaluates leverage and financial risk.
Revenue Growth (YoY): Shows business expansion and demand.
EPS Growth: Reflects consistent profit generation for shareholders.
Sales Growth: Confirms topline improvement.
Profit Growth: Measures bottom-line strength.
✅ Buy Condition
When the fundamental score ≥ 70/100, the strategy enters a long position.
Score is based on meeting/exceeding thresholds for P/E, ROE, Revenue Growth, EPS Growth, Sales Growth, Profit Growth, and Debt-to-Equity.
❌ Sell/Exit Condition
When the score falls below 70, the position is closed.
⚡ How to Use
Designed for medium to long-term investors who prefer fundamentally strong companies.
Can be run in the Strategy Tester to evaluate the historical performance of any stock.
Suitable as a stock-picking filter rather than a short-term trading system.
📊 Notes
Some ratios (like ROE) are based on annual values (FY), while others (EPS, Revenue, Net Income) use TTM for recency.
Not all symbols/exchanges provide full fundamental data. If data is missing, some metrics may show as N/A.
⚠️ Disclaimer: This is an educational tool for research and backtesting only. It is not financial advice. Always combine with your own due diligence before making investment decisions.
BDNS ORB Strategy v3BDNS Opening Range Breakout Strategy
What This Strategy Does This strategy implements an Opening Range Breakout (ORB) system that identifies the high and low prices during a customizable opening period, then trades breakouts above or below these levels with momentum confirmation. The strategy goes beyond basic ORB concepts by incorporating ADX momentum filtering, VWAP directional bias, dynamic position sizing, and sophisticated exit management including breakeven moves and trailing stops.
Core Strategy Logic
Opening Range Definition: The strategy tracks price action during a user-defined opening period (default: 9:30-9:35 AM ET for 5 minutes). During this time, blue horizontal lines appear marking the session high and low. A yellow background highlights this opening range period.
Breakout Detection: After the opening range completes, green and red horizontal lines appear showing the actual entry levels - these are offset from the range boundaries by a configurable number of ticks (default: 24 ticks) to filter out false breakouts and ensure committed moves.
Entry Conditions: Trades trigger when price breaks through these offset levels during the trading window (green background, default until 10:30 AM ET), but only when:
ADX momentum indicator exceeds threshold (default 24.0) in the breakout direction
Price relationship to VWAP confirms directional bias (when VWAP filter enabled)
Daily trade limits haven't been reached
Large range filtering conditions are met
Visual Elements and Usage
Range Lines: Blue lines show the actual opening range boundaries. These appear immediately when the opening session begins.
Entry Levels: Green (long) and red (short) lines show where trades will trigger, appearing after the opening range completes.
Information Table: A data table appears in the top-right showing real-time strategy status including range size in ticks, ADX readings, filter status, trade counts, and momentum conditions.
Position Management:
When in a trade, colored circles appear showing:
Lime circles: Long position targets (T1, T2, T3)
Orange circles: Short position targets
Red circles: Stop loss levels
Blue crosses: Breakeven levels (when that feature activates)
Purple lines: Trailing stop levels (when position 3 trailing activates)
Background Colors:
Yellow: Opening range session active
Green: Trading window active
Purple: Large range day detected
Gray: Large range day being skipped
Position Management System
The strategy uses a three-tier exit approach:
Position 1: Takes partial profits at first target (default 50% of range size)
Position 2: Exits at second target (default 100% of range size)
Position 3: Either exits at third target or uses trailing stop after Position 2 wins
Breakeven Feature: When enabled and price reaches the breakeven trigger level, all stop losses move to a more favorable breakeven level instead of the original stop, protecting against giving back profits.
Trailing Stop System: After Position 2 hits its target, Position 3 automatically switches to a trailing stop that moves in the trader's favor as price continues trending.
Customization for Different Instruments
The default settings are configured for MNQ (Micro NASDAQ futures) but the ORB concept is highly customizable for any futures instrument and timeframe. Range duration, breakout offsets, and filter thresholds should be adjusted based on the specific instrument's volatility characteristics and typical intraday patterns.
Filter Usage Guidelines
ADX Momentum Filter: Essential for avoiding breakouts during consolidation. Higher thresholds (30+) for trending markets, lower (20-25) for more opportunities.
VWAP Filter: Helpful in trending conditions but may reduce trade frequency. Better to disable during range-bound or mean-reverting periods.
Large Range Filter: Critical risk management tool. When the opening range exceeds your threshold:
Skip: Avoids trades when stops would be too large
Fade: Trades mean reversion back into the range
Trade: Takes breakouts regardless (higher risk)
Range Size Considerations: Setting a large range threshold (200-400 ticks) helps avoid days when both sides of the range get tested before any meaningful breakout occurs, which often leads to whipsaws.
Risk Management Features
Dynamic Stops and Targets: All exit levels scale with the opening range size, ensuring risk/reward remains consistent regardless of daily volatility. A 100-tick range day will have proportionally smaller stops than a 300-tick range day.
Position Sizing: Configure contract amounts for each position tier based on account size and risk tolerance.
Daily Trade Limits: Prevents overtrading by limiting trades per direction per day.
Breakout Offset: The tick offset from range boundaries is crucial - too small creates false signals, too large misses good moves. Test different values based on your instrument's typical noise levels.
Advanced Features
Large Third Target: Set Target 3 to 300-500% to essentially hold runners indefinitely, using the trailing stop as the primary exit method for capturing extended trends.
Fade Trading: On large range days, the strategy can trade mean reversion when initial breakouts fail, often providing good counter-trend opportunities.
Time-Based Exits: All positions close at the end of the trading window, preventing overnight risk.
Strategy Properties Used
Initial Capital: $5,000 (realistic for micro contract trading)
Commission: $0.50 per contract (realistic retail rates)
Position Size: 100% of equity (manages risk through contract quantities and stop placement)
Default quantities: 3/1/1 contracts across the three positions
The default settings assume larger account sizes or proprietary trading firm accounts where higher risk tolerance is acceptable. With MNQ at $0.50 per tick, a typical 200-tick opening range with 75% stop loss (150 ticks) would risk $375 on a 5-contract position. For smaller retail accounts, consider reducing position sizes significantly - using only Position 1 (3 contracts) would risk $225, or even reducing to 1-2 total contracts to maintain appropriate risk levels relative to account size.
Getting Started Apply the strategy to your preferred instrument
Adjust the opening range time and duration for your market
Set appropriate breakout offset based on typical noise levels
Configure large range threshold based on your risk tolerance
Test filter combinations to find what works best for your trading style
Adjust contract quantities based on your account size and risk management rules
The strategy works best on liquid instruments with clear opening sessions and sufficient volatility to generate meaningful ranges. Results will vary significantly based on market conditions, parameter settings, and the specific instrument traded.
I warrant that the information created and published by by me here on TradingView is not prohibited, doesn't constitute investment advice, and isn't created solely for qualified investors.
Whale Algo v11.2 [Strategy] IndicatorEdge By SGStop guessing and start trading with a systematic edge. The Whale Algo is a complete, multi-faceted trading strategy designed to emulate the disciplined approach of institutional "whale" traders. It's not just another signal indicator; it's a comprehensive backtesting and execution framework built on a robust foundation of trend analysis, momentum confirmation, and professional-grade risk management.
This final edition (v11.2) is the culmination of extensive development, featuring adaptive parameters, advanced risk controls like drawdown protection, and an intuitive dashboard to monitor every aspect of the strategy's performance in real-time.
Key Features
🧩 Asset Profiles: Get started in seconds. One-click profiles for Stocks, Forex, Crypto, and Commodities automatically load recommended settings for key parameters like ATR multipliers and trading sessions.
📈 Multi-Layered Trend Engine: The core logic combines a fast/slow EMA crossover on the current timeframe with a higher-timeframe EMA to ensure trades are only taken in the direction of the dominant, institutional trend.
💪 Advanced Price Action Filters: Go beyond simple crossovers. The algorithm validates every signal with a suite of optional filters:
Candle Strength Filter: Avoids weak signals by requiring decisive momentum in the entry candle.
Wick Rejection Filter: Ignores candles that show significant price rejection against the trade direction.
Volume Confirmation: Ensures that significant market participation is backing your entry.
🛡️ Institutional-Grade Risk Management: This is what separates this strategy from the rest.
Max Drawdown Protection: Automatically halts trading if equity drops below a preset threshold, protecting your capital.
Trade Cooldown: Prevents over-trading by enforcing a waiting period after a trade closes.
Volatility-Adjusted Sizing: Dynamically increases or decreases position size based on current market volatility (ATR).
Adaptive SL/TP: The strategy can automatically adjust Stop Loss and Take Profit levels based on its recent performance (Profit Factor).
📊 Real-Time Strategy Dashboard: Your command center. The on-screen dashboard provides an at-a-glance summary of the active profile, current position, profit factor, risk status, and a checklist of the live signal conditions.
🤖 Automation-Ready Alerts: The script generates clean, dynamic JSON-formatted alerts for both long and short entries. This allows for seamless integration with third-party trading automation platforms (e.g., PineConnector, 3Commas, etc.).
How the Strategy Works: The Core Logic
The Whale Algo follows a simple yet powerful logic:
Trend Confirmation: It first confirms a strong trend using a triple-EMA alignment (Close > Fast EMA > Slow EMA > HTF Slow EMA).
Momentum Check: It then uses the RSI to ensure momentum is in the direction of the trade (RSI > 52 for longs, < 48 for shorts).
Signal Validation: Finally, it applies all active Session and Price Action filters to qualify the signal, ensuring only high-quality setups are considered.
Execution & Management: If a signal is valid, it calculates the precise position size based on your equity and risk settings, enters the trade, and manages it with an ATR-based Stop Loss and a Risk-to-Reward based Take Profit.
How To Use This Strategy
Select Your Asset Profile: Choose the profile that best matches the asset you are trading to load the recommended base settings.
Backtest: Use TradingView's Strategy Tester to see how the Whale Algo has performed on your chosen asset and timeframe. Pay close attention to the Profit Factor, Max Drawdown, and the Equity Curve.
Optimize (If Needed): While the profiles are a great starting point, feel free to adjust parameters in the "Core Trading Logic" and "Filters" sections to fine-tune performance for your specific asset.
Set Up Alerts for Automation:
Add the strategy to your chart.
Create a new Alert.
Set the "Condition" to "Whale Algo v11.2...".
The "Message" box should contain this placeholder: {{strategy.order.alert_message}}. This will pass the dynamic JSON message from the script to the alert.
Configure your webhook URL and you are ready for automation!
Disclaimer: This is a sophisticated tool for educational and analytical purposes. All trading involves substantial risk. Past performance, including backtest results, is not indicative of future results. Please conduct your own thorough research and risk assessment before trading live capital.
Amiya's Crude Oil Alligator RSI StrategyCrude Oil Futures with the following conditions:
15 minutes candle.
Indicators: William Alligator and RSI- both default setting.
Buy signal to be generated when following conditions are met:
1. Candle closes above Lips.
2. Lips is above teeth
3. Teeth is above jaws
4. RSI is above 55.
Stop loss when either of the following conditions are met:
1. RSI is below 50 or
2. Candle close crosses below Teeth or
3. Lips is lower than teeth.
Take Profit Signal to be generated when the current price is 25 rupees above the entry price.
Sell signal to be generated when following conditions are met:
1. Candle closes below lips.
5. Lips is below teeth
6. Teeth is below jaws
7. RSI is below 45.
Stop loss when either of the following conditions are met:
2. RSI is above 50 or
3. Candle close crosses above Teeth or
4. Lips is higher than teeth.
Take Profit Signal to be generated when the current price is 25 rupees lower than the entry price.
In cases of Buy Signal, Sell Signal, Stop Loss and Take Profit, alerts should be generated and also, alerts should be shown on the chart, mentioning Buy Signal, Sell Signal, Stop Loss and Take Profit.
The Barking Rat LiteMomentum & FVG Reversion Strategy
The Barking Rat Lite is a disciplined, short-term mean-reversion strategy that combines RSI momentum filtering, EMA bands, and Fair Value Gap (FVG) detection to identify short-term reversal points. Designed for practical use on volatile markets, it focuses on precise entries and ATR-based take profit management to balance opportunity and risk.
Core Concept
This strategy seeks potential reversals when short-term price action shows exhaustion outside an EMA band, confirmed by momentum and FVG signals:
EMA Bands:
Parameters used: A 20-period EMA (fast) and 100-period EMA (slow).
Why chosen:
- The 20 EMA is sensitive to short-term moves and reflects immediate momentum.
- The 100 EMA provides a slower, structural anchor.
When price trades outside both bands, it often signals overextension relative to both short-term and medium-term trends.
Application in strategy:
- Long entries are only considered when price dips below both EMAs, identifying potential undervaluation.
- Short entries are only considered when price rises above both EMAs, identifying potential overvaluation.
This dual-band filter avoids counter-trend signals that would occur if only a single EMA was used, making entries more selective..
Fair Value Gap Detection (FVG):
Parameters used: The script checks for dislocations using a 12-bar lookback (i.e. comparing current highs/lows with values 12 candles back).
Why chosen:
- A 12-bar displacement highlights significant inefficiencies in price structure while filtering out micro-gaps that appear every few bars in high-volatility markets.
- By aligning FVG signals with candle direction (bullish = close > open, bearish = close < open), the strategy avoids random gaps and instead targets ones that suggest exhaustion.
Application in strategy:
- Bullish FVGs form when earlier lows sit above current highs, hinting at downward over-extension.
- Bearish FVGs form when earlier highs sit below current lows, hinting at upward over-extension.
This gives the strategy a structural filter beyond simple oscillators, ensuring signals have price-dislocation context.
RSI Momentum Filter:
Parameters used: 14-period RSI with thresholds of 80 (overbought) and 20 (oversold).
Why chosen:
- RSI(14) is a widely recognized momentum measure that balances responsiveness with stability.
- The thresholds are intentionally extreme (80/20 vs. the more common 70/30), so the strategy only engages at genuine exhaustion points rather than frequent minor corrections.
Application in strategy:
- Longs trigger when RSI < 20, suggesting oversold exhaustion.
- Shorts trigger when RSI > 80, suggesting overbought exhaustion.
This ensures entries are not just technically valid but also backed by momentum extremes, raising conviction.
ATR-Based Take Profit:
Parameters used: 14-period ATR, with a default multiplier of 4.
Why chosen:
- ATR(14) reflects the prevailing volatility environment without reacting too much to outliers.
- A multiplier of 4 is a pragmatic compromise: wide enough to let trades breathe in volatile conditions, but tight enough to enforce disciplined exits before mean reversion fades.
Application in strategy:
- At entry, a fixed target is set = Entry Price ± (ATR × 4).
- This target scales automatically with volatility: narrower in calm periods, wider in explosive markets.
By avoiding discretionary exits, the system maintains rule-based discipline.
Visual Signals on Chart
Blue “▲” below candle: Potential long entry
Orange/Yellow “▼” above candle: Potential short entry
Green “✔️”: Trade closed at ATR take profit
Blue (20 EMA) & Orange (100 EMA) lines: Dynamic channel reference
⚙️Strategy report properties
Position size: 25% equity per trade
Initial capital: 10,000.00 USDT
Pyramiding: 10 entries per direction
Slippage: 2 ticks
Commission: 0.055% per side
Backtest timeframe: 1-minute
Backtest instrument: HYPEUSDT
Backtesting range: Jul 28, 2025 — Aug 17, 2025
Note on Sample Size:
You’ll notice the report displays fewer than the ideal 100 trades in the strategy report above. This is intentional. The goal of the script is to isolate high-quality, short-term reversal opportunities while filtering out low-conviction setups. This means that the Barking Rat Lite strategy is very selective, filtering out over 90% of market noise. The brief timeframe shown in the strategy report here illustrates its filtering logic over a short window — not its full capabilities. As a result, even on lower timeframes like the 1-minute chart, signals are deliberately sparse — each one must pass all criteria before triggering.
For a larger dataset:
Once the strategy is applied to your chart, users are encouraged to expand the lookback range or apply the strategy to other volatile pairs to view a full sample.
💡Why 25% Equity Per Trade?
While it's always best to size positions based on personal risk tolerance, we defaulted to 25% equity per trade in the backtesting data — and here’s why:
Backtests using this sizing show manageable drawdowns even under volatile periods.
The strategy generates a sizeable number of trades, reducing reliance on a single outcome.
Combined with conservative filters, the 25% setting offers a balance between aggression and control.
Users are strongly encouraged to customize this to suit their risk profile.
What makes Barking Rat Lite valuable
Combines multiple layers of confirmation: EMA bands + FVG + RSI
Adaptive to volatility: ATR-based exits scale with market conditions
Clear, actionable visuals: Easy to monitor and manage trades
Marcius Studio® - Fishing Net™Fishing Net™ — a dynamic grid trading strategy with predefined entry levels and built-in risk management.
The strategy gradually builds positions as the price pulls back, and closes all trades when the Take Profit level is reached.
The main concept is to accumulate positions at multiple levels, like a net, and capture potential upward movement without promising guaranteed profits.
Important! This strategy is designed for HIGH-LIQUIDITY assets (ETH / BTC / SOL etc.) and is not suitable for LOW-LIQUIDITY assets.
Strategy Parameters
Level Step (%) : distance between grid levels.
Shift (%) : offset of the first entry level relative to price.
Take Profit (%) : target for closing all open positions.
Number of Orders (1–10) : total number of grid levels.
Risk per Trade (%) : capital risk per trade (1–100%), defines maximum position size.
Example Settings
Applicable for OKX:BTCUSDT.P / OKX:ETHUSDT.P / OKX:SOLUSDT.P etc.
Timeframe : 1H
Level Step : 1.0
Shift : 1.0
Take Profit : 5
Number of Orders : 10
Risk per Trade : 10%
How the Code Works
The script calculates a grid of entry levels below the current price.
When the price touches a level, an order is placed with size based on equity × risk % .
The strategy scales into the position gradually (up to the number of levels).
When the Take Profit target is reached, all positions are closed simultaneously.
All levels and the TP line are plotted on the chart for visual clarity.
Past performance is not indicative of future results.
Disclaimer
Trading involves risk — always do your own research (DYOR) and seek professional financial advice. We are not responsible for any potential financial losses.
TrendPilot AI v2 — Adaptive Trend Day Trading StrategyOverview
TrendPilot AI v2 is a structured, rules-based day trading strategy that identifies and follows market momentum using a sophisticated blend of technical indicators. Optimized for 15-minute and higher timeframes on high market cap cryptocurrencies (AAVE, SOL, ETH, BCH, BTC) to minimize manipulation risks, it adapts to changing market conditions with dynamic risk management and controlled re-entry logic to maximize trend participation while minimizing noise.
Core Logic
Multiple EMA Trend Confirmation — Uses three Exponential Moving Averages (fast, medium, slow) to detect robust bullish, bearish, or neutral trends, ensuring trades align with the prevailing market direction.
ADX Momentum Filter — Employs an ADX-based filter to confirm strong trends, avoiding entries in choppy or low-momentum markets.
Smart Entry Filter — Optional ATR-based buffer (period 14, multiplier 1.5) around the fast EMA prevents entries at overextended prices, enhancing trade precision.
Flexible Exit System — Offers multiple exit options: fixed take-profit (default 1.7 offset), trend-reversal exits, or ATR-based trailing stops (period 14, multiplier 2.0), with secure modes requiring candle closes for confirmation to gain Max Profit.
Controlled Re-Entry Logic — Allows re-entries after take-profit or price-based stop-loss with configurable wait periods (default 6 bars), max attempts (default 2), and EMA touch requirements (fast, medium, or slow).
State-Aware Risk Management — Tracks trend states and recent exits to adapt entries, with daily trade limits (default 5 long/short) and loss cooldowns (default 2 stop-losses) for disciplined trading.
How to Use & Configuration
Markets & Timeframes
Works with high market cap cryptocurrencies (AAVE, SOL, ETH, BCH, BTC).
Optimized for intraday charts (15m–4h) but adaptable to higher timeframes (e.g., 1h, 4h).
Trade Direction Settings
Dual Trades — Trades both long and short, quickly re-aligning after trend reversals.
Long Only — Ignores bearish signals, ideal for bullish markets or strong uptrends.
Short Only — Ignores bullish signals, suited for bearish markets or downtrends.
Risk Management Settings
Stop Loss Types
Trend Reversal — Closes positions when an opposite trend signal is confirmed (default).
Fixed Offset — Static stop at 3.5 offset from entry price (adjustable).
ATR Based — Dynamic trailing stop using ATR (period 14, multiplier 2.0), adjusting to market volatility.
Secure SL Mode — Optional setting to trigger price-based stops only on candle closes, reducing false exits.
Maximum recommended risk per trade is 5–10% of account equity.
Trade size is configurable (default 20 units) to match individual risk appetite.
Take Profit Options
Fixed Offset — Predefined target at 1.7 offset from entry (adjustable, e.g., 2.5 for SOL).
Secure TP Mode — Exits only when a candle closes beyond the target, ensuring reliable profit capture.
Trend Reversal — Exits on opposite trend signals when fixed TP is disabled, ideal for riding longer trends.
Trade Management Controls
Smart Entry Filter — Optional ATR-based buffer (period 14, multiplier 1.5) prevents chasing overextended prices.
Max Re-Entries — Limits continuation trades per trend cycle (default 2).
Daily Trade Limits — Caps long/short trades per day (default 5 each) for disciplined trading.
Daily Loss Cooldown — Pauses trading after a set number of stop-losses (default 2) per day.
Max Bars in Trade — Closes positions after a set duration (default 1440 bars) to prevent stale trades.
Configuration Steps
Apply the strategy to your chosen symbol (e.g., AAVE/USDT, SOL/USDT) and timeframe (15m or higher).
Select Trade Direction mode (Dual, Long Only, or Short Only).
Set Stop Loss (Trend Reversal, Fixed Offset, or ATR Based) and Take Profit (fixed or trend-reversal).
Adjust Smart Entry Filter, Max Re-Entries, Daily Limits, and Loss Cooldown as needed.
Test across multiple market conditions using the performance panel (top-right, showing Total Trades, Wins, Losses, Win Rate).
Enables automated trading via webhook integration with platforms like Binance Futures.
Set up alerts for long/short entries (🟢 Long, 🔴 Short) and exits (🎯 Max TP, 🛑 Max SL, 🚨 Force Exit).
Backtesting Guidance
Use realistic commission (default 0.01%) and slippage (default 2 ticks) matching your broker and instrument.
Validate performance over long historical periods (e.g., 3–6 months) to ensure >100 trades across different market regimes.
Avoid curve-fitting by testing on multiple high market cap coins (AAVE, SOL, ETH, BCH, BTC) and avoiding over-optimization.
EMA and ATR parameters are set to balanced, industry-standard values for realistic backtesting.
Best Practices, Defaults & Disclaimer
Best Practices
Use consistent and conservative position sizing (default 20 units).
Match commission and slippage to your broker’s actual rates.
Enable secure TP/SL modes for entries and exits to reduce false signals.
Test across different symbols, timeframes, and market phases before live trading.
Keep parameters simple to avoid overfitting.
Default Settings (Recommended Starting Point)
Initial Capital: $10,000
Order Size: Fixed, 20 units
Commission: 0.01%
Slippage: 2 ticks
Take Profit Offset: 1.7 (adjustable, e.g., 2.5 for SOL)
Stop Loss Type: Trend Reversal (default), Fixed Offset (3.5), or ATR Based (period 14, multiplier 2.0)
Smart Entry Filter: ATR period 14, multiplier 1.5 (optional)
Max Re-Entries: 2 per trend cycle
Daily Trade Limits: 5 long, 5 short
Daily Loss Cooldown: 2 stop-losses
Max Bars in Trade: 1440 bars
Subscription Information
TrendPilot AI v2 is an invite-only strategy, accessible only to approved subscribers.
Benefits include full access to all features, priority support, and regular updates.
Access is limited to ensure a high-quality user experience.
Compliance Status
No functional warnings in the script.
The script uses closed candle logic, ensuring no repainting or lookahead issues.
Designed for realistic backtesting with a $10,000 account and sustainable risk (≤5–10% per trade).
Disclaimer
This strategy is intended for educational and analytical purposes only. Trading involves substantial risk, and past performance does not guarantee future results. You are solely responsible for your own trading decisions and risk management.
Developed by: TrendPilotAI Team
For questions, setup guidance, or enhancement suggestions, contact TrendPilotAI Team via TradingView.
Engulfing & Pin Bar Breakout StrategyOverview
This strategy automates a classic, powerful trading methodology based on identifying key candlestick reversal patterns and trading the subsequent price breakout. It is designed to be a complete, "set-and-go" system with built-in risk and position size management.
The core logic operates on the 1-Hour timeframe, scanning for four distinct high-probability reversal signals: two bullish and two bearish. An entry is only triggered when the market confirms the signal by breaking a key price level, aiming to capture momentum following a potential shift in market sentiment.
The Strategy Logic
The system is composed of two distinct modules: Bullish (Long) and Bearish (Short).
🐂 Bullish (Long) Setup
The script initiates a long trade based on the following strict criteria:
Signal: Identifies either a Hammer or a Bullish Engulfing pattern. These patterns often indicate that sellers are losing control and buyers are stepping in.
Confirmation: Waits for the very next candle after the signal.
Entry Trigger: A long position is automatically opened as soon as the price breaks above the high of the signal candle.
Stop Loss: Immediately set just below the low of the signal candle.
Take Profit: A fixed target is placed at a 1:5 Risk/Reward Ratio.
🐻 Bearish (Short) Setup
The script initiates a short trade based on the following strict criteria:
Signal: Identifies either a Shooting Star or a Bearish Engulfing pattern. These patterns suggest buying pressure is fading and sellers are taking over.
Confirmation: Waits for the very next candle after the signal.
Entry Trigger: A short position is automatically opened as soon as the price breaks below the low of the signal candle.
Stop Loss: Immediately set just above the high of the signal candle.
Take Profit: A fixed target is placed at a 1:4 Risk/Reward Ratio.
Key Feature: Automated Risk Management
This strategy is designed for disciplined trading. You do not need to calculate position sizes manually.
Fixed Risk: The script automatically calculates the correct position size to risk exactly 2% of your total account equity on every single trade.
Dynamic Sizing: The position size will adjust based on the distance between your entry price and your stop loss for each specific setup, ensuring a consistent risk profile.
How To Use
Apply the script to your chosen chart (e.g., BTC/USD).
Crucially, set your chart's timeframe to 1-Hour (H1). The strategy is specifically calibrated for this interval.
Navigate to the "Strategy Tester" tab below your chart to view backtest results, including net profit, win rate, and individual trades.
Disclaimer: This script is provided for educational and informational purposes only. It is not financial advice. All trading involves substantial risk, and past performance is not indicative of future results. Please use this tool responsibly and at your own risk.
Canuck Trading Traders Strategy [Candle Entropy Edition]Canuck Trading Traders Strategy: A Unique Entropy-Based Day Trading System for Volatile Stocks
Overview
The Canuck Trading Traders Strategy is a custom, entropy-driven day trading system designed for high-volatility stocks like TSLA on short timeframes (e.g., 15m). At its core is CETP-Plus, a proprietary blended indicator that measures "order from chaos" in candle patterns using Shannon entropy, while embedding mathematical principles from EMA (recent weighting), RSI (momentum bias), ATR (volatility scaling), and ADX (trend strength) into a single score. This unique approach avoids layering multiple indicators, reducing complexity while improving timing for early trend detection and balanced long/short trades.
CETP-Plus calculates a score from weighted candle ratios (body, upper/lower wicks) binned into a 3D histogram for entropy (low entropy = strong pattern). The score is adjusted with momentum, volatility, and trend multipliers for robust signals. Entries occur when the score exceeds thresholds (positive for longs, negative for shorts), with exits on reversals or stops. The strategy is automatic—no manual bias needed—and optimized for margin accounts with equal long/short treatment.
Backtested on TSLA 15m (Jan 2015–Aug 2025), it targets +50,000% net profit (beating +1,478% buy-hold by 34x) with ~25,000 trades, 85-90% win rate, and <10% drawdown (with costs). Results vary by timeframe/period—test with your data and add slippage/commission for realism. Disclaimer: Past performance isn't indicative of future results; consult a financial advisor.
Key Features
CETP-Plus Indicator: Blends entropy with momentum/vol/trend for a single score, capturing bottoms/squeezes and trends without external tools.
Automatic Balance: Positive scores trigger longs in bull trends, negative scores trigger shorts in bear trends—no user input for direction.
Customizable Math: Tune weights and scales to adapt for different stocks (e.g., lower thresholds for NVDA's smoother trends).
Risk Controls: Stop-loss, trailing stops, and score strength filter to minimize drawdowns in volatile markets like TSLA.
Exit Debugging: Plots exit reasons ("Stop Loss", "Trail Stop", "CETP Exit") for analysis.
Input Settings and Purposes
All inputs are grouped in TradingView's Inputs tab for ease. Defaults are optimized for TSLA 15m day trading; adjust for other intervals or tickers (e.g., increase window for 1h, lower thresholds for NVDA).
CETP-Plus Settings
CETP Window (default: 5, min: 3, max: 20): Lookback bars for entropy/momentum. Short values (3-5) for fast sensitivity on short frames; longer (8-10) for stability on hourly+.
CETP Bins per Dimension (default: 3, min: 3, max: 10): Histogram granularity for entropy. Low (3) for speed/simple patterns; high (5+) for detail in complex markets.
Long Threshold (default: 0.15, min: 0.1, max: 0.8, step: 0.05): CETP score for long entries. Lower (0.1) for more longs in mild bull trends; higher (0.2) to filter noise.
Short Threshold (default: -0.05, min: -0.8, max: -0.1, step: 0.05): CETP score for short entries. Less negative (-0.05) for more shorts in mild bear trends; more negative (-0.2) for strong signals.
CETP Momentum Weight (default: 0.8, min: 0.1, max: 1.0, step: 0.1): Emphasizes momentum in score. High (0.9) for aggressive in fast moves; low (0.5) for entropy focus.
Momentum Scale (default: 1.6, min: 0.1, max: 2.0, step: 0.1): Amplifies momentum. High (2.0) for short intervals; low (1.0) for stability.
Body Ratio Weight (default: 1.2, min: 0.0, max: 2.0, step: 0.1): Weights candle body in entropy (trend focus). High (1.5) for strong trends; low (0.8) for wick emphasis.
Upper Wick Ratio Weight (default: 0.8, min: 0.0, max: 2.0, step: 0.1): Weights upper wick (reversal noise). Low (0.5) to reduce false ups.
Lower Wick Ratio Weight (default: 0.8, min: 0.0, max: 2.0, step=0.1): Weights lower wick. Low (0.5) to reduce false downs.
Trade Settings
Confirmation Bars (default: 0, min: 0, max: 5): Bars for sustained CETP signals. 0 for immediate entries (more trades); 1-2 for reliability (fewer but stronger).
Min CETP Score Strength (default: 0.04, min: 0.0, max: 0.5, step: 0.05): Min absolute score for entry. Low (0.04) for more trades; high (0.15) for quality.
Risk Management
Stop Loss (%) (default: 0.5, min: 0.1, max: 5.0, step: 0.1): % from entry for stop. Tight (0.4) for quick exits; wide (0.8) for trends.
ATR Multiplier (default: 1.5, min: 0.5, max: 3.0, step: 0.1): Scales ATR for stops/trails. Low (1.0) for tight; high (2.0) for room.
Trailing ATR Mult (default: 3.5, min: 0.5, max: 5.0, step: 0.1): ATR mult for trails. High (4.0) for longer holds; low (2.0) for profits.
Trail Start Offset (%) (default: 1.0, min: 0.5, max: 2.0, step: 0.1): % profit before trailing. Low (0.8) for early lock-in; high (1.5) for bigger moves.
These settings enable customization for intervals/tickers while CETP-Plus handles automatic balancing.
Risk Disclosure
Trading involves significant risk and may result in losses exceeding your initial capital. The Canuck Trading Trader Strategy is provided for educational and informational purposes only. Users are responsible for their own trading decisions and should conduct thorough testing before using in live markets. The strategy’s high trade frequency requires reliable execution infrastructure to minimize slippage and latency.
Options Strategy V2.0📈 Options Strategy V2.0 – Intraday Reversal-Resilient Momentum System
Overview:
This strategy is designed specifically for intraday SPY, TSLA, MSFT, etc. options trading (0DTE or 1DTE), using high-probability signals derived from a confluence of technical indicators: EMA crossovers, RSI thresholds, ATR-based risk control, and volume spikes. The strategy aims to capture strong directional moves while avoiding overtrading, thanks to a built-in cooldown logic and optional time/session filters.
⚙️ Core Concept
The strategy executes trades only in the direction of the prevailing trend, determined by short- and long-term Exponential Moving Averages (EMA). Entry signals are generated when the Relative Strength Index (RSI) confirms momentum in the direction of the trend, and volume spikes suggest institutional activity.
To increase adaptability and user control, it includes a highly customizable parameter set for both long and short entries independently.
📌 Key Features
✅ Trend-Following Logic
Long entries are only allowed when EMA(short) > EMA(long)
Short entries are only allowed when EMA(short) < EMA(long)
✅ RSI Confirmation
Long: Requires RSI crossover above a configurable threshold
Short: Requires RSI crossunder below a configurable threshold
Optional rejection filters: Entry blocked above/below specific RSI extremes
✅ Volume Spike Filter
Confirms institutional participation by comparing current volume to an average multiplied by a user-defined factor.
✅ ATR-Based Risk Management
Both Stop Loss (SL) and Take Profit (TP) are dynamically calculated using ATR × a multiplier.
TP/SL ratio is fully configurable.
✅ Cooldown Control
After every trade, the system waits for a set number of bars before allowing new entries.
This prevents overtrading and increases signal quality.
Optionally, cooldown is ignored for reversal trades, ensuring the system can react immediately to a confirmed trend change.
✅ Candle Body Filter (Noise Control)
Avoids trades on candles with too small bodies relative to wicks (often noise or indecision candles).
✅ VWAP Confirmation (Optional)
Ensures price is trading above VWAP for long entries, or below for short entries.
✅ Time & Session Filters
Trades only during regular market hours (09:30–16:00 EST).
No-trade zone (e.g., 14:15–15:45 EST) to avoid low-liquidity traps or late-day whipsaws.
✅ End-of-Day Auto Close
All open positions are force-closed at 15:55 EST, protecting against overnight risk (especially relevant for 0DTE options).
📊 Visual Aids
EMA plots show trend direction
VWAP line provides real-time mean-reversion context
Stop Loss and Take Profit lines appear dynamically with each trade
Alerts notify of entry signals and exit triggers
🔧 Customization Panel
Nearly every element of the strategy can be tailored:
EMA lengths (short and long, for both sides)
RSI thresholds and length
ATR length, SL multiplier, and TP/SL ratio
Volume spike sensitivity
Minimum EMA distance filter
Candle body ratio filter
Session restrictions
Cooldown logic (duration + reversal exception)
This makes the strategy extremely versatile, allowing both conservative and aggressive configurations depending on the trader’s profile and the market context.
📌 Example Use Case: SPY Options (0DTE or 1DTE)
This system was designed and tested specifically for SPY and other intraday options trading, where:
Delta is around 0.50 or higher
Trades are short-lived (often 1–5 candles)
You aim to trade 1–3 signals per day, filtering out weak entries
🚫 Important Notes
It is not a scalping strategy; it relies on confirmed breakouts with trend support
No pyramiding or re-entries without cooldown to preserve risk integrity
Should be used with real-time alerts and manual broker execution
📈 Alerts Included
📈 Long Entry Signal
📉 Short Entry Signal
⚠️ Auto-closed all positions at 15:55 EST
✅ Proven Settings – Real Trades + Backtest Results
The current version of the strategy includes the optimal settings I’ve arrived at through extensive backtesting, as well as 3 months of real trading with consistent profitability. These results reflect real-world execution under live market conditions using 0DTE SPY options, with disciplined trade management and risk control.
🧠 Final Thoughts
Options Strategy V2.0 is a robust, highly tunable intraday strategy that blends momentum, trend-following, and volume confirmation. It is ideal for disciplined traders focused on SPY or other 0DTE/1DTE options, and it includes guardrails to reduce false signals and improve execution timing.
Perfect for those who seek precision, flexibility, and risk-defined setups—not blind automation.
Parallax Momentum MNQ Strategy# 📈 Parallax Momentum MNQ Strategy
## Overview
The Parallax Momentum MNQ Strategy is a sophisticated support/resistance breakout system specifically designed for Micro Nasdaq futures (MNQ) trading (also works on minis). This strategy combines dynamic level detection with momentum confirmation to identify high-probability entry opportunities while maintaining strict risk management protocols.
## 🎯 Key Features
### Core Strategy Logic
- **Dynamic Support/Resistance Detection**: Automatically identifies key levels using configurable lookback periods
- **Momentum Confirmation**: Volume-based filtering ensures trades align with market momentum
- **ATR-Based Risk Management**: Adaptive stop losses and take profits based on market volatility
- **Dual Entry System**: Both long and short opportunities with limit order execution
### Risk Management
- **ATR-Adaptive Stops**: Stop losses and take profits automatically adjust to market volatility
- **Reward-to-Risk Ratios**: Configurable R:R ratios with default 2:1 minimum
- **Maximum Loss Protection**: Optional daily loss limits to prevent overtrading
- **Session Time Filtering**: Trade only during specified market hours
### Strategy Modes
- **Conservative Mode**: 0.8x risk multiplier for cautious trading
- **Balanced Mode**: Standard 1.0x risk multiplier (default)
- **Aggressive Mode**: 1.2x risk multiplier for active trading
## 📊 Visual Features
### Dashboard Display
- Real-time strategy status and performance metrics
- Current support/resistance levels and ATR values
- Live risk-to-reward ratios for potential trades
- Win rate, profit factor, and drawdown statistics
- Adjustable dashboard size and positioning
### Chart Indicators
- Support and resistance lines with labels
- ATR-based levels (+/-1 ATR and +/-2 ATR)
- Dynamic visual updates as levels change
- Configurable line extensions and styling
## ⚙️ Configuration Options
### Entry Filters
- **Volume Filter**: Optional volume confirmation above SMA
- **Session Time Filter**: 12-hour format time restrictions
- **ATR vs Fixed Stops**: Choose between adaptive or fixed tick-based exits
### Risk Controls
- **ATR Period**: Default 14-period ATR calculation
- **Stop Loss Multiplier**: ATR-based stop distance (default 1.5x)
- **Take Profit Multiplier**: ATR-based target distance (default 1.5x)
- **Secondary Take Profit**: Optional TP2 with position scaling
## 📋 How It Works
### Entry Conditions
**Long Trades**: Triggered when price closes above support buffer but low touches support level, with volume and session confirmation
**Short Trades**: Triggered when price closes below resistance buffer but high touches resistance level, with volume and session confirmation
### Exit Strategy
- **Primary Take Profit**: ATR-based target with 2:1 R:R minimum
- **Stop Loss**: ATR-based protective stop
- **Optional TP2**: Extended target for partial profit taking
- **One Trade at a Time**: No overlapping positions
## 🎛️ Default Settings
- **Lookback Period**: 20 bars for support/resistance detection
- **ATR Period**: 14 bars for volatility calculation
- **Stop Loss**: 1.5x ATR from entry
- **Take Profit**: 1.5x ATR with 2:1 reward-to-risk ratio
- **Session**: 7:30 AM - 2:00 PM (configurable)
## ⚠️ Important Notes
### Risk Disclaimer
- This strategy is for educational and informational purposes only
- Past performance does not guarantee future results
- Always use proper position sizing and risk management
- Test thoroughly on historical data before live trading
- Consider market conditions and volatility when using
### Best Practices
- Backtest on sufficient historical data
- Start with conservative mode for new users
- Monitor performance regularly and adjust parameters as needed
- Use appropriate position sizing for your account
- Consider broker commissions and slippage in live trading
## 🔧 Customization
The strategy offers extensive customization options including:
- Adjustable time sessions with AM/PM format
- Configurable ATR and risk parameters
- Optional maximum daily loss limits
- Dashboard size and position controls
- Visual element toggles and styling
## 📈 Ideal For
- MNQ (Micro Nasdaq) futures traders
- Intraday momentum strategies
- Traders seeking systematic entry/exit rules
- Risk-conscious traders wanting automated stops
- Both beginner and experienced algorithmic traders
---
**Version**: Pine Script v5 Compatible
**Timeframe**: Works on multiple timeframes (test on 1m, 3m, 5m, 15m)
**Market**: Optimized for MNQ but adaptable to other instruments
**Strategy Type**: Trend following with momentum confirmation
Modular Range-Trading Strategy (V9.2)# 模块化震荡行情策略 (V9.2)
# Modular Range-Trading Strategy (V9.2)
## 策略简介 | Strategy Overview
该策略基于布林带 (Bollinger Bands)、RSI、MACD、ADX 等经典指标的组合,通过多逻辑模块化结构识别震荡区间的价格反转机会,支持多空双向操作,并在相同逻辑下允许智能加仓,适用于震荡市场的回测和研究。
This strategy combines classic indicators such as Bollinger Bands, RSI, MACD, and ADX to identify price reversal opportunities within ranging markets. It features a modular multi-logic structure, allowing both long and short trades with intelligent pyramiding under the same logic. It is designed for backtesting and research in range-bound conditions.
---
## 功能特点 | Key Features
- **多逻辑结构**:支持多套震荡逻辑(动能确认均值回归、布林带极限反转等)。
- **加仓与仓位互斥**:同逻辑下可智能加仓,不同逻辑间自动互斥,避免冲突。
- **回测可调时间范围**:可自定义回测起止时间,精准评估策略表现。
- **指标可视化**:布林带、RSI、MACD 及动态 ATR 止损线实时绘图。
- **K线收盘确认信号**:通过 `barstate.isconfirmed` 控制信号,避免未收盘的虚假信号。
- **Multi-logic structure**: Supports multiple range-trading logics (e.g., momentum-based mean reversion, Bollinger Band reversals).
- **Pyramiding with mutual exclusion**: Allows intelligent pyramiding within the same logic while preventing conflicts between different logics.
- **Adjustable backtesting range**: Customizable start and end dates for accurate performance evaluation.
- **Visual indicators**: Real-time plotting of Bollinger Bands, RSI, MACD, and dynamic ATR stop lines.
- **Close-bar confirmation**: Uses `barstate.isconfirmed` to avoid false signals before bar close.
---
## 使用说明 | Usage
1. 将该脚本添加到 TradingView 图表。
2. 在参数中设置回测时间段和指标参数。
3. 仅用于学习与策略研究,请勿直接用于实盘交易。
1. Add this script to your TradingView chart.
2. Configure backtesting dates and indicator parameters as needed.
3. For educational and research purposes only. **Not for live trading.**
---
## ⚠️ 免责声明 | Disclaimer
本策略仅供学习和研究使用,不构成任何形式的投资建议。
作者不参与任何实盘交易、资金管理或收益分成,也不保证策略盈利能力。
严禁将本脚本用于任何非法集资、私募募资或与虚拟货币相关的金融违法活动。
使用本策略即表示您自行承担所有风险与法律责任。
This strategy is for educational and research purposes only and does not constitute investment advice.
The author does not participate in live trading, asset management, or profit sharing, nor guarantee profitability.
The use of this script in illegal fundraising, private placements, or cryptocurrency-related financial activities is strictly prohibited.
By using this strategy, you accept all risks and legal responsibilities.
---
ICT OTE StrategyStrategy Overview
This strategy is designed to automate a specific trading setup based on the concepts of Inner Circle Trader (ICT). Its primary goal is to identify significant market structure swings, frame a Fibonacci retracement over the most recent price leg, and execute a trade when the price pulls back to a key user-defined level. It is a counter-trend entry strategy, meaning it looks to enter a trade during a pullback within an established trend.
How It Works: Step-by-Step
1. Swing Detection:
The strategy first identifies significant swing highs and swing lows.
A swing high is confirmed only if it's higher than a specific number of bars to its left and right (defined by "Left Strength" and "Right Strength" in the settings).
The same logic applies to swing lows, which must be lower than the bars around them. This filtering ensures only structurally important turning points are considered.
2. Defining the Trading Range:
Once a new swing is confirmed, the strategy defines the most recent dealing range.
If a new swing high forms, the range is drawn from the previous swing low up to this new high. This is considered a bullish leg.
If a new swing low forms, the range is drawn from the previous swing high down to this new low. This is considered a bearish leg.
3. Fibonacci Retracement & Trade Setup:
An automatic Fibonacci retracement tool is drawn over this newly defined dealing range. The 0.0 level is placed at the end of the move, and the 1.0 level is at the beginning.
The strategy then prepares to enter a trade based on this range.
4. Trade Execution:
Entry: A limit order is placed at a specific Fibonacci level within the range, waiting for the price to retrace. The default entry is the 0.618 level, but this can be changed in the settings.
For a bullish leg, it places a LONG (Buy) order, anticipating that the price will bounce from the retracement level.
For a bearish leg, it places a SHORT (Sell) order, anticipating that the price will be rejected from the retracement level.
Stop Loss: The Stop Loss is automatically placed at the 1.0 level of the Fibonacci range. This is the point where the original trade idea is invalidated.
Take Profit: The Take Profit is automatically placed at the 0.0 level of the Fibonacci range. This is the target at the end of the price leg.
Key Features & Customization
Automated Trade Logic: The entire process, from identifying the setup to placing the entry, stop loss, and take profit, is fully automated.
Visual Aid: The script draws the swing points and the Fibonacci retracement on the chart, so you can visually confirm the setups the strategy is taking.
Customizable Entry: You can change the "Entry Level" in the settings to test different Fibonacci levels, such as the Optimal Trade Entry (OTE) at 0.705.
Toggle Visuals: You can turn the Fibonacci drawing on or off to keep your chart clean while still allowing the strategy to run in the background.