2Mars - MA / BB / SuperTrend
Oct 22, 2023

The 2Mars - MA / BB / SuperTrend indicator is a versatile technical tool that combines moving average crossovers, Bollinger Bands, and SuperTrend mechanics to identify high-probability entry and exit points. By integrating trend-following and mean-reversion tactics, it aims to improve trading efficiency across various market conditions.
Usage
The script offers multiple entry triggers and management layers that can be combined or used independently:
- Entry Signals: Positions can be initiated through moving average crossovers, price crossing above/below specific Bollinger Band levels, or price crossing the basis moving average.
- SuperTrend Filter: Use the SuperTrend for additional trend confirmation. When enabled, entries only trigger when the trend aligns, and stop-loss levels can dynamically track trend changes.
- Layered Orders: The strategy supports additional orders (pyramiding). Orders #1 and #2 are typically triggered by Bollinger Band extremes, while Order #3 is triggered by MA basis crosses.
- Take Profit: Take-profit levels are mapped to standard deviation bands. Users can define up to three TP levels, closing specific percentages of the position at each stage.
- Limit Orders: Instead of market entries, the tool can calculate limit order prices based on ATR (e.g., Low - ATR * Multiplier for longs) to ensure better entry pricing.
Details
The 2Mars strategy utilizes a sophisticated moving average system where the Basis length is calculated as a Ratio of the Multiplier (Basis = Ratio * Multiplier), while the Signal length equals the Multiplier. This allows for fine-tuned sensitivity control.
The Bollinger Bands implementation is expanded beyond standard parameters, providing three distinct upper and lower levels based on Fibonacci-related multipliers (0.618, 1.618, and 2.618) to better capture price exhaustion and volatility expansion.
Settings
General & SuperTrend
- Source: The price data used for calculations (default is Close).
- Bars confirm: Number of consecutive bars required to confirm a signal before execution.
- SuperTrend Factor/Length: Adjusts the sensitivity of the SuperTrend line for trend detection and stop-loss placement.
Moving Average
- Basis/Signal MA Type: Choose from various types including SMA, EMA, WMA, HMA, and more.
- Ratio/Multiplier: Defines the relationship between the fast (signal) and slow (basis) moving averages.
Bollinger Bands
- Length/StdDev: Standard parameters for the BB calculation.
- Long/Short Orders: Dropdown menus to select which specific band (lower1-3, upper1-3) triggers entry orders.
Stop-Loss
- Stop-loss Type: Options include ATR-based, SuperTrend + ATR, or Standard Deviation-based exits.
- Flex Stop-Loss: An adaptive setting that adjusts the stop-loss price if the SuperTrend or MA trend flips against the position.
FAQ
How do I access 2Mars - MA / BB / SuperTrend?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Can I use this for scalping or swing trading?
Yes, by adjusting the Moving Average Multiplier and the Bollinger Band length, the script can be adapted for lower timeframes (scalping) or higher timeframes (swing trading).
What is the "Bars confirm" setting for?
This setting requires the entry condition to remain true for a specific number of candles, helping to filter out "fakeouts" or momentary price spikes.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.