Strategy Overview
The 2Mars strategy is a sophisticated trading approach designed for the OKX exchange, utilizing a combination of technical indicators to identify optimal entry and exit points. This strategy focuses on:
- Moving average crossovers
- SuperTrend confirmation
- Bollinger Bands for profit-taking
- Advanced stop-loss mechanisms
Core Components
Moving Average Configuration
The strategy uses two key moving averages:
- Basis MA: Calculated as
multiplier ร ratio - Signal MA: Simple
multiplierperiod
Crossovers between these MAs form the primary trading signals.
Signal Confirmation
- SuperTrend indicator: Provides secondary confirmation for trade entries
- Bollinger Bands: Used for position reversal and take-profit signals
Risk Management Features
- Dynamic stop-loss updating on each new entry
Multiple stop-loss options:
- SuperTrend + ATR
- Standard Deviation
- Flex stop-loss for ATR (independent of SuperTrend)
Key Features
Exchange-Specific Optimizations
- Precision pricing for OKX limit orders
- Fixed contract number options for OKX alerts
- Webhook integration for direct exchange alerts
Enhanced Position Management
- Additional order entry points
- Opposite position closure before new entries
- Price comparison with average entry price for profit-taking
Customization Options
- MA parameter adjustment
- Bollinger Band customization
- Strategy component toggles (e.g., Cross MA strategy on/off)
Implementation Notes
Alert Configuration
For OKX exchange alerts:
- Use
alert()function exclusively - Webhook URL required
- Message format:
{{strategy.order.alert_message}}
Important Considerations
- When using additional short orders, always verify profit calculations after updates
- Stop-loss prices now visible in strategy interface
- Timestamp issues affecting OKX signal delivery have been resolved
Recent Updates
| Feature | Description |
|---|---|
| Strategy Name | Updated for clarity |
| UI/UX | Improved settings window appearance |
| Stop-loss Options | Added StdDev method |
| Order Logic | Enhanced additional short order handling |
FAQ Section
What makes this strategy unique for OKX?
This strategy is specifically optimized for OKX's trading environment, with precision pricing for limit orders and direct webhook integration for instant alerts.
How does the stop-loss system work?
The strategy offers multiple stop-loss methods including SuperTrend+ATR and Standard Deviation approaches, with prices updated dynamically based on market conditions.
Can I customize the moving averages?
Yes, both the Basis MA and Signal MA parameters can be adjusted through the strategy settings, including ratio and multiplier values.
๐ Discover more advanced trading strategies
How do I set up alerts for OKX?
Use the built-in alert() function with the specified webhook URL and message format {{strategy.order.alert_message}} for seamless integration with OKX.
What's new in recent updates?
Recent additions include flex stop-loss for ATR, additional order entry points, and improved stop-loss price visibility in the interface.
๐ Explore OKX trading tools
Open Source Notice
This strategy follows TradingView's open-source principles. While free to use, republishing is subject to TradingView's House Rules.
Disclaimer
The information provided does not constitute financial advice. Always conduct your own research before making trading decisions.