アルゴクラウドポートフォリオの内部で何が起きているのか?
AlgoCloudは最近、多岐にわたる大規模な改良と完全に新しい機能の提供を開始しました。最も重要な追加機能の一つが新しいアナリティクスセクションであり、これにより大幅に明確な…
コンテンツへスキップ | メインメニューへ移動 | 検索に移動
In this article, we introduce our new divergence comparison blocks—a tool designed specifically to identify and analyze divergences. These blocks aim to simplify the detection of potential trend reversals, helping traders recognize weakening momentum or emerging changes. In addition to a discussion on divergence theory and practical implementation tips, our main focus is on presenting this solution. Our divergence comparison blocks offer a clear and efficient method to analyze market data, ultimately streamlining decision-making for traders and technical analysts.

In the image above, we see an example of bullish divergence between the RSI indicator and price on a 10-minute E-mini S&P chart.
In technical analysis, a divergence occurs when the price action of an asset and a technical indicator (commonly one that measures momentum, such as RSI or MACD) move in opposite directions. In other words, while the price may be making new lows or highs, the indicator fails to follow suit. This discrepancy can signal that the prevailing trend is weakening, hinting at a potential reversal or a period of consolidation.
Divergences serve as a valuable early warning system by highlighting potential changes in market direction. By comparing price behavior with the movement of a momentum indicator, traders can:
It’s important to note that divergences are not foolproof and should be combined with other technical tools and sound risk management practices.
The divergence blocks are implemented as comparison blocks. StrategyQuant Xにおいて、比較ブロックはチャート上のさまざまな指標、価格、または値を比較するために不可欠なツールです。これらは、自動取引戦略において買いシグナルや売りシグナルを発動させる条件を定義するのに役立ちます。例えば、比較ブロックを使用することで、短期移動平均線が長期移動平均線を上抜けるかどうかを確認し、潜在的な買いチャンスを示すことができます。.
比較ブロックは、意思決定のチェックポイントとして機能し、「ある値が別の値より高いか?」「インジケーターが主要な閾値を上抜けた(または下抜けた)か?」といった問いに答えます。複数の比較ブロックを組み合わせることで、トレーダーは高度なルールを作成し、戦略を洗練させ、市場状況に基づいた意思決定を改善することができます。.
There are several types of comparison blocks designed to help traders build automated trading strategies by comparing different indicators, prices, or custom values. These blocks allow for flexible and precise control over when certain conditions are met.
Here are the main types of comparison blocks available in StrategyQuant X:
Let’s talk about the bullish divergence…
Identifying Local Minimums:
The system examines a series of data points—whether from the asset’s price or a momentum indicator—to pinpoint local lows. A local low is identified by comparing a value with its immediate neighbors. If the current value is lower than both the preceding and following values, it qualifies as a local minimum.
Separate Analysis for Price and Indicator:
Comparing Two Consecutive Lows:
After detecting the two most recent lows in both the price and indicator data, the system compares these lows to evaluate the trend:
When these conditions are met—declining prices combined with an improving momentum indicator—the system identifies a bullish divergence. This mismatch often hints that the downtrend is losing steam, setting the stage for a potential reversal.
In the image above, you can see the basic parameters of the divergence blocks.
Understanding and fine-tuning specific parameters is crucial for accurate divergence detection:
Adjusting these parameters allows traders to tailor divergence detection to their specific strategies and market conditions, balancing between sensitivity and reliability.
Importing the Block:
A guide on how to import the snippet can be found in the Codebase section ここ.
Using Divergence Comparison Blocks in the Builder:
After a successful import, you can use the new divergence comparison blocks in the Builder. In the Builder, these blocks can be enabled under Builder / Blocks.
The image above shows comparison blocks in the Builder section of StrategyQuant.
AlgoWizard – Building Custom strategies
AlgoWizard in StrategyQuant is a Drag & Drop Builder that allows users to create strategies by selecting and combining various conditions. Divergence comparison blocks can be utilized by choosing the desired divergence block from the comparison blocks, adding an indicator, setting its period, and configuring additional logical conditions for the strategy.
In the image above, I see a screenshot from AlgoWizard showing a simple strategy based on bullish divergence.
AlgoWizard – カスタムブロック

Above you can see a simple only long strategy built on the divergence between RSI and price.
Custom blocks in StrategyQuant X allow traders to create personalized building blocks for their rading strategies without needing to code. With divergence comparison blocks, traders can define conditions that compare market divergences relative to key indicators. This allows for identifying overbought or oversold conditions dynamically. Once created, custom blocks are seamlessly integrated into AlgoWizard, StrategyQuant’s visual strategy builder, to construct complex and adaptive trading strategies.
Custom blocks enhance flexibility by allowing you to parameterize key metrics—such as indicators, their periods, shofts —providing more control over your strategy’s behavior. In summary, custom blocks enable more precise, dynamic, and sophisticated trading strategies. Divergence comparison blocks, in particular, are highly recommended for use in AlgoWizard as either custom blocks. Because these blocks require careful configuration, it’s beneficial to create custom blocks where each setting follows a logical structure. While creating strategy templates is a more advanced topic, these blocks are ideal for such strategies. In the next article, we’ll provide a detailed tutorial on how to use them.
For now, I have prepared several custom blocks based on this divergence condition. You can download them using this link and import them by following the provided steps.
AlgoWizard – テンプレート
This is a more advanced topic that we will cover in greater depth in an upcoming article. By combining custom blocks and random groups, you can create a prototype strategy and instruct SQX to search for specific types of strategies.
Divergences are a powerful tool in the technical trader’s arsenal, offering valuable insights into market momentum and potential trend reversals. By understanding both bullish そして bearish divergences, and by fine-tuning key parameters like シフト, 、および バー, traders can enhance their ability to spot hidden market signals and make more informed decisions.
Integrating divergence analysis with other technical methods can provide a more holistic view of market dynamics, ultimately leading to smarter trading strategies. For further insights and in-depth discussions on advanced trading techniques, be sure to explore additional resources on the StrategyQuant Blog.
AlgoCloudは最近、多岐にわたる大規模な改良と完全に新しい機能の提供を開始しました。最も重要な追加機能の一つが新しいアナリティクスセクションであり、これにより大幅に明確な…

リボールは長年にわたり、株価指数先物の手動トレードを行ってきた。彼はエクセルで自身のシステムを取引ごとに慎重にテストし、その結果は素晴らしいものに見えた。実際の……

滑らかなエクイティカーブは人を惑わせるものだ。ポートフォリオは安定しているように見えるかもしれないが、もしすべての戦略が同時にトレードに参加し、損失を出し、そして同時に回復するのだとすれば、それは本当の意味で…