DNYL . SPACE

As motivation plays a crucial role in reaching these goals.

Tag Archive : parabolic sar

This is in ‘Trailing Activation’ section or ‘Trailing Stop’, Trailing Activation in SQX has ATR only and Trailig Stop has Price Level mean Calculate from indicators

In StrategyQuant X (SQX), the Trailing Activation and Trailing Stop sections are distinct, each with specific settings:

  • Trailing Activation: Controls when the trailing stop becomes active. By default, Trailing Activation in SQX offers ATR as the primary activation option, meaning the trailing stop is activated once a certain ATR threshold is met.
  • Trailing Stop: This defines the actual trailing mechanism, including Price Level settings, which allow you to calculate trailing stops based on indicator values.

To set up a trailing stop that activates and follows an indicator-based level (without using ATR in the Trailing Activation), you can configure the following:

Step-by-Step Setup in SQX

  1. Set Trailing Activation (Alternative to ATR):
    • Since Trailing Activation only allows ATR by default, you can bypass this by setting ATR to a very low threshold to have it activate immediately.
    • Alternatively, if you prefer not to use ATR, you can manually implement the trailing conditions directly in the Trailing Stop section, effectively bypassing Trailing Activation.
  2. Define Trailing Stop with Indicator-Based Price Level:
    • In the Trailing Stop section, choose Price Level as the calculation basis.
    • Select the indicator you want to use for the trailing stop calculation. For example:
      • Moving Average (e.g., EMA): Use the EMA value as the trailing stop reference.
      • Bollinger Bands: Use the lower band for long trades and the upper band for short trades.
    • Set the Offset if needed (e.g., 10 pips below an EMA or a percentage offset from Bollinger Bands).
  3. Example Configuration:
    • Moving Average (EMA) Trailing Stop:
      • In Trailing Stop settings, select Price Level and set it to follow a 50-period EMA.
      • Configure the offset to trail slightly below (for long trades) or above (for short trades) the EMA.
      • Adjust the Trailing Distance or Offset as needed, which allows the stop to follow the indicator without a fixed timeframe or ATR activation.

Key Considerations:

  • Skip Trailing Activation: Using a low ATR setting lets you avoid waiting for ATR activation, so the trailing stop will instead activate based on indicator movement in the Trailing Stop section.
  • Indicator Choice: Choose an indicator that aligns with your strategy. Moving averages, Bollinger Bands, and Parabolic SAR can each provide unique support/resistance levels.

By focusing on the Trailing Stop > Price Level settings and skipping strict activation requirements, you can create a highly customizable trailing stop based on indicators in SQX.

Can you explain more about how to set up trailing stops based on indicators in SQX?

In StrategyQuant X (SQX), setting up trailing stops based on indicators allows you to adaptively protect profits as market conditions change. Here’s a step-by-step guide on how to configure trailing stops that follow indicator levels rather than a fixed price distance.

1. Choose an Indicator for Trailing Activation

You’ll want to pick an indicator that provides reliable support or resistance levels for trailing stops. Common indicators for trailing stops include:

  • Moving Average (e.g., EMA or SMA) – Trails based on the trend’s moving average.
  • Parabolic SAR – Trails based on the SAR dots, adjusting dynamically as trends change.
  • ATR (Average True Range) – Trails based on market volatility, keeping stops further away during high volatility and closer during low volatility.
  • Bollinger Bands – Uses upper/lower bands as dynamic stop points.

2. Set Up Indicator-Based Trailing Stops in SQX

Here’s how to configure indicator-based trailing stops in SQX, using a Moving Average as an example:

  1. Define the Trailing Stop Condition:
    • Go to Trading Strategy > Money Management in SQX.
    • Enable Trailing Stop and select Custom for more control over the conditions.
  2. Create a Rule for Trailing Stop Activation:
    • In the Trailing Stop settings, set the rule condition by adding the indicator as a condition for trailing activation.
    • For example, choose Moving Average from the indicator list and set the trailing stop to activate when the price moves a specific distance from the Moving Average line.
  3. Adjust Distance and Frequency:
    • Define the distance between the indicator and the trailing stop:
      • For a Moving Average, you might set the stop to trail at a certain number of pips or percentage below the MA for long positions (or above for short positions).
      • For ATR, you could set the trailing stop to a multiple of the ATR value (e.g., 1.5x ATR).
    • Set the frequency for updating the trailing stop, usually with every new price tick, to ensure it follows the indicator closely.

3. Example Configurations for Different Indicators

Here are configurations for some commonly used indicators as trailing stops:

  • Moving Average (MA) Trailing Stop:
    • Set trailing stop to activate when the price is a certain distance (in pips) away from the selected MA.
    • Example: If the price is 20 pips above a 50-period EMA, set the trailing stop 10 pips below the EMA to follow the trend.
  • ATR Trailing Stop:
    • Activate the trailing stop when ATR exceeds a certain threshold, then trail the stop by a multiple of the ATR.
    • Example: If ATR(14) = 15 pips, set the stop at 1.5x ATR (22.5 pips) from the entry price, adjusting as ATR changes.
  • Parabolic SAR Trailing Stop:
    • Set the trailing stop to follow the SAR dots, which adjust to market reversals.
    • Example: Set the trailing stop to match the SAR level and update with each new SAR value, keeping the stop at the SAR level for trend-following entries.
  • Bollinger Bands:
    • Use the lower band as a trailing stop for long trades and the upper band for short trades.
    • Example: Place the trailing stop at the lower Bollinger Band for a long trade and adjust as the bands move based on volatility.

4. Define the Exit Condition in SQX:

  • Go to the Exit Rules section and add the indicator-based trailing stop as an exit rule.
  • Set the trailing stop to close the position if the price touches or moves past the defined trailing level.

Example: Setting Up a Moving Average-Based Trailing Stop in SQX

  1. Activate Trailing Stop: In the Money Management section, enable Trailing Stop and set the trailing condition based on a 50-period EMA.
  2. Set Distance: Define the trailing stop to trail at a distance of 10 pips below the EMA for long trades.
  3. Update Frequency: Choose on every tick to ensure the stop adjusts as the EMA value changes.
  4. Exit Rule: Set the rule to exit when the price crosses the trailing stop level.

Advantages of Indicator-Based Trailing Stops

  • Adaptability: The trailing stop adjusts to market conditions, following trends and respecting support/resistance.
  • Noise Reduction: Indicator-based stops reduce premature exits, as they often respond to genuine trend shifts rather than small price fluctuations.
  • Dynamic Profit Protection: Stops adapt to volatility and trend strength, helping you lock in profits effectively.

This approach lets you create a responsive trailing stop in SQX that aligns with current market dynamics rather than rigid price points, which is especially useful for trend-following and volatility-based strategies. Let me know if you’d like more specific setup help with any particular indicator!

Though about how to activate trailing without timeframe activation… It’s on major condition with TF

In StrategyQuant X (SQX), if you want to activate a trailing stop without relying on a specific timeframe, you can do this by setting up the trailing stop condition based on price movement or indicator levels rather than on a timeframe. Here are a few ways to implement this:

1. Activate Trailing Based on Distance from Entry Price (Price-Based)

  • Setup: Set the trailing stop to activate once the price has moved a specific distance (e.g., a certain number of pips or a percentage move) from the entry price.
  • Configuration:
    • In SQX, configure the trailing stop to trigger when the price has moved a specified amount in your favor.
    • Set up the trailing distance as a fixed pip amount, or based on an indicator like ATR or a custom value.
  • Advantage: This activates the trailing stop purely based on price movement, so it doesn’t rely on the passage of time or specific candles.

2. Indicator-Based Trailing Activation (No Timeframe Required)

  • Setup: Use an indicator to dynamically activate the trailing stop when a trend or threshold condition is met, independent of timeframe.
  • Example:
    • Moving Average: Trailing stop activates when the price crosses above a moving average by a certain distance.
    • Parabolic SAR: Use SAR points as a trailing stop activation level, adjusting the stop if the SAR shifts.
    • ADX or Momentum: Activate the trailing stop when a trend strength indicator (like ADX) crosses a threshold, indicating a strong trend continuation.
  • Configuration: In SQX, set the activation condition by configuring the trailing stop rule with an indicator level.

3. Profit-Based Trailing Activation

  • Setup: Activate trailing when the trade reaches a predefined profit level, regardless of timeframe.
  • Configuration:
    • Define a minimum profit level (e.g., 1% or 50 pips) in SQX, and set the trailing stop to activate once this profit threshold is met.
  • Advantage: This keeps the trailing stop inactive until the trade has generated enough profit, helping to secure gains while allowing room for the trade to move.

4. ATR or Volatility-Based Activation

  • Setup: Use ATR (Average True Range) or other volatility-based indicators to activate the trailing stop once the market reaches a certain level of volatility, independent of a fixed timeframe.
  • Configuration: Set the trailing stop activation to trigger when ATR reaches a threshold value. For instance, if ATR goes above a certain level, it may indicate increased momentum, prompting trailing stop activation.
  • Advantage: Volatility-based activation allows the trailing stop to adjust dynamically to market conditions without a reliance on a specific timeframe.

Each of these methods allows you to activate the trailing stop based on market conditions, price movement, or profit levels rather than timeframe-specific events. This flexibility can help secure profits in trending markets while allowing trades enough room to develop in your favor. Let me know if you’d like guidance on configuring any of these methods in SQX!

Count and listing used indicators passed strategies.

To match your available signals to the 12 strategies, let’s review and count which indicators would be appropriate for each trading strategy from the list of signals you provided.

Trading Strategies and Potential Indicator Matches:

  1. Price Action Trading
    Indicators: Candle Pattern, Fractal, Highest Lowest, Moving Average, Bollinger Bands, Fibonacci (custom code possible)
  2. Range Trading Strategy
    Indicators: Bollinger Bands, ATR, RSI, Stochastic, Disparity Index, Keltner Channel
  3. Trend Trading Strategy
    Indicators: Momentum, Moving Average, Ichimoku, Super Trend, Parabolic SAR, Kaufman Efficiency Ratio, MACD, Vortex, Hull Moving Average, CSSA Market Regime, ADX (if included later)
  4. Position Trading
    Indicators: RSI, Momentum, MACD, Moving Average, Kaufman Efficiency Ratio, VWAP, Ichimoku
  5. Day Trading Strategy
    Indicators: Stochastic, RSI, ATR, VWAP, Bollinger Bands, Momentum, Williams %R, Connors RSI, KAMA
  6. Scalping Strategy
    Indicators: ATR, Stochastic, RSI, VWAP, Momentum, Parabolic SAR, Fractal, Disparity Index, Gann Hi Lo
  7. Swing Trading
    Indicators: RSI, MACD, Stochastic, Kaufman Efficiency Ratio, Super Trend, Williams %R, Bollinger Bands, Keltner Channel
  8. Carry Trade Strategy
    Indicators: ATR, RSI, Moving Average, Hull Moving Average, VWAP, Gann Hi Lo
  9. Breakout Strategy
    Indicators: Bollinger Bands, ATR, RSI, Momentum, ADX, Super Trend, TTM Squeeze, MACD, Williams %R
  10. News Trading
    Indicators: ATR, RSI, Momentum, Disparity Index, Super Trend, VWAP
  11. Retracement Trading
    Indicators: RSI, Fibonacci Retracement (custom), MACD, Stochastic, Kaufman Efficiency Ratio, Williams %R
  12. Grid Trading
    Indicators: ATR, RSI, Moving Average, VWAP, Bollinger Bands, Super Trend

Indicators used from your list:

  1. ATR
  2. Bollinger Bands
  3. Candle Pattern
  4. Connors RSI
  5. CSSA Market Regime
  6. Disparity Index
  7. Fractal
  8. Gann Hi Lo
  9. Hull Moving Average
  10. Ichimoku
  11. KAMA
  12. Kaufman Efficiency Ratio
  13. Keltner Channel
  14. MACD
  15. Momentum
  16. Moving Average
  17. Parabolic SAR
  18. RSI
  19. Stochastic
  20. Super Trend
  21. TTM Squeeze
  22. VWAP
  23. Williams %R
  24. Vortex

Count:

  • Total unique indicators used: 24

These are indicators that match the various strategies you are working with, excluding the ones you mentioned you don’t want (like ADX, MACD, RSI, and ATR). Some of these indicators can work across multiple strategies, making them versatile tools for your trading system.

Combinated, Lets proceed

Great! Now that we’re moving forward with the Trend + Breakout + Swing Trading combination, here’s the plan to proceed:

  1. Initial Setup:
    • Main Timeframe: H1 (for active signals).
    • Sub Timeframe: H4 (for confirmation).
    • Open Duplicate Orders allowed, with signals from Trend Trading (ADX, Ichimoku, MACD), Breakout (Bollinger Bands, ATR, Momentum), and Swing Trading (RSI, Fractals, MACD).
    • Implement trailing stop and break-even with ATR or Parabolic SAR.
    • Ensure RRR > 1:3 and close all trades by Friday.
  2. Optimization:
    • Risk and Lot Size Management: 0.01 lots per $100 balance, with risk percentage on the account.
    • Sequential optimization for additional timeframes like M30/H4, M15/H4, M5/H4 to explore robustness across different market conditions.
    • Focus on finding the optimal parameters for indicators like ATR and Ichimoku to maximize profitability across both trending and volatile markets.
  3. Backtesting:
    • Using your M1 data over 20 years, run the backtest for IS (In-Sample) and OOS (Out-of-Sample) periods.
    • Analyze performance metrics: Profit Factor, RRR, Stability, Drawdown, and Win/Loss ratio.
  4. Validation:
    • Post-backtest, validate on OOS data to ensure consistency and reliability in live market conditions.

My desired strategy

My desired strategy, can you adaption with those 12 strategies above and use my signals, make it greater possible: 1. Open orders duplicate allowed 2. Close orders with a profit for 1-5% from the total capital or close by using signals that hold positions for no more than 5 days 3. Use Break-Even profits and use trailing according to appropriate signals to catch up with profits as quickly as possible 4. I need RRR more than 1:3 5. Close all orders before the market closes every Friday 6. Consec win/loss trades > 2


To adapt your desired strategy with the 12 trading methods and signals you provided, we can combine specific features from each strategy to create an enhanced, hybrid approach. Let’s structure it step by step:

  1. Open Duplicate Orders: This allows more flexibility in taking multiple trades if the conditions allow.
  2. Profit Target: Closing orders with 1-5% profit from the total capital.
  3. Time-Limited Holds: No position should last more than 5 days.
  4. Break-Even and Trailing Stop: Secure profits with a break-even and then trail the stop to maximize gains.
  5. High RRR (1:3): Ensuring risk is minimized and profits are large enough to justify trades.
  6. Close by Friday: All positions are liquidated before the market closes on Friday.
  7. Consecutive Wins/Losses: Focus on having more than 2 consecutive wins or limiting losses.

  • Signals: Use Candle Patterns and Fractals to capture high-quality reversal or breakout trades.
  • Adaption: These signals can be used to open multiple positions during a strong price action movement, with a stop-loss placed at key price levels. The trailing stop and break-even would be applied as soon as the price moves favorably.
  • Signals: Apply Bollinger BandsRSI, and Stochastic for entering positions at the range extremes.
  • Adaption: Open trades when the price reaches either overbought or oversold levels. Use trailing stops aggressively to capture small but consistent gains within the range. If the trade doesn’t meet profit criteria within 5 days, exit by signal.
  • Signals: Combine ADXIchimoku, and Super Trend to ride strong market trends.
  • Adaption: Open duplicate positions in a strong trend confirmed by ADX (>25) and Ichimoku cloud direction. Apply the trailing stop to catch the bulk of the move while closing trades that meet the 1-5% profit or exceed 5 days of holding.
  • Signals: Use Ichimoku and Hull Moving Average for longer-term trend confirmation, but limit holding time to 5 days.
  • Adaption: Position trading signals are generally longer-term, but in your strategy, we can shorten this by closing trades within 5 days if the target profit is not reached.
  • Signals: Utilize VWAPMomentum, and RSI to capture intraday moves.
  • Adaption: Open multiple positions based on intraday momentum and close them by the end of the trading day or use your break-even and trailing stop to capture small profits. Ensure no trades remain open on Fridays.
  • Signals: Leverage Parabolic SARStochastic, and VWAP for fast entries/exits.
  • Adaption: Scalping will require tighter trailing stops and quicker moves to break-even. You can open duplicate orders on small moves and close them as soon as you hit the profit target or within 5 days.
  • SignalsMACDRSI, and Fractals to identify swing highs/lows.
  • Adaption: Swing trading offers opportunities to capture larger moves. Duplicate orders can be opened as long as the swing signal is valid, with the trailing stop applied to catch larger profits. Exit after 5 days or on the Friday close.
  • SignalsKAMA and Directional Index for long-term bias, but constrained to short-term holding.
  • Adaption: In traditional carry trade, positions are held long-term, but with your strategy, use the trailing stop to secure short-term profits within 5 days.
  • SignalsBollinger BandsATR, and Momentum for volatility-based breakouts.
  • Adaption: Use breakout signals to open duplicate trades. Once the breakout occurs, the trailing stop will help capture further gains while securing profits. Close the trade if the price meets the 1-5% target or exits by Friday.
  • SignalsATRMomentum, and VWAP to capture volatility spikes.
  • Adaption: News trading tends to be unpredictable, so quick entries with trailing stops and a break-even move are essential. Use this approach to exit trades quickly if the market moves in your favor.
  • SignalsFibonacci RetracementsRSI, and Fractals for entry signals.
  • Adaption: Enter on retracement to a key Fibonacci level with multiple orders. Apply trailing stop once the price resumes the primary trend. Close the trade either at the target profit or after 5 days.
  • Signals: Generally grid strategies are less signal-based, but ATR or Bollinger Bands can help define volatile zones.
  • Adaption: In a grid strategy, you can apply the trailing stop on profitable orders while still allowing duplicate trades. Close all positions before the end of the week or after 5 days to prevent overexposure.

  1. Duplicate Orders: This flexibility allows for scaling into trades during favorable conditions, especially in trending markets or during strong breakouts. Combining this with ADX for trend strength or ATR for volatility can provide an edge.
  2. Close Orders Based on Capital Gain or Signal: The 1-5% capital gain target works well with signals like IchimokuCandle Patterns, or Bollinger Bands to time exits when trades become profitable.
  3. Break-Even and Trailing Stop: Use Parabolic SAR or ATR for managing the trailing stop, ensuring that once the price has moved in your favor, the trailing stop locks in profits while allowing room for larger gains.
  4. RRR of 1:3: Targeting a risk-reward ratio of 1:3 is ideal for strategies like Breakout or Swing Trading. Use FractalsRSI, and MACD to spot high-probability trades and manage risk with well-placed stop losses.
  5. Weekly Close: Ensure that all trades are automatically closed by Friday using a time-based exit rule, combined with signals to prevent holding positions over the weekend.
  6. Consecutive Wins/Losses: This could be monitored in SQX by applying risk filters, ensuring the strategy does not become too risky if losses accumulate, or adding more trades if you’re on a winning streak.

By merging these trading strategies with your specifications, you’ll create a highly adaptable system that should perform well across different market conditions.

SQX signals in my hand

okin now on the way of building from above we’re talking. i’m listig all signals that i have on SQX for you: ADX, Arron, ATR, ATR Percent Rank, AVG Volume, Awesome Oscillator, Bear power, Bull power, BH Ergodic, Bollinger Bands, Candle Pattern, CCI, Choppiness Idex, Connor RSI, CSSA Market Regime, Demarker, DEMA, Didi index, Directional Index, Disparity Index, DPO, DSS Bressert, DVO, Entrophy Math, Fractal, Gann HI LO, Highest Lowest, Hull moving Average, Ichimoku, KAMA, Kaufma Efficiency Ratio, Keltner Channal, Laguerre RSI, Lin Reg, MACD, Momentum, Movinng Average, OSMA, Parabolic SAR, QQE, Reflex, ROC, RSI, RVI Schaff Trend Cycle, SR Percent rank, Std Dev, Stochastic, Super Tred, Trend, TTM Squeeze, Ulcer Index, Vortex ,VWAP, William PR.

Thanks for sharing the list of signals. With such a wide range of technical indicators available, you can create diverse strategies tailored to different market conditions and timeframes.

Since you’re focusing on H1 as the main signal timeframe and H4 as confirmation, here are some suggestions for selecting and combining signals based on their roles in trend detection, volatility, momentum, and entry/exit timing:

  1. Trend Detection Signals:
    • ADX (Average Directional Index): Excellent for determining the strength of a trend. Can be used to filter trades, only allowing entries when the trend strength is above a certain threshold.
    • Ichimoku: A robust all-in-one indicator for trend, momentum, and support/resistance levels. Ichimoku works well for confirmation on H4.
    • Super Trend: Simple and effective for trend-following strategies, it works well on both higher and lower timeframes for trend confirmation.
  2. Momentum Indicators:
    • MACD: Classic momentum indicator, useful for detecting trend changes or continuations.
    • RSI (Relative Strength Index) and Connors RSI: Great for identifying overbought/oversold conditions. You could combine this with trend filters to avoid countertrend trades.
    • Stochastic: Similar to RSI, it can add a timing element for entries or exits when paired with trend filters.
  3. Volatility & Range:
    • ATR (Average True Range) and ATR Percent Rank: Excellent for determining volatility. You could adjust stop-loss and take-profit levels based on volatility readings.
    • Bollinger Bands: Can be used for mean reversion strategies or volatility breakouts. Price reaching upper or lower bands could serve as exit points or trade triggers.
    • Keltner Channel: Useful in combination with volatility readings for breakout strategies.
  4. Price-Based Signals:
    • Candle Patterns: Effective for timing entries/exits based on specific price action patterns.
    • Parabolic SAR: Can provide dynamic stop-loss levels, especially useful for trailing stops.
    • Williams %R: Good for detecting overbought/oversold levels, especially on higher timeframes like H4.
  5. Additional Unique Indicators:
    • Ulcer Index: Measures downside risk. You can use it to avoid trading in risky periods.
    • Schaff Trend Cycle: Great for cyclical patterns in momentum, allowing timing entries with trend changes.
    • Vortex: Captures trend changes with crossovers; useful in combination with trend-following indicators like ADX or MACD.
  • Trend-Following Strategy:
    • Main Signal on H1: Combine ADX (trend strength) with MACD or Ichimoku to confirm trend direction and momentum.
    • Confirmation on H4: Use Super Trend or Ichimoku for trend confirmation on H4. Consider adding ATR for volatility-based stop adjustments.
  • Mean Reversion Strategy:
    • Main Signal on H1: Use Bollinger Bands or Keltner Channel with RSI or Williams %R to capture reversions.
    • Confirmation on H4: Add MACD or RVI (Relative Vigor Index) for broader trend direction to confirm whether the reversion fits the larger trend.
  • Volatility Breakout:
    • Main Signal on H1: Use ATR Percent Rank or Bollinger Bands for breakouts. Pair with Momentum or ROC (Rate of Change) to confirm price momentum.
    • Confirmation on H4: Add a higher timeframe confirmation such as Fractal or Directional Index for trend continuation.
  • You could let SQX’s Genetic Evolution process handle these combinations to find the most robust pairs.
  • When doing sequential optimization across different timeframes (M30/H4, M15/H4, M5/H4), include some of these indicators to test how they perform on faster timeframes and whether they enhance your strategy’s adaptability.

This should provide a good foundation for further strategy testing and refinement.