PROTECTED SOURCE SCRIPT
FluxMA Pro

FluxMA – Mechanical Moving Average Strategy with Risk Control
FluxMA is a backtesting strategy based on price breaking through a configurable moving average. Its purpose is to provide a simple, transparent, and flexible framework to study a trend-following system with clear entries, predefined Stop Loss and Take Profit levels, and no martingale, no grid, and no hidden logic.
This strategy is intended for traders who want to analyze data objectively, test risk management ideas, and explore different moving average, time, and weekday configurations within the TradingView environment.
Core Strategy Logic
The core logic of FluxMA is driven by the relationship between the close price and a configurable moving average:
- A moving average is calculated on the close price (SMA, EMA, WMA, or RMA).
- When a bar closes above the moving average, a long (buy) signal is generated.
- When a bar closes below the moving average, a short (sell) signal is generated.
- Trades are simulated at the open of the next bar, avoiding any repainting of signals on the current bar.
- At all times, the strategy keeps at most one open position (no pyramiding).
There are no complex patterns or hidden conditions: everything is centered on the clean break of price relative to the moving average.
Main Parameters
FluxMA includes several parameters so you can adapt the behavior of the strategy to the instrument and your preferred style:
Moving Average
- Moving average type: SMA, EMA, WMA, or RMA.
- Moving average period: fully configurable, so you can make it faster or slower depending on timeframe and instrument.
Basic SL/TP Management
- Stop Loss (SL) set at a fixed price distance.
- Take Profit (TP) set at a fixed price distance.
- The risk–reward ratio is defined by the combination of SL and TP settings.
Trading Filters
- Time filter: define a start time and end time for trading to limit the strategy to specific intraday sessions.
- Day-of-week filter: choose which days (Monday–Sunday) are allowed to trade.
- Direction filter:
- Longs only.
- Shorts only.
- Both directions.
- “One trade per day” option: after the first trade of the day, all further signals for that day are ignored.
Suggested Use and Best Practices
FluxMA is meant to be a prototyping and analysis tool, not a ready-made “plug-and-play” system. Some ideas for how to use it:
- Test different timeframes (e.g., M5, M15, H1) and see how performance changes as you adjust the moving average speed and the time horizon.
- Tune the moving average type and period to study smoother vs. more aggressive trend behavior.
- Analyze the impact of the time filter: only European session, only US session, or narrower windows.
- Turn specific weekdays on/off to identify which days tend to behave better for each instrument.
- Use this strategy as a base layer and later add your own filters (higher timeframe trend, volatility filters, etc.) within TradingView’s testing environment.
It’s a good idea to combine backtest results with manual chart review, especially in highly volatile periods and around major trend reversals.
Disclaimer and Limitations
FluxMA does not use martingale, grid, averaging down, or any aggressive position sizing. Each trade is opened with a clear logic and closed by SL or TP according to fixed rules.
This strategy runs only inside TradingView for historical simulation and analysis purposes. It is not investment advice or financial guidance.
Backtest and historical results do not guarantee future performance in live markets.
Any decision to use similar logic in live accounts or other trading environments is entirely the user’s responsibility, including risk management, position sizing, and instrument selection.
In summary, FluxMA is a simple and transparent foundation to study how a mechanical moving average breakout system behaves under different parameter, session, and weekday configurations, within a controlled testing environment like TradingView.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Get access to our exclusive tools: popeyacademy.com
Join our 4k+ community: t.me/popeyacademy
All content provided by PoPey Group is for informational & educational purposes only. Past performance does not guarantee future results.
Join our 4k+ community: t.me/popeyacademy
All content provided by PoPey Group is for informational & educational purposes only. Past performance does not guarantee future results.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Get access to our exclusive tools: popeyacademy.com
Join our 4k+ community: t.me/popeyacademy
All content provided by PoPey Group is for informational & educational purposes only. Past performance does not guarantee future results.
Join our 4k+ community: t.me/popeyacademy
All content provided by PoPey Group is for informational & educational purposes only. Past performance does not guarantee future results.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.