DNYL . SPACE

As motivation plays a crucial role in reaching these goals.

Day: November 22, 2024

Gold Award Graphic Background And Gradient Colors. Elegant Glowing Shine Lines. Luxury Premium Corporate Abstract Design Template, Classic Shape Post, Central Screen Visual

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!

Gold Award Graphic Background And Gradient Colors. Elegant Glowing Shine Lines. Luxury Premium Corporate Abstract Design Template, Classic Shape Post, Central Screen Visual

Primary Filters for Portfolio Selection (Including IS and OOS)

Primary Filters for Portfolio Selection (Including IS and OOS)

When building portfolios in Portfolio Master and selecting strategies for long-term stability and profitability, you can use Primary Filters that incorporate both In-Sample (IS) and Out-of-Sample (OOS) testing. This approach will ensure that your portfolios are robust not only in the training phase but also in unseen market conditions.

Primary Filters for IS and OOS:

  1. CAGR/Max DD% > 1 (IS & OOS)
    • IS: Indicates good profitability relative to risk during the training phase.
    • OOS: Ensures the strategy maintains profitability and does not suffer from overfitting when exposed to new market data.
  2. Sharpe Ratio > 2 (IS & OOS)
    • IS: A Sharpe Ratio > 2 ensures that the strategy provides strong returns relative to the risk in the historical data.
    • OOS: A Sharpe Ratio > 2 in OOS testing confirms that the strategy is stable and continues to provide a good risk-to-return ratio when tested on new data.
  3. Profit Factor > 1.5 (IS & OOS)
    • IS: Profit Factor > 1.5 indicates that profitable trades outweigh losses during the in-sample test.
    • OOS: In OOS, this shows that the strategy maintains profitability when applied to unseen data, confirming its robustness.
  4. Stability > 0.8 (IS & OOS)
    • IS: Ensures the strategy is not prone to extreme fluctuations and behaves in a predictable manner during training.
    • OOS: Stability > 0.8 in OOS ensures that the strategy’s performance is consistent and not erratic in unseen conditions.
  5. Open Drawdown % < 15 (IS & OOS)
    • IS: Limiting Open Drawdown to < 15% reduces the risk of large temporary losses during the testing phase.
    • OOS: The same limitation in OOS testing ensures that the strategy remains resilient and avoids high-risk exposure when applied live.
  6. Max Drawdown % < 30 (OOS)
    • Focus on limiting the overall Max Drawdown to less than 30% in OOS. It will help maintain manageable risk levels in live trading conditions.

Ranking and Portfolio Creation Process:

  1. Filter IS Strategies:
    • Start by applying the above filters to your in-sample (IS) strategies to identify the top performers in your test period.
    • Select those strategies with the highest combined CAGR/Max DD%, Sharpe Ratio, and Profit Factor as the initial candidates for portfolio construction.
  2. Evaluate OOS Performance:
    • Once you have the IS candidates, reapply the same filters to assess their out-of-sample (OOS) performance.
    • Focus on Stability, Profit Factor, Sharpe Ratio, and Open Drawdown in OOS. This will confirm that the strategies maintain profitability and stability under new market conditions.
  3. Create Portfolios:
    • Create 4–6 portfolios with 4–8 strategies each, prioritizing those that perform well in both IS and OOS.
    • Ensure diversity in the portfolios, balancing strategies with high Profit Factor and those with low drawdowns.
  4. Remove/Reuse Strategies:
    • Once a portfolio is built, you can either remove those strategies from your selection pool and repeat the process for the next portfolio, or keep all strategies in the pool to maximize utilization.
    • This way, you can create up to 12 portfolios without overusing any single strategy, optimizing the distribution across your available 500 strategies.

By following this method, you’ll create well-balanced portfolios that are both highly profitable and resistant to market changes, ensuring long-term success.