Antigravity OCC Strategy (MA 5 + Delayed TSL)# OCC Strategy Optimized (MA 5 + Delayed TSL) - User Guide
## Introduction
The **OCC Strategy Optimized** is an enhanced version of the classic **Open Close Cross (OCC)** strategy. This strategy is designed for high-precision trend following, utilizing the crossover logic of Open and Close moving averages to identify market shifts. This optimized version incorporates advanced risk management, multi-timeframe analysis, and a variety of moving average types to provide a robust trading solution for modern markets.
>
> **Special Thanks:** This strategy is based on the original work of **JustUncleL**, a renowned Pine Script developer. You can find their work and profile on TradingView here: (in.tradingview.com).
---
## Key Features
### 1. Optimized Core Logic
- **MA Period (Default: 5):** The strategy is tuned with a shorter MA length to reduce lag and capture trends earlier.
- **Crossing Logic:** Signals are generated when the Moving Average of the **Close** crosses the Moving Average of the **Open**.
### 2. Multi-Timeframe (MTF) Analysis
- **Alternate Resolution:** Use a higher timeframe (Resolution Multiplier) to filter out noise. By default, it uses $3 \times$ your current chart timeframe to confirm the trend.
- **Non-Repainting:** Includes an optional delay offset to ensure signals are confirmed and do not disappear (repaint) after the bar closes.
### 3. Advanced Risk Management
This script features a hierarchical exit system to protect your capital and lock in profits:
- **Fixed Stop Loss (Initial):** Protects against sudden market reversals immediately after entry.
- **Delayed Trailing Stop Loss (TSL):**
- **Activation Delay:** The TSL only activates after the trade reaches a specific profit threshold (e.g., 1%). This prevents being stopped out too early in the trade's development.
- **Ratchet Trail:** Once activated, the stop loss "ratchets" up/down, never moving backward, ensuring you lock in profits as the trend continues.
- **Take Profit (TP):** A fixed percentage target to exit the trade at a pre-defined profit level.
### 4. Versatility
- **12 MA Types:** Choose from SMA, EMA, DEMA, TEMA, WMA, VWMA, SMMA, HullMA, LSMA, ALMA, SSMA, and TMA.
- **Trade Direction:** Toggle between Long-only, Short-only, or Both.
- **Visuals:** Optional bar coloring to visualize the trend directly on the candlesticks.
---
## User Input Guide
### Core Settings
- **Use Alternate Resolution?:** Enable this to use the MTF logic.
- **Multiplier for Alternate Resolution:** How many charts higher the "filter" timeframe should be.
- **MA Type:** Select your preferred moving average smoothing method.
- **MA Period:** The length of the Open/Close averages.
- **Delay Open/Close MA:** Use `1` or higher to force non-repainting behavior.
### Risk Management Settings
- **Use Trailing Stop Loss?:** Enables the TSL system.
- **Trailing Stop %:** The distance the stop follows behind the price.
- **TSL Activation % (Delay):** The profit % required before the TSL starts moving.
- **Initial Fixed Stop Loss %:** Your hard stop if the trade immediately goes against you.
- **Take Profit %:** Your ultimate profit target for the trade.
---
## How to Trade with This Strategy
1. **Identify the Trend:** Look for the Moving Average lines (Close vs Open) to cross.
2. **Wait for Confirmation:** If using MTF, ensure the higher timeframe also shows a trend change.
3. **Manage the Trade:** Let the TSL work. Once the trade hits the activation threshold, the TSL will take over, protecting your runner.
4. **Position Sizing:** Adjust the `Properties` tab in the script settings to match your desired capital allocation (Default is 10% of equity).
---
## Credits
Original Strategy by: **JustUncleL**
Optimized and Enhanced by: **Antigravity AI**
Wskaźniki i strategie
Heikin Ashi Color Flip StrategyManual HA calculation → no repainting
✔ Entry on first green after red
✔ Exit on first red after green
✔ process_orders_on_close = false → orders execute on next bar open
✔ Logic is clean and readable
How to make it your kind of strategy (next step)
Given your past preferences, the best upgrade is:
• Trade only when price > EMA 21
• Or only when SPY > EMA 50 & VIX < 20
• Exit on price close below EMA 21 (your preferred rule)
Consider the following to increase win rate and decrease drawdown:
• Add EMA-21 exit instead of HA red
• Add SPY/VIX regime filter
• Give you real QQQ daily backtest metrics
• Convert this into a scan/alert-only indicator
Disclaimer:
This indicator is provided for educational and informational purposes only and does not constitute financial, investment, or trading advice. The signals generated by this indicator are not guaranteed to be accurate or profitable. Past performance is not indicative of future results. Trading and investing involve substantial risk, and you should perform your own analysis and consult a qualified financial professional before making any trading decisions. The author is not responsible for any financial losses incurred from the use of this indicator.
Trend Pulse Channel StrategyOverview
Trend Pulse Channel Strategy is a long-only trend-following breakout strategy built around an adaptive multi-pole smoothing filter and a volatility-adjusted price channel.
The strategy is designed to participate in sustained directional moves by entering only when price confirms momentum strength beyond a dynamic upper boundary, while avoiding mean-reversion and low-quality consolidation phases.
This script is published as a strategy and includes realistic backtesting assumptions for position sizing, commissions, and slippage.
Core Concept
At the heart of the strategy is a multi-pole adaptive EMA-based filter, inspired by advanced digital signal smoothing techniques.
Using multiple poles allows the filter to reduce noise while preserving responsiveness to genuine trend changes.
To adapt the channel width to changing market conditions, the strategy applies the same filtering logic to True Range, producing a volatility-aware envelope rather than a static or fixed-percentage band.
This combination allows the strategy to:
Track directional bias using a smoothed central filter
Adjust channel width dynamically based on market volatility
Trigger entries only when price expansion confirms trend strength
Entry Logic
A long position is opened when:
Price crosses above the upper channel band
The signal occurs within the user-defined date range
This condition represents a volatility-confirmed breakout aligned with the prevailing directional filter.
Exit Logic
The long position is closed when:
Price crosses back below the upper band
This exit logic aims to stay in trending moves while exiting when upside momentum weakens.
The strategy does not open short positions by design.
Inputs and Defaults
The default inputs are selected to balance smoothness, responsiveness, and stability:
Source (HLC3): Reduces single-price noise by averaging high, low, and close
Period (144): Defines the primary smoothing horizon of the adaptive filter
Poles (4): Controls the smoothness vs. responsiveness trade-off
Range Multiplier (1.414): Scales the volatility envelope using filtered True Range
Reduced Lag (optional): Applies lag compensation to improve responsiveness
Fast Response (optional): Blends multi-pole and single-pole filters for quicker reaction at the cost of smoothness
All inputs are fully configurable and can be adjusted to suit different instruments and timeframes.
Risk Management & Position Sizing
The strategy uses:
Position size: 10% of equity per trade
No pyramiding
Long positions only
This sizing approach is intended to reflect sustainable risk exposure rather than aggressive capital deployment. Users may further adjust position size based on their own risk tolerance.
Backtesting Assumptions
The strategy is tested using :
Initial capital: 10,000
Commission: 0.1%
Slippage: 1 tick
Order fill model: Standard OHLC
These settings are chosen to provide more realistic performance estimates compared to idealized backtests.
This strategy is best suited for :
Trend-oriented markets
Higher timeframes where breakouts are more reliable
Users seeking systematic trend participation rather than frequent scalping
In sideways or range-bound market conditions, price may cross the channel boundaries frequently.
This can result in a higher number of entry and exit signals that do not develop into sustained trends.
For this reason, the strategy should be used with an understanding of basic technical analysis concepts, including market structure, trend identification, and consolidation behavior.
It is intended as a decision-support tool, not a standalone trading system.
Users—whether beginners or experienced traders—should avoid relying solely on this strategy and are encouraged to combine it with broader market context and additional analysis methods.
Disclaimer
This script is provided for educational and analytical purposes only. It does not constitute financial advice. Past performance does not guarantee future results.
NQ Lunch High Low First Sweep StrategyThis script identifies the FIRST liquidity sweep of the Lunch session high or low
after the Lunch session has ended, based on ICT / Killzone concepts.
Logic summary:
• Tracks Lunch session High and Low (New York time)
• After Lunch session closes, monitors the market on 5-minute timeframe
• Triggers ONLY on the first sweep:
– Price wicks beyond Lunch High and closes back below → SHORT signal
– Price wicks beyond Lunch Low and closes back above → LONG signal
• Generates an alert at the exact bar where entry is expected
• Designed specifically for Nasdaq (NQ) futures
• One trade per day – no overtrading
Notes:
• Intended for 5-minute charts only
• Uses New York session timing
• This script does NOT manage exits (TP/SL) – entry logic only
• Best used as a confluence tool, not a standalone system
Educational & discretionary use only.
9 EMA Trend-Flow StrategyThis strategy avoids trading inside the noise and waits for Bitcoin to "coil up" before exploding.
1. Chart Setup
Timeframe: 5 Minutes
Bollinger Bands: Length 20, Standard Deviation 2 (Default).
RSI (Relative Strength Index): Length 14.
EMA (Exponential Moving Average): Length 200 (Trend Filter).
2. The Rules
Long Setup (Buy)
The Trend Filter: Price must be above the 200 EMA.
The Squeeze: The Bollinger Bands must visually contract (narrow), indicating volatility is dying down.
The Trigger: A 5m candle closes strongly above the Upper Bollinger Band.
Confirmation: RSI must be rising and above 50 (but ideally not yet "pegged" at 90+).
Short Setup (Sell)
The Trend Filter: Price must be below the 200 EMA.
The Squeeze: The Bollinger Bands contract.
The Trigger: A 5m candle closes strongly below the Lower Bollinger Band.
Confirmation: RSI must be falling and below 50.
Execution Guide
Entry Technique
Don't enter immediately when the candle touches the band. Wait for the candle close.
Why? Bitcoin frequently "wicks" through bands to trap traders (fakeouts) before reversing. A solid close outside the band confirms momentum.
Exit Strategy (Take Profit)
Target 1 (Conservative): Close 50% of the position when price expands to a fixed risk-reward ratio (e.g., 1.5R).
Target 2 (Runner): Keep the remaining position open as long as price "walks the band" (stays outside or touching the outer band). Close the rest when a candle finally closes back inside the Bollinger Bands.
Stop Loss
Placement: Place your Stop Loss (SL) slightly below the Middle Band (the 20 SMA) at the time of entry.
Trailing: As the price moves in your favor, move your SL to trail the Middle Band.
Ichimoku Cloud Strategy - 1H HyperliquidStategy for Hyperliquid 1hr time frame using Ichimoku's Cloud.
Supertrend + EMA + RSI Algo (Low Risk High Accuracy)This is a trend-following + momentum confirmation strategy designed to reduce false signals and control loss.
Supertrend (10,3) → Identifies overall market direction (Buy in uptrend, Sell in downtrend)
EMA 50 & EMA 200 → Confirms strong trend and avoids sideways market
Buy only when EMA 50 is above EMA 200
Sell only when EMA 50 is below EMA 200
RSI (14) → Confirms momentum
Buy when RSI > 55 (strong bullish momentum)
Sell when RSI < 45 (strong bearish momentum)
---
🔹 Entry Logic
BUY: Market is in uptrend + strong momentum
SELL: Market is in downtrend + strong bearish pressure
---
🔹 Risk Management (Most Important)
Stop Loss: Based on ATR (adapts to volatility)
Target: Fixed Risk-Reward ratio (example: 1 : 2.5)
This keeps loss small and profits larger
---
🔹 Best Use Case
Works best in trending markets
Ideal timeframes: 15m, 1h, 4h
Suitable for crypto futures & swing trading
Beginner-friendly if used with low leverage
FVG Strategy with validationThe code needs to be fixed because it renders the boxes incorrectly, otherwise you can see that the code is profitable in some markets
SMH_DualMomentum (ROC + Volume Trend)SMH Dual Momentum (ROC + Volume Confirmation)
This indicator identifies high-quality bullish trends by combining price momentum (Rate of Change) with volume confirmation, and exits when momentum structurally fails.
Core Logic
BUY signal
Rate of Change (ROC) over N periods is above a positive threshold (strong upside momentum)
Current volume is above its moving average (rising market participation)
SELL signal
ROC crosses below zero, indicating loss of bullish momentum
Why It Works
ROC measures the speed and strength of price movement, filtering out weak or drifting trends
Volume confirmation ensures momentum is supported by real capital flow, reducing false breakouts
Momentum-based exit avoids prolonged drawdowns and capital stagnation
Key Advantages
Focuses on trend continuation, not prediction
Filters out low-quality price moves and range-bound markets
Captures long, high-conviction trends with relatively few trades
Simple, robust rules using only price and volume
Best Use Cases
Designed for trend-driven ETFs such as SMH (Semiconductors)
Suitable for swing to position trading on daily charts
Works best in markets with strong sector rotation and institutional participation
Notes
This is a trend-following momentum tool, not a mean-reversion indicator
No stop-loss is built in; risk management should be handled externally if required
Parameters can be adjusted to match different timeframes or assets
10>20,p>50 DEMARenders daily EMA, 10, 20 and 50 on any timeframe below 1D
30m timeframe works well.
Use trend of 10 > 20 + price > 50 for long and 10 < 20 + price < 50 for shorts or exits.
ParetoCapital AlogrithmThis strategy is a volatility-based breakout system designed to trade only when the market shows sufficient expansion and directional clarity.
It operates by:
Filtering market regime using a long-term trend reference to avoid trading against dominant momentum.
Activating only during elevated volatility, ensuring trades are taken when price movement has enough energy to justify risk.
Entering via breakout orders, not market orders, so trades are triggered only if price confirms continuation.
Applying strict risk control, with capital usage and risk capped per trade.
Separating backtest logic from live execution, using fixed external order sizing for consistency in automation.
The strategy is intended for systematic, automated execution and avoids overtrading by remaining inactive during low-volatility or unclear market conditions.
Signal Algo - Elephant Edge Strategy🔶 Strategy Overview:
This strategy is designed for intraday trading and focuses on taking trades near important price reference areas instead of random market locations.
This strategy is designed to:
Take trades only near important price levels
Avoid random mid-market entries
Validate every trade using multiple confirmation filters
It combines the following core concepts:
Elephant Edge zones based on previous session volatility
Index & F&O strike price levels (psychological and liquidity-based levels)
Previous Day OHLC levels (important institutional reference prices)
The goal of this strategy is to allow trades only when price behavior is meaningful and occurs near key market reference areas, while filtering out low-quality signals. All filters are optional, allowing traders to customize the strategy according to their trading style, risk preference, and market conditions.
🔶 How to Use: Elephant Edge Support–Resistance
This strategy is based on the Elephant Edge Support–Resistance concept, where trades are taken only near important price zones instead of random market areas.
The image above shows how the strategy identifies Support Zones, Resistance Zones, and how trade entries and exits are generated.
🟩 Support Zones:
Shown as green areas. These are considered potential Buy zones.
A positive price reaction from these zones is required before a Buy entry is generated.
🟥 Resistance Zones:
Shown as red areas. These are considered potential Sell zones.
Price rejection from these zones is required before a Sell entry is generated.
Important:
The strategy does not blindly buy or sell at the zone. Entries are generated only after additional confirmation, such as: Candle structure validation, Directional filters, Optional, volume and time filters (if enabled)
Trade entries are generated only when price touches a Support or Resistance zone.
These zones represent areas where price is more likely to react, helping to avoid low-quality trades during sideways or random market movement.
Final Understanding:
This strategy is not about predicting the market. It is about reacting to price behavior at important levels and trading only when conditions are meaningful.
🔶 How to Use: Index Strike Price Support–Resistance
This concept is based on *Index & F&O Strike Price levels*, where trades are taken near important *round-number strike prices* (for example: every 50 or 100 points), instead of random price locations.
The image above shows how *strike prices act as natural Support and Resistance levels** in index trading.
🟩 Strike Price Support:
Strike levels below the current price act as potential Support zones. Price reaction from these levels is required before a Buy entry is generated.
🟥 Strike Price Resistance:
Strike levels above the current price act as potential Resistance zones. Price rejection from these levels is required before a Sell entry is generated.
Trade entries are generated only when price touches or reacts near a strike price level.
These levels represent *psychological and liquidity-based areas*, where price is more likely to pause, reverse, or react.
🔶 How to Use: Previous Day OHLC Levels
This concept is based on *Previous Day Open, High, Low, and Close (OHLC)* levels, which are widely used as *important market reference prices* by traders and institutions.
The image above shows how price reacts around Previous Day OHLC levels and how they act as natural *Support and Resistance areas** during intraday trading.
🟩 Previous Day Support Levels:
Previous Day Open, Low, or Close levels below the current price act as potential Support zones.
A positive price reaction from these levels is required before a Buy entry is generated.
🟥 Previous Day Resistance Levels:
Previous Day Open, High, or Close levels above the current price act as potential Resistance zones. Price rejection from these levels is required before a Sell entry is generated.
Trade entries are generated only when price touches or reacts near a Previous Day OHLC level.
These levels represent *high-interest price areas* where price is more likely to pause, reverse, or show strong reactions.
🔵 Strategy Setting Features Overview :
Trade Direction Controls : -
Buy Only When enabled: The strategy will generate only Buy trades All Sell signals are ignored Sell Only When enabled: The strategy will generate only Sell trades All Buy signals are ignored
Important Note If both Buy Only and Sell Only are enabled: The strategy can generate both Buy and Sell trades
Candle Direction & Color Filter : -
Available Options:
Both - Candle color is ignored Trades depend only on strategy logic
Trend - Buy → Green candles only. Sell → Red candles only
O-Trend - Buy → Red candles only. Sell → Green candles only
Continuous Buy / Sell Check : -
When enabled: Prevents repeated trades in the same direction Reduces over-trading during sideways markets Example: After a Buy trade, another Buy trade will not be taken immediately unless conditions reset.
Elephant Edge Percentile Levels : -
When enabled: Buy trades are allowed only near lower percentile levels Sell trades are allowed only near upper percentile levels
Why this matters: Percentile levels act as dynamic intraday support and resistance based on historical price movement.
Strike Price Level Filters : -
When enabled: Buy trades require price to touch lower strike zones Sell trades require price to touch upper strike zones
Why strike levels are important: Strike prices often act as psychological and liquidity zones, especially in index trading.
Previous Day OHLC Levels : -
When enabled: Draws Previous Day Open, High, Low, and Close on the chart Trades are allowed only when price touches any of these levels
Why Previous Day levels matter: These levels are widely watched by traders and institutions Price often reacts strongly near them Helps filter out low-probability trades
Stoploss Settings : -
Candle Touch: Stoploss triggers immediately when price touches the level
Candle Close: Stoploss triggers only after candle closes beyond the level
Stoploss Type Choose how stoploss distance is calculated:
Candle High / Low
Fixed Points
Percentage based
Trailing Stoploss : -
Trailing stoploss helps protect profits as price moves favorably. Trailing Mode
Points
Percentage
Trailing Activation Defines how much profit is required before trailing starts.
Candle Structure Filters : -
Candle Size : Filter Avoids trades on: Very small candles (low momentum) Extremely large candles (high risk)
Candle Body : Filter Ensures trades are taken only on candles with sufficient body strength.
Wick Filter : Filters out candles with unusually long wicks, which often indicate fake breakouts.
Hammer Candle Detection : -
Enable Hammer Pattern Detects hammer-type candles using wick-to-body ratios.
Useful for: Reversal-based setups near key levels
Entry & Stop Buffers : -
Buffers add small offsets to: Entry price Stoploss price
Purpose: Helps avoid false triggers caused by small price spikes or noise.
Volume-Based Validation : -
Use Volume Alert Validity Trades are allowed only after a high-volume candle appears.
Why volume matters: High volume confirms participation and interest.
Time & Trade Limits : -
Entry / Exit Time Restricts trades to specific market hours. Trade Count Limits Controls the maximum number of trades per session to avoid over-trading.
Quantity Calculation: -
Investment Amount Automatically calculates trade quantity based on capital amount.
Benefit: Helps maintain consistent risk across different instruments.
JSON Alert Output: -
Used for: Automation Broker integration This does not affect strategy logic.
⚠️ Disclaimer This strategy is provided for educational and research purposes only. Past performance does not guarantee future results. Users should test and manage risk independently.
mucip sat stratejisiThis strategy performs scaled short entries across multiple timeframes.
Position additions are executed using small capital allocations (1–2% per entry) to manage risk efficiently.
It is primarily optimized for major cryptocurrencies.
The strategy is designed for futures markets and operates with leverage in the 10–15x range.
Prop-Firm Ready 2% Drawdown Double-Digit PF 72% AccuracyPerformance snapshot (Strategy Tester):
• ~72% win rate
• Double-digit profit factor (11+)
• ~1.39% maximum drawdown
• 36 trades over a multi-month window
• 1-contract baseline (scalable)
This system was engineered specifically to solve the hardest problem in trading:
high return with institutional-grade drawdown control.
Prop-firm ready by design:
• Drawdown remains well below common prop-firm limits
• No martingale, no grid, no averaging down
• Controlled trade frequency with asymmetric risk/reward
• Capital efficiency prioritized over trade count
What this is:
A turnkey, all-factor trading system that integrates trend, momentum, volatility, and structural confirmation into a single execution framework. Independent engines operate in parallel to capture non-correlated opportunity while the core system maintains directional exposure.
What this is not:
• Not curve-fit
• Not over-leveraged
• Not dependent on winning every trade
The objective is simple:
extract maximum capital growth per unit of drawdown.
This script is published for full performance transparency.
Source code and inputs are protected.
Additional system details and updates:
www.empireostrading.com
Kairos MA Strategy [Personal Version] BHow it Works:
Trend Definition: Uses a Fast MA (e.g., SMA 10) and a Slow MA (e.g., SMA 11).
Uptrend: Fast MA > Slow MA.
Downtrend: Fast MA < Slow MA.
Entry Trigger: The price must retrace to touch the Fast MA.
Validation: The pullback is validated by ATR limits to ensure the price hasn't wicked or closed too far past the MA (preventing "catching a falling knife").
Filters:
Slope Filter: Ensures the MAs have a steep enough angle to avoid trading during flat/choppy markets.
Volatility: Checks VIX (maximum fear) and ATR (minimum movement) to ensure safe market conditions.
Confluence: Optional checks from oscillators like RSI, Stochastic, CCI, etc.
Exits:
Fixed Targets: Uses a defined Take Profit and Stop Loss in points.
No Trade Zone (NTZ): A specific time window that forces all active trades to close (e.g., to avoid holding overnight).
Unique Features:
Custom Dashboard: Displays real-time win rates, streaks, and a "Strategy Grade" directly on the chart.
Dual-Engine: Runs as both a visual indicator (with custom labels) and a backtestable strategy simultaneously.
New Rate - PREMIUM v2New Rate - PREMIUM v2
New Rate - PREMIUM v2 is an intraday Opening Range Breakout (ORB) strategy built around a strict one-trade-per-day execution model.
The strategy defines a price range using the first N candles of a user-defined session, freezes the High/Low at the close of candle N, and places OCO stop orders exactly at those levels. The first breakout fills, the opposite order is canceled, and no further trades are allowed until the next trading day.
This script is published for educational and research purposes, with documented mechanics and backtest settings to support transparency and reproducibility.
How the strategy works
Session range construction
The user selects a minutes-based timeframe, a session start time, and the number of candles N. During the session window, the strategy tracks the highest High and lowest Low formed by the first N candles. These candles are visually highlighted on the chart.
Range freeze
When candle N closes, the range is locked. Horizontal High/Low lines are drawn and extended forward. An optional 50% midpoint can be displayed for reference.
OCO breakout execution
Immediately after the range is frozen, the strategy places:
A buy stop at the frozen High
A sell stop at the frozen Low
Orders are linked using OCO (One-Cancels-Other) logic. When one side fills, the opposite order is automatically canceled.
Exit management
Two exit frameworks are available:
Tick-based exits: stop-loss and take-profit are fixed distances in ticks from entry.
Risk/Reward exits: optional stop at the opposite side of the range, with TP calculated as RR × risk.
Both modes can display SL/TP boxes projected forward for visual review.
Daily execution lock
After the first filled trade of the day, the strategy blocks any new entries until the next daily reset. This enforces strict discipline and prevents over-trading.
Visual features
Configurable High/Low lines and labels (color, style, width, alignment)
Optional midpoint (50%) line
Session background highlight with adjustable opacity
Optional SL/TP boxes with configurable colors, borders, and projection length
Weekday filter (trade only selected days)
Settings used for the published backtest (replication)
The performance screenshots included with this publication were generated using the following configuration:
Market & chart
Symbol: FX:XAUUSD
Timeframe: 15 minutes
Session & range
Session start: as configured on chart (exchange time)
Range candles (N): 1
Auto range end: enabled (TF × N)
Line extension: 20 bars
Exits
Exit mode: SL/TP by ticks
Stop-loss: 1500 ticks
Take-profit: 2000 ticks
Weekdays
Monday to Friday enabled
Strategy Properties (TradingView settings)
Initial capital: 1,000 USD
Commission: 0.1 (as set in Strategy Properties)
Slippage: 1 tick
Users should adjust commission, slippage, and position sizing to match their own broker and execution conditions.
Backtest context and limitations
This strategy uses stop orders that may fill intrabar depending on TradingView’s execution model.
Results vary by symbol, timeframe, session selection, and trading costs.
Past performance does not guarantee future results.
This script is not financial advice.
Originality and usefulness
While opening-range breakouts are a known concept, this strategy’s implementation focuses on:
Exact range-freeze timing: orders are armed precisely at the close of the N-th candle.
True OCO + hard daily lock: one-and-done execution enforced at the engine level.
Dual exit framework: fixed-tick and RR exits analyzed with the same SL/TP visual logic.
Operational safeguards: weekday filters and drawing limits designed for stable long-term backtesting.
FluxMA ProFluxMA Pro
FluxMA Pro is an intraday trend-following strategy based on moving-average cross signals , with built-in execution filters (time window + weekdays), direction control, and an optional strict one-trade-per-day rule.
The system enters when price crosses the selected moving average, and manages risk using fixed SL/TP in ticks . For clarity and auditing, it plots the MA and draws risk (SL) / reward (TP) zones on the chart.
This script is published for educational and research purposes , with documented mechanics and replication settings to support transparency and reproducibility.
How the strategy works
Signal engine (MA cross)
A base Moving Average (MA) is computed from a selectable price source.
A Long signal triggers when price crosses above the MA.
A Short signal triggers when price crosses below the MA.
Execution filters
Time filter : trades only inside the configured window (supports overnight windows correctly).
Weekday filter : enable/disable trading by day (Mon–Sun).
Direction filter : run Long only , Short only , or Both .
One trade per day (optional) : if enabled, once a trade is placed, no new trades are allowed until the next daily reset.
Risk management (ticks)
Stop-loss and take-profit are set using fixed distances in ticks from entry.
Orders are placed with a stop and a limit exit to keep execution auditable.
Visual audit layer
Plots the Moving Average on the chart.
Draws SL/TP zones as boxes that extend while the position is open.
Adds entry labels (“buy” / “sell”) for quick review in replays and optimizations.
Visual features
MA plot with selectable MA type (SMA/EMA/WMA/RMA) and length.
Risk/Reward boxes projected from entry (SL zone + TP zone).
Entry labels with configurable styling (label/flag) and colors.
Settings used for the published backtest (replication)
The performance screenshots included with this publication were generated using the following configuration:
Market & chart
Symbol : XAUUSD (FXCM feed)
Timeframe : 15 minutes
Date range : 02 Jan 2025 → 07 Nov 2025
Inputs (Strategy settings)
Source : Close
MA type : SMA
MA length : 10
Stop Loss : 1400 ticks
Take Profit : 2000 ticks
Time filter : enabled — 06:00 to 22:15 (exchange time)
Weekday filter : enabled — Monday to Sunday enabled
Direction : Long only
One trade per day : enabled
TradingView Strategy Properties used
Initial capital : 1,000 USD
Commission : 0.2 (as set in Strategy Properties)
Slippage : 1 tick
Backtest snapshot (as shown)
Net Profit : +727.41 USD (+72.74%)
Max Drawdown : 200.25 USD (12.71%)
Total Trades : 218
Win Rate : 52.29% (114 / 218)
Profit Factor : 1.485
Backtest context and limitations
Stop/limit fills may occur intrabar depending on TradingView’s execution model and bar magnifier assumptions.
Results vary by symbol, timeframe, broker feed, spreads, commissions, slippage, and session selection.
Past performance does not guarantee future results.
This script is not financial advice.
Originality and usefulness
While MA-cross strategies are a known concept, FluxMA Pro focuses on an execution-grade implementation designed for testing and disciplined deployment:
Execution guardrails : optional one-trade-per-day lock + direction filter to prevent over-trading and strategy drift.
Session handling done properly : time windows support overnight logic (no “broken window” edge cases).
MA modularity : SMA/EMA/WMA/RMA selection enables controlled experiments without rewriting logic.
Auditable visuals : SL/TP zones and labels allow fast review of behavior during replays, optimization, and multi-asset scans.






















