Crosses Above/Below Adaptive
Adaptive blocks “Crosses Above/Below Adaptive” bring a new level of intelligence to trading strategies by incorporating historical signal performance. Unlike standard blocks that only detect when one indicator crosses another, adaptive blocks analyze how similar signals performed in the past to estimate the reliability of the current signal.
These blocks first identify a basic signal, such as a short-term moving average crossing a long-term one. Then, they analyze historical data to calculate key metrics like win rate, profit factor (profit-to-loss ratio), and average profit. The user defines thresholds that the signal must meet to be confirmed. If the signal doesn’t meet these criteria, the trade is skipped.
This process reduces false signals and improves the stability of trading strategies. Adaptive blocks are also flexible, allowing users to customize parameters like the number of historical trades analyzed or the duration of monitoring after a trade is entered.
In practice, these blocks help traders create more sophisticated and reliable strategies that adapt better to changing market conditions. For everyday users, they are ideal for reducing risk and increasing the effectiveness of automated trading systems.
How to import custom indicators to SQX:
- https://strategyquant.com/doc/programming-for-sq/import-export-custom-indicators-and-other-snippets/
For deeper insights and a detailed description of how these blocks work, please visit this link.
Hi Clonex,
great idea, currently I am missing the Function: SQ_CrossesAboveAdaptive for Tradestation.
Is it possible for you to provide this Function?
Best Regards
Josef
Hi Josef, thank you! I’ve uploaded the source code. Please let me know how it works for you, and if you have any ideas, I’d greatly appreciate it if you could share them with me, either via email or here.
Does it make sense to provide some ets with default parameters for beginners, or can this just be used “as it is” without setting parameters?
I guess most people will just set the Checkmark and do not look for the Parameter settings.
Excellent Idea Ivan !!!!