Why a Vegas and ADX Pine Strategy May Produce No FMZ Trades
Summary
The document presents a TradingView Pine strategy that combines a Vegas-style EMA filter with ADX and candle conditions. It enters long or short positions when the corresponding filter conditions are met, the ADX exceeds a threshold, and the candle condition has just become true. Position size is based on a percentage of strategy equity divided by the distance to a recent 30-bar stop; exits use two profit targets and a shared stop, with a partial take-profit at the first target.
The stated issue is that the script displays signals, trades, and backtest results in TradingView, but produces no trades and no errors when backtested on FMZ. The document supplies the source code but no diagnosis, platform-specific explanation, or verified fix. Readers can inspect its indicator logic and sizing and exit rules, but should not infer that any particular incompatibility explains the FMZ behavior. Differences in Pine support and order handling would need to be checked separately.
Key ideas
- The strategy combines EMA-based Vegas filters, candle conditions, and an ADX threshold to generate entries.
- It calculates stop levels from recent lows or highs and sizes positions using a fixed percentage of strategy equity.
- Exits use two targets, with a partial close at the first target and a stop applied to both exits.
- The document reports a no-trade discrepancy between TradingView and FMZ but provides no diagnosis or tested remedy.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.