Supertrend Pine Strategy
Overview
The Supertrend Pine Strategy is a fully automated trading strategy compatible with Mirrorpip and designed to work across multiple financial markets including:- Crypto Markets (24/7)
- Indian Equity Markets
- Futures & Options
- Commodities
- Forex
Key Features
Multi-Market Support
The strategy offers two trading modes:Intraday Mode
Designed specifically for Indian markets where trading sessions have fixed timings. Suitable for:- NSE Stocks
- Bank Nifty
- Nifty
- FinNifty
- Sensex
- Equity Futures
Positional Mode
Designed for markets that operate continuously. Suitable for:- Cryptocurrency Markets
- Forex Markets
- International Indices
- Commodity Markets
Supertrend Customization
Users can fully customize the Supertrend settings according to their trading style.Adjustable Parameters
- ATR Period
- Supertrend Multiplier
- Trend Sensitivity
- Signal Frequency
- More trade signals
- Faster trend detection
- Fewer trade signals
- Stronger trend confirmation
Entry Logic
Long Entry
A Buy signal is generated when:- Price closes above the Supertrend line.
- Trend direction changes from bearish to bullish.
Short Entry
A Sell/Short signal is generated when:- Price closes below the Supertrend line.
- Trend direction changes from bullish to bearish.
Target Management
The strategy supports two independent profit targets.Target 1 (T1)
Users can configure Target 1 in:- Percentage (%)
- Points
- 2% Target
- 100 Point Target
Target 2 (T2)
Users can configure Target 2 independently in:- Percentage (%)
- Points
- 4% Target
- 200 Point Target
Stop Loss Management
The strategy includes a configurable Stop Loss system.Stop Loss Options
Users can define Stop Loss in:Percentage Based
Example:- 1%
- 2%
- 3%
Points Based
Example:- 50 Points
- 100 Points
- 200 Points
Trailing Stop Loss (TSL)
To protect profits during strong trends, the strategy includes a dynamic Trailing Stop Loss feature.TSL Configuration
Users can configure TSL in:- Percentage
- Points
- Locks in profits automatically.
- Reduces risk during market reversals.
- Helps capture larger trending moves.
Fully Automated Trading with Mirrorpip
The strategy comes with Mirrorpip Integration Code pre-built inside the Pine Script. No coding knowledge is required.Workflow
- Add the strategy to your TradingView chart.
- Configure Supertrend parameters.
- Set your Targets, Stop Loss, and Trailing Stop Loss.
- Create a TradingView Alert.
- Connect the alert to Mirrorpip.
- Mirrorpip automatically executes trades on your exchange account.
Supported Exchanges
Mirrorpip currently supports automation across multiple exchanges including:- Bybit
- Binance
- Delta Exchange
- CoinSwitch
- OKX
- Bitget
- Gate.io
- KuCoin
- Shark Exchange
Best Practices
For Indian Markets
Recommended Mode:- Intraday
- 5 Minute
- 15 Minute
- 30 Minute
For Crypto Markets
Recommended Mode:- Positional
- 15 Minute
- 1 Hour
- 4 Hour
- Daily
Risk Disclaimer
No trading strategy guarantees profits. Market conditions can change rapidly and past performance does not guarantee future results. Always:- Use proper position sizing.
- Configure stop losses.
- Test settings before deploying significant capital.
- Monitor exchange connectivity and alert status regularly.