Auto Intelligence Selective Moving Average(AI/MA)# ๐ค Auto Intelligence Moving Average Strategy (AI/MA)
**AI/MA** is a state-adaptive moving average crossover strategy designed to **maximize returns from golden cross / death cross logic** by intelligently switching between different MA types and parameters based on market conditions.
---
## ๐ฏ Objective
To build a moving average crossover strategy that:
- **Adapts dynamically** to market regimes (trend vs range, rising vs falling)
- **Switches intelligently** between SMA, EMA, RMA, and HMA
- **Maximizes cumulative return** under realistic backtesting
---
## ๐งช materials amd methods
- **MA Types Considered**: SMA, EMA, RMA, HMA
- **Parameter Ranges**: Periods from 5 to 40
- **Market Conditions Classification**:
- Based on the slope of a central SMA(20) line
- And the relative position of price to the central line
- Resulting in 4 regimes: A (Bull), B (Pullback), C (Rebound), D (Bear)
- **Optimization Dataset**:
- **Bybit BTCUSDT.P**
- **1-hour candles**
- **2024 full-year**
- **Search Process**:
- **Random search**: 200 parameter combinations
- Evaluated by:
- `Cumulative PnL`
- `Sharpe Ratio`
- `Max Drawdown`
- `Rยฒ of linear regression on cumulative PnL`
- **Implementation**:
- Optimization performed in **Python (Pandas + Matplotlib + Optuna-like logic)**
- Final parameters ported to **Pine Script (v5)** for TradingView backtesting
---
## ๐ Performance Highlights (on optimization set)
| Timeframe | Return (%) | Notes |
|-----------|------------|----------------------------|
| 6H | +1731% | Strongest performance |
| 1D | +1691% | Excellent trend capture |
| 12H | +1438% | Balance of trend/range |
| 5min | +27.3% | Even survives scalping |
| 1min | +9.34% | Robust against noise |
- Leverage: 100x
- Position size: 100%
- Fees: 0.055%
- Margin calls: **none** ๐ฏ
---
## ๐ Technology Stack
- `Python` for data handling and optimization
- `Pine Script v5` for implementation and visualization
- Fully state-aware strategy, modular and extendable
---
## โจ Final Words
This strategy is **not curve-fitted**, **not over-parameterized**, and has been validated across multiple timeframes. If you're a fan of dynamic, intelligent technical systems, feel free to use and expand it.
๐ก The future of simple-yet-smart trading begins here.
Penunjuk dan strategi
ATR Trend Strategy + KAMA FilterATR Trend Strategy with XMA KAMA Filter
Strategy Description
This strategy combines a dynamic ATR trailing stop with an XMA KAMA filter to precisely detect trends and generate reliable entry signals.
It uses a two-step trend confirmation system:
1๏ธโฃ ATR Trailing Stop
Based on the Average True Range (ATR), this trailing stop automatically adapts to market volatility.
It determines whether the market is in a bullish or bearish phase by comparing the current price to the ATR trailing stop level.
2๏ธโฃ KAMA Filter (XMA Version)
KAMA (Kaufman Adaptive Moving Average) provides an additional trend filter.
This XMA version of KAMA avoids the traditional fast/slow parameters and instead dynamically calculates the ratio of signal to market "noise", helping to reduce false signals and over-sensitivity.
How It Works
Long Signal:
Price is above both the ATR trailing stop and the KAMA (XMA) line.
Short Signal:
Price is below both the ATR trailing stop and the KAMA (XMA) line.
What Makes This Strategy Different?
Unlike many classic strategies that rely on simple moving averages, this system uses an adaptive KAMA filter that responds better to changing market conditions and volatility.
The ATR trailing stop automatically adjusts to current market volatility, providing an extra layer of protection against false breakouts.
By combining these tools, this strategy offers:
Precise trend filtering
Avoidance of false breakouts and noise
Dynamic adjustment to market conditions
How to Use
Apply the strategy to any market chart (Forex, stocks, crypto, indices, etc.)
Adjust the ATR and KAMA parameters to match your trading plan
Use the TradingView Strategy Tester to evaluate performance before live trading
Who Is This For?
Swing traders and trend followers
Traders looking for clean, filtered signals with reduced noise
Medium-term traders seeking a system that adapts to market dynamics
Additional Info: Heikin Ashi Compatibility
This strategy is fully compatible with Heikin Ashi candles.
By applying it to a chart with Heikin Ashi candles, traders can further reduce market noise and enhance trend visualization.
The combination of ATR trailing stop + XMA KAMA filter + Heikin Ashi smoothing provides an even cleaner trend-following system, minimizing false signals and improving decision-making clarity.
Zen CSC Bar Strategy v1๐ง Zen Consecutive Bar Strategy โ Research Tool (Trend + Reversal)
**Description:**
This strategy is designed as a flexible research tool for studying price behavior following consecutive bull or bear bars. It allows users to explore breakout and reversal scenarios with full control over trade entry and filtering logic.
**๐ง Key Features:**
* **Configurable bar sequence**: Detects customizable streaks of consecutive bull or bear bars.
* **Trend or Reversal mode**: Toggle between breakout-style entries or fade/reversal-style setups.
* **MA-based filter**: Optionally restrict trades to occur above or below the 20-period moving average.
* Longs can be limited to above/below MA
* Shorts can be limited to above/below MA
* **Customizable R-multiple targets**: Choose between 0.5R, 1R, 1.5R, or 2R reward targets.
* **Stop loss logic**: Uses syminfo.mintick to offset stops by 1 tick beyond the pattern high/low.
* **Entry logic**: Buy/Sell either on the close of the setup bar or on breakout beyond high/low.
* **Trade direction**: Enable long-only, short-only, or both.
**๐ Research Use Only:**
This is not a ready-to-trade system. Itโs intended to help traders test ideas and collect performance stats under different configurations. Use it to:
* Evaluate the failure rate of open spikes
* Study behavior following strong directional bars
* Compare trend-following vs mean-reversion edge across sessions
**โDisclaimer:**
This script is for educational purposes only. It does not constitute financial advice. Past performance does not guarantee future results.
XRP Trend & Signal Strategy V2This is a simple yet effective script that plots the closing price of the selected asset directly on the chart. Useful for visualizing raw price action without additional indicators, this script serves as a clean base for further customization and strategy development.
Eliora Gold 1min (Heikin Ashi)Eliora -focused trading strategy designed for anything on the 1-minute timeframe using Heikin Ashi candles. This mode combines advanced market logic with structured risk management to deliver smooth, disciplined trade execution.
Key Features:
โ
Trend Confirmation โ Aligns with dominant market direction for higher accuracy.
โ
ATR-Based Volatility Filter โ Avoids high-risk conditions and chaotic price action.
โ
Candle Strength Logic โ Filters weak setups, focusing on strong momentum.
โ
Balanced Risk/Reward โ Calculates stop-loss and take-profit dynamically for consistent results.
โ
Cooldown & Overtrade Protection โ Limits frequency to maintain trade quality.
This version of Eliora is built for scalpers and intraday traders seeking high-probability entries with graceful exits.
Dema Entry FRAMA Exit VTECDual-Timeframe Trend Strategy
This strategy combines a 20-hour DEMA Supertrend with a 1-day FRAMA to capture strong market trends with fast entries and high-confidence exits.
Key Components
DEMA Supertrend (20H): Triggers quick entries to catch early trend momentum.
FRAMA (1D): Confirms major trends, ensuring profitable exits.
ATR Filter (1D): Sets precise entry/exit bands using Average True Range.
Gaussian Filter (1D): Smooths price data for reliable FRAMA signals.
Trading Rules
Entry: Enter long if DEMA Supertrend (20H) or FRAMA (1D) signals bullish.
Exit: Exit long if DEMA Supertrend (20H) or FRAMA (1D) signals bearish.
Flow: DEMA typically enters first, FRAMA confirms, and either closes the trade.
Best Markets
Ideal for trending markets
Use on a 1-day chart with 20-hour DEMA data.
Best for 24/7 markets; check compatibility for stocks.
This strategy balances speed and precision for high-profit trades with disciplined risk control.
Strategy with DI+/DI-, ADX, RSI, MACD, EMA + Time Stop [EXP. 1]Strategy Overview
This is an experimental trend-following strategy combining directional movement indicators, momentum filters, and time-based exits. Built for low timeframes like BTCUSDT 5m, it aims to detect clean directional setups while managing risk tightly.
Indicator Components
โข DI+/DI- + ADX โ Confirms trend direction and strength
โข RSI (14) โ Momentum filter (entries only if RSI > 55 or < 45)
โข MACD Histogram โ Confirms momentum shift in signal direction
โข Candle Body % Filter โ Screens for strong price commitment bars
โข EMA 600 & EMA 2400 โ Defines long-term trend alignment
โข Time-Based Stop โ Closes trade if it doesnโt move 0.75% in 85 bars
โข Reward:Risk โ 1% stop-loss, 7.5:1 reward-to-risk
โข One Trade per EMA Cross โ Only trades first valid signal per trend shift
Entry Logic
Long Entry:
โข DI+ crosses above DIโ
โข RSI > 55
โข MACD histogram > 0
โข Strong bullish candle
โข EMA600 > EMA2400
โข Occurs within 25 bars of an EMA crossover
Short Entry:
โข DI+ crosses below DIโ
โข RSI < 45
โข MACD histogram < 0
โข Strong bearish candle
โข EMA2400 > EMA600
โข Occurs within 25 bars of an EMA crossover
Exit Logic
โข Stop-loss: 1% from entry
โข Take-profit: 7.5x risk
โข Time-stop: Trade closed if price doesnโt move 0.75% in 85 bars
Testing Parameters
โข Initial Capital: $10,000
โข Commission: 0.04% per trade
โข Timeframe: 5-minute
โข Tested on: BTCUSDT
โข โ ๏ธ Early-stage strategy โ trade count may be low depending on market context. This is shared for educational use and community feedback.
Notes
โข This script is experimental and educational
โข Please forward-test in a demo environment before using it live
โข Open-source for learning and improvement โ contributions welcome!
EMA and Dow Theory Strategies๐ Strategy Description
๐ Overview
This is a hybrid strategy that combines EMA crossovers, Dow Theory swing logic, and multi-timeframe trend overlays. It is suitable for intraday to short-term trading on any asset class: crypto, forex, stocks, and indices.
The strategy provides precise entry/exit signals, dynamic stop-loss and scale-out, and highly visual trade guidance.
๐ง Key Features
ใปDual EMA crossover system (applied to both symbol and external index)
ใปDow Theory-based swing high/low detection for trend confirmation
ใปVisual overlay of higher timeframe swing trend (htfTrend)
ใปRSI filter to avoid overbought/oversold entries
ใปDynamic partial take-profit when trend weakens
ใปCustom stop-loss (%) control
ใปVisualized trade PnL labels directly on chart
ใปAlerts for entry, stop-loss, partial exit
ใปGradient background zones for swing zones and trend visualization
ใปAuto-tracked metrics: APR, drawdown, win rate, equity curve
โ๏ธ Input Parameters
| Parameter | Description |
| ------------------------- | -------------------------------------------------------- |
| Fast EMA / Slow EMA | Periods for detecting local trend via EMAs |
| Index Fast EMA / Slow EMA | EMAs applied to external reference index |
| StopLoss | Maximum loss threshold in % |
| ScaleOut Threshold | Scale-out percentage when trend changes color |
| RSI Period / Levels | RSI period and overbought/oversold levels |
| Swing Detection Length | Number of bars used to detect swing highs/lows |
| Stats Display Options | Toggle PnL labels and position of statistics table |
๐งญ About htfTrend (Higher Timeframe Trend)
The script includes a higher timeframe trend (htfTrend) calculated using Dow Theory (pivot highs/lows).
This trend is only used for visual guidance, not for actual entry conditions.
Why? Strictly filtering trades by higher timeframe often leads to missed opportunities and low frequency.
By keeping htfTrend visual-only, traders can still refer to macro structure but retain trade flexibility.
Use it as a contextual tool, not a constraint.
ในใใฉใใธใผ่ชฌๆ
๐ ๆฆ่ฆ
ๆฌในใใฉใใธใผใฏใEMAใฏใญในใชใผใใผใใใฆ็่ซใซใใในใคใณใฐๅคๅฎใ**ไธไฝ่ถณใใฌใณใใฎ่ฆ่ฆ่กจ็คบ๏ผhtfTrend๏ผ**ใ็ตใฟๅใใใ่คๅๅใฎ็ญๆใใฌใผใใฃใณใฐๆฆ็ฅใงใใ
ไปฎๆณ้่ฒจใปFXใปๆ ชๅผใปๆๆฐใชใฉๅน
ๅบใใขใปใใใซๅฏพๅฟใใใใคใใฌใผใใในใญใฃใซใใณใฐ็จ้ใซ้ฉใใฆใใพใใ
ๅ็ใชๅฉ็ขบ/ๆๅใใ่ฆ่ฆ็ใซใใใใใใใจใณใใชใผ/ใคใฐใธใใใ็ตฑ่จ่กจ็คบใๆญ่ผใใฆใใพใใ
๐ง ไธปใชๆฉ่ฝ
ใปๅฏพ่ฑก้ๆ๏ผๅค้จใคใณใใใฏในใฎEMAใฏใญในใซใใใใฌใณใๅคๅฎ
ใปใใฆ็่ซใซๅบใฅใใในใคใณใฐ้ซๅคใปๅฎๅคๆคๅบใจใใฌใณใๅคๆญ
ใปไธไฝ่ถณในใคใณใฐใใฌใณใ๏ผhtfTrend๏ผใฎ่ฆ่ฆ่กจ็คบ
ใปRSIใใฃใซใฟใผใซใใ้็ฑใปๅฃฒใใใใใฎๅ้ฟ
ใปใใฌใณใใฎๅผฑใพใใซๅฟใใ้จๅๅฉ็ขบ๏ผในใฑใผใซใขใฆใ๏ผ
ใป**ๆๅใ้พๅค๏ผ๏ผ
๏ผ**ใใซในใฟใใคใบๅฏ่ฝ
ใปใใฃใผใไธใซๆ็ใฉใใซ่กจ็คบ
ใปใขใฉใผใๅฎๅ๏ผใจใณใใชใผใปๆฑบๆธใป้จๅๅฉ็ขบ๏ผ
ใปใใฌใณใใพใผใณใๅฏ่ฆๅใใ่ๆฏใฐใฉใใผใทใงใณ
ใปๅ็ใปใใญใผใใฆใณใปAPRใป่ณ็ฃๅขๅ ็ใชใฉใฎ่ชๅ่กจ็คบ
| ่จญๅฎ้
็ฎๅ | ่ชฌๆๅ
ๅฎน |
| --------------------- | -------------------------- |
| Fast EMA / Slow EMA | ้ๆใซๅฏพใใฆไฝฟ็จใใEMAใฎๆ้่จญๅฎ |
| Index Fast / Slow EMA | ๅค้จใคใณใใใฏในใฎEMA่จญๅฎ |
| ๆๅใ๏ผStopLoss๏ผ | ๆๅใใฉใคใณใฎใใใๅค๏ผ%ใงๆๅฎ๏ผ |
| ้จๅๅฉ็ขบใใใๅค | ใใฌใณใๅผฑๅๆใซในใฑใผใซใขใฆใใใๅฒๅ๏ผ%๏ผ |
| RSIๆ้ใปๆฐดๆบ | RSI่จ็ฎๆ้ใจใ้็ฑใปๅฃฒใใใใใฌใใซ่จญๅฎ |
| ในใคใณใฐๆคๅบๆ้ | ในใคใณใฐ้ซๅคใปๅฎๅคใฎๆคๅบใซไฝฟ็จใใใใผๆฐ |
| ็ตฑ่จ่กจ็คบใฎๅใๆฟใ | ๆ็ใฉใใซใ็ตฑ่จใใผใใซใฎ่กจ็คบ๏ผ้่กจ็คบ้ธๆ |
๐งญ ไธไฝ่ถณใใฌใณใ๏ผhtfTrend๏ผใซใคใใฆ
ๆฌในใฏใชใใใซใฏใไธไฝ่ถณใงใฎในใคใณใฐ้ซๅคใปๅฎๅคใฎๆดๆฐใซๅบใฅใ**htfTrend๏ผใใฌใณใๅคๅฎ๏ผใๅซใพใใฆใใพใใ
ใใใฏ่ฆ่ฆ็ใชๅ่ๆ
ๅ ฑใงใใใใจใณใใชใผใใคใฐใธใใใซใฏ็ดๆฅไฝฟ็จใใใฆใใพใใใ**
ใใฎ็็ฑใฏใไธไฝ่ถณใๅณๅฏใซใญใธใใฏใซ็ตใฟ่พผใใจใใใฌใผใๆฉไผใฎๆๅคฑใๅขใใใใใงใใ
ใใฎในใฏใชใใใงใฏใ**ๅคๆญใฎ่ฃๅฉๆๆใจใใฆใ่กจ็คบใฎใฟใซ็ใใใ**่จญ่จใๆก็จใใฆใใพใใ
โ ่ฃ้ใงใๅฉ็ขบใๆฉใใใใ้ๅผตใใ้ฟใใใๅคๆญใซๆดป็จๅฏ่ฝใงใใ
LANZ Strategy 5.0 [Backtest]๐ท LANZ Strategy 5.0 โ Rule-Based BUY Logic with Time Filter, Session Limits and Auto SL/TP Execution
This is the backtest version of LANZ Strategy 5.0, built as a strategy script to evaluate real performance under fixed intraday conditions. It automatically places BUY and SELL trades based on structured candle confirmation, EMA trend alignment, and session-based filters. The system simulates real-time execution with precise Stop Loss and Take Profit levels.
๐ Built for traders seeking to simulate clean intraday logic with fully automated entries and performance metrics.
๐ง Core Logic & Strategy Conditions
โ
BUY Signal Conditions:
Price is above the EMA200
The last 3 candles are bullish (close > open)
The signal occurs within the defined session window (NY time)
Daily trade limit has not been exceeded
If all are true, a BUY order is executed at market, with SL and TP set immediately.
๐ป SELL Signal Conditions (Optional):
Exactly inverse to BUY (below EMA + 3 bearish candles). Disabled by default.
๐ Operational Time Filter (New York Time)
You can fully customize your intraday window:
Start Time: e.g., 01:15 NY
End Time: e.g., 16:00 NY
The system evaluates signals only within this range, even across midnight if configured.
๐ Trade Management System
One trade at a time per signal
Trades include a Stop Loss (SL) and Take Profit (TP) based on pip distance
Trade result is calculated automatically
Each signal is shown with a triangle marker (BUY only, by default)
๐งช Backtest Accuracy
This version uses:
strategy.order() for entries
strategy.exit() for SL and TP
strategy.close_all() at the configured manual closing time
This ensures realistic behavior in the TradingView strategy tester.
โ๏ธ Flow Summary (Step-by-Step)
On every bar, check:
Is the time within the operational session?
Is the price above the EMA?
Are the last 3 candles bullish?
If conditions met โ A BUY trade is opened:
SL = entry โ X pips
TP = entry + Y pips
Trade closes:
If SL or TP is hit
Or at the configured manual close time (e.g., 16:00 NY)
๐ Settings Overview
Timeframe: 1-hour (ideal)
SL/TP: Configurable in pips
Max trades/day: User-defined (default = 99 = unlimited)
Manual close: Adjustable by time
Entry type: Market (not limit)
Visuals: Plotshape triangle for BUY entry
๐จโ๐ป Credits:
๐ก Developed by: LANZ
๐ง Strategy logic & execution: LANZ
โ
Designed for: Clean backtesting, clarity in execution, and intraday logic simulation
IU Martingale StrategyDESCRIPTION
This strategy is a Martingale-based trading system that enters a long position based on simple candle patterns and doubles the position size after each loss. It tracks the worst-case drawdown using a live risk matrix table to help traders visualize the downside. With clear profit and loss points, auto position sizing, and a risk visualization table, itโs perfect for backtesting the Martingale concept directly on charts.
WHAT IS MARTINGALE SYSTEM?
The Martingale system is a position-sizing strategy where you double your trade size after every loss, aiming to recover all previous losses with a single profitable trade. It assumes that a winning trade will eventually occur. While it can be high-risk, itโs often used in controlled environments or with high probability setups.
USER INPUTS
๐ฆ Starting Position: Initial position size for the first trade
๐ Profit Points: Target profit in price points
๐ Loss Points: Stop loss in price points
๐ Show Risk Matrix Table: Enable or disable a live table showing current streak and risk stats
LONG CONDITION
A long trade is triggered when the current candle closes higher than it opened, and no open position exists. The condition is simple and used to simulate market entry for testing the Martingale logic.
// Entry Condition:
close > open and no existing position
LONG EXIT
Each trade has a fixed stop-loss and take-profit, based on the user's input:
Stop Loss = Entry Price โ Loss Points
Take Profit = Entry Price + Profit Points
The exit is handled using strategy.exit() with these dynamic values.
WHY IT IS UNIQUE
๐ Implements a dynamic Martingale position sizing system
๐ Includes a visual Risk Matrix Table tracking losing streaks, max size, and risk
๐ Automatically resets position size after a win
๐ง Smart use of array to manage loss history and control logic
๐ฏ Customizable SL and TP for each entry
๐จ Beautiful chart visuals for entry, stop loss, and target levels
HOW USER CAN BENEFIT FROM IT
๐งช Test the sustainability of a Martingale system with real chart data
๐๏ธ Visualize the risks and impact of consecutive losses
๐ Explore risk vs. reward scenarios before deploying in real markets
๐งฐ Use it as a base template to build more advanced Martingale or grid-based systems
๐ Great for educational purposes to understand the mathematical drawdowns involved in doubling strategies
Disclaimer :
This Video is not financial advice, it's for educational purposes only highlighting the power of coding( pine script) in TradingView, I am not a SEBI-registered advisor. Trading and investing involve risk, and you should consult with a qualified financial advisor before making any trading decisions. I do not guarantee profits or take responsibility for any losses you may incur.
MACD + RSI + SMA Strategy with TP/SLThis strategy combines three technical indicators: MACD, RSI, and Simple Moving Average (SMA) to identify high-probability entry points. It enters trades in the direction of the trend (filtered by SMA), confirms momentum shifts (via MACD crossover), and validates signals with RSI to avoid overbought/oversold conditions.
Key Features:
Directional filter using SMA to align trades with the broader trend.
Momentum validation with MACD crossovers.
Risk control through RSI thresholds and fixed percentage-based Take Profit and Stop Loss levels.
Works for both long and short positions.
Disclaimer: This is a sample strategy for educational purposes only.
Trading involves risk. Use at your own discretion.
You bear full responsibility for any profit or loss.
T3MA Ribbon Strategy (v6 - Fixed HA) by LKALGOT3MA Ribbon Strategy (v6) by LKALGO
The T3MA Ribbon Strategy helps you catch trends with confidence!
It combines a fast and slow T3 moving average to create a color-filled ribbon that clearly shows bullish (green) and bearish (red) momentum.
โ
Key features:
Smooth trend signals using powerful T3 MAs
Optional Heikin Ashi smoothing for even cleaner trends
Simple, clear BUY and SELL signals on the chart
Alerts included for easy automation
How it works:
Enter long when the ribbon turns green (fast T3 crosses above slow T3)
Exit when it turns red (fast T3 crosses below slow T3)
Works on all timeframes and markets. Perfect for traders who want a simple but effective trend-following system.
Auto ST + EMA Bundle + HHLL + Pivot SL With this indicator you BUY when the price is ABOVE all the EMA and SELL when the price is BELLOW all the EMA
Intraday buy sell stratergy for goldThe optimized Pine Script strategy titled "Intraday Buy Sell Strategy for Gold" is designed for intraday trading based on a combination of opening range breakout, Fibonacci pivot levels, EMA filtering, and time-specific signal candles. Here's a breakdown of its key components and improvements:
Aggressive RSI + EMA Strategy with TP/SLWhat This Strategy Does ๐ฅ
๐ It monitors RSI to find when the market is potentially oversold (RSI < 40) or overbought (RSI > 60).
๐ It checks the trend direction using two EMAs โ fast EMA (short-term) and slow EMA (long-term).
โ
It only buys when the market looks oversold and the short-term trend is up (fast EMA > slow EMA).
โ It only sells when the market looks overbought and the short-term trend is down (fast EMA < slow EMA).
๐ฐ Once in a trade, it sets a take profit at 1% gain and a stop loss at 0.5% loss โ so profits are locked and risks controlled.
๐ This cycle repeats continuously, aiming to catch many small, quick moves rather than waiting for big swings.
๐ The aggressive RSI thresholds mean it triggers trades more often โ ideal for active traders who want lots of setups.
๐ It shows clear visual indicators and plots on the chart so you can easily see entries, exits, and indicator levels.
๐ It also supports alerts, so you can get notified instantly when a trade setup happens.
In short, itโs a fast, trend-aware momentum strategy with built-in risk control designed for active trading and consistent small wins.
Buy Dip Multiple Positions๐ฏ Objective
This strategy aims to capture aggressive dip-buying opportunities during volume-confirmed price reversals in short term downtrending markets. It is optimized for multi-entry precision, adaptive stop management, and real-time trade monitoring.
It allows traders to execute multiple long entries and dynamically trail stops to maximize gains while capping risk. Designed with modular inputs, this strategy is ideal for intraday momentum scalping and swing trading alike.
๐ง How It Operates
The strategy triggers buy entries when three conditions align:
Reversal Candle: Current close < prior low ร 0.998
Volume Confirmation: Current volume exceeds average of prior 2 bars ร 1.2
Price Surge Threshold: Current close below user-defined % of close from N bars ago
Once a reversal candle is confirmed, the strategy:
Calculates position size based on user-defined risk parameters
Allows up to a max number of simultaneous trades
Trailing Stop kicks in 2 bars after entry, climbing by a user-defined % each bar
Exit occurs when price hits either the trailing stop or target price
๐ ๏ธ Inputs
Users can customize all major aspects of the strategy:
Max Simultaneous Trades: Default 20
Trailing Stop Increase per Bar (%): Default 1%
Initial Stop (% of Reversal Low): Default 85%
Target Price (% Above Reversal Low): Default 60%
Price Surge Threshold (% of Past Close): Default 89%
Surge Lookback Bars: Default 14
Show Active Trade Dot: Toggle to display green trade status dot
๐ Visual Overlays
The chart displays the following:
Marker Description
๐ข Green Dot Active trade (toggleable)
๐ด Red Dot Max trades reached
๐ Trailing Stop Applied internally but not plotted (can be added)
๐ Metrics Plots of win rate, winning/losing trade counts
๐ Notes
Strategy uses strategy.cash allocation logic
Entry size adapts to account equity and risk per trade
All parameters are accessible via the settings panel
Built entirely in Pine Script v5
This strategy balances flexibility and precision, giving traders control over entry timing, capital allocation, and stop behavior. Ideal for those looking to automate dip-buy setups with tactical overlays and visual alerts.
80% Rule BacktestStrategy Overview: 80% Rule Backtest Tool
This strategy tester is designed to validate the classic 80% Rule setup within a defined ETH futures session. Signals are triggered when price reenters the prior day's value area and holds for a qualified duration โ targeting the Point of Control (POC) for primary exits, while tracking full value area traversals for research purposes.
- ๐
Session Logic: Anchored to a true 22-hour ETH futures window (5PMโ3PM Pacific), with global time zone support
- ๐ง Signal Confirmation: Price must reenter and hold inside value area for โฅ 45 minutes to validate entry
Note: Optimized for 15-minute charts โ aligns exactly with traditional rule definition (3-bar hold)
- ๐ฏ Targets: Primary TP at POC; visual logs for full VAH/VAL reach
- ๐ Manual Override Mode: Precise SVP-level control when auto logic isnโt preferred
- ๐ง Debug Mode: Single-bar diagnostic labels for development and forward testing
This tool supports both auto-calculated and manually anchored value areas, allowing traders to blend systematic backtesting with discretionary insight.
working on this tool to be used as a strategy tester
StockMarketWolf 9/20 EMA VWAP MACD StrategyThis strategy is all about catching momentum in the market by combining some of the most trusted technical indicatorsโmoving averages, VWAP, and MACDโto help you spot better trade opportunities with more confidence.
Hereโs the simple idea:
Use the 9 and 20 EMA crossover to spot when the short-term trend is turning up or down.
Check that the price is trading above or below the VWAP (the average price weighted by volume for the day) to confirm the overall market sentiment.
Use the MACD to make sure momentum is supporting your tradeโno point jumping in if momentum isnโt backing it up.
How it works:
Go long when the 9 EMA crosses above the 20 EMA, price is above VWAP, and MACD is signaling positive momentum.
Go short when the 9 EMA crosses below the 20 EMA, price is below VWAP, and MACD shows bearish momentum.
Exit the trade when these signals flip or momentum fades.
Why itโs useful:
It helps you avoid trading against the trend by using the VWAP filter.
The MACD momentum check cuts down on fake breakouts.
Itโs straightforward and works well on popular day trading charts like the 5-minute timeframe.
Great for high-volume stocks and futures like SPY, QQQ, or ES futures.
Things to keep in mind:
It doesnโt throw out signals all day โ you get quality over quantity.
Like any strategy, itโs not perfect and can struggle during sideways markets.
Sticking to the rules and having patience is key.
All in all, this is a solid, no-nonsense strategy that mixes trend and momentum in a way that makes trading feel a bit more clear and less noisy. Perfect if you want a systematic approach without overcomplicating things.
Simple BTC Breakout Bot (Works for sure)๐ Simple BTC Breakout Bot (Works for sure)
This strategy is designed for BTC/USDT breakout trading using recent highs and lows. It automatically detects breakout signals and manages trades with Take Profit and Stop Loss to help manage risk and lock in profits.
Key Features:
๐ Breakout Detection:
Enters a long position when price crosses above the highest high of the last N candles (default 20).
Enters a short position when price crosses below the lowest low of the last N candles.
๐ฐ Risk Management:
Automatically sets a Take Profit (default 3%) and Stop Loss (default 1.5%) for every trade.
๐ Visuals:
Plots breakout levels (highest high in green, lowest low in red) on the chart.
๐ Alerts:
Sends alerts on every breakout trade for long and short entries, compatible with TradingViewโs alert system.
Parameters:
โณ Breakout Lookback Period: Number of candles to check for breakouts (default: 20)
๐ฏ Take Profit (%): Profit target as a percentage from entry price (default: 3%)
๐ซ Stop Loss (%): Maximum loss allowed as a percentage from entry price (default: 1.5%)
โ ๏ธ Disclaimer:
This strategy is based on historical data and does not guarantee future profits. Always backtest and trade with proper risk management.
MA Crossover Strategy with TP/SL๐ MA Crossover Strategy with TP/SL
This strategy uses two simple moving averages (SMAs) to catch trend changes and trade breakouts with clear risk management.
๐ฅ How it works:
Enters a Long position when the fast SMA (short period) crosses above the slow SMA (long period), signaling an upward trend.
Enters a Short position when the fast SMA crosses below the slow SMA, signaling a downward trend.
๐ฏ Features:
Take Profit (TP): Automatically closes the trade at a defined percentage profit.
Stop Loss (SL): Limits potential losses with a predefined stop level.
Customizable parameters: Adjust the lengths of the moving averages, TP%, and SL% to fit your style.
Alerts: Receive notifications on every trade entry for timely action.
โก๏ธ Designed for traders looking for a simple, effective trend-following system with built-in risk control.
Nidnoi 89 TheoryNidnoi Morning Trading style
// This strategy is based on a reversal logic applied to the 8AM candle (Bangkok Time, UTC+7).
// The logic is:
// - If the 8AM candle is bullish (green), it indicates potential exhaustion โ enter a SELL at the 9AM open.
// - If the 8AM candle is bearish (red), it suggests a possible bounce โ enter a BUY at the 9AM open.
// All trades are closed at the 10AM open, limiting exposure to 1 hour.
//
// This strategy is designed for XAUUSD on a 1-hour chart and aligns with short-term intraday reversal patterns.
// The actual time used in code (UTC+7) is 9PM for the 8AM candle, and 10PM for the exit at 10AM.
//
// Highlights are shown on the 8AM candle for visual confirmation.
// Make sure your chart is set to 1H timeframe and uses XAUUSD.
BTC 15m Range Breakout Strategy
This is a **BTC 15-minute Range Breakout Strategy** designed for Most Simple Bitcoin Trading Strategy | Bitcoin Trading Strategy | Theta Gainers
Here's a brief overview:
## Strategy Overview
**Core Concept**: The strategy identifies a narrow 15-minute range during low volatility and trades breakouts from that range.
**Key Components**:
- **Range Definition**: Creates a price range based on the high/low between 19:15-19:30 IST (Indian Standard Time)
- **Trading Session**: Operates from 19:00 to 05:30 IST (covers both Asian and early European sessions)
- **Entry Signals**:
- **Long**: When price breaks above the range high
- **Short**: When price breaks below the range low
- **Risk Management**: Uses the opposite range boundary as stop loss with a customizable risk-reward ratio (default 2:1)
**Logic**: This targets the common pattern where Bitcoin consolidates during low-volume periods, then breaks out with momentum as major trading sessions begin. The 19:15-19:30 IST window likely captures a quiet period before increased activity.
**Features**:
- Visual range box display
- Automatic alerts for entries/exits
- Session-based position management
- Only one position per session
- Positions close automatically at session end
The strategy is designed for systematic breakout trading with clear risk parameters and automated execution.
########################################################################################
Ready to Elevate Your Trading? Explore many strategies
for traders who seek to refine their edge further to amplify consistency precision and more importantly greately minimising losses. ๐
Visit lyrobtics.in
Contact: lyrobtics@gmail.com
#######################################################################################################