26. 11. 2021

5 3

デトレンド価格オシレーター

Unlike other oscillators, such as the stochastic または moving average convergence divergence (MACD), the DPO is not a momentum indicator. It instead highlights peaks and troughs in price, which are used to estimate buy and sell points in line with the historical cycle.The detrended price oscillator seeks to help a trader identify an asset’s price cycle. It does this by comparing an SMA to a historical price that is near the middle of the look-back period.

 

How to Calculate the Detrended Price Oscillator (DPO)

  1. Determine a lookback period, such as 20 periods.
  2. Find the closing price from x/2 +1 periods ago. If using 20 periods, this is the price from 11 periods ago.
  3. Calculate the SMA for the last x periods. In this case, 20.
  4. Subtract the SMA value (step 3) from the closing price x/2 +1 periods ago (step 2) to get the DPO value.
インジケーターの対応プラットフォーム:MT4 / MT5 / TradeStation / MultiCharts

以下の条件を追加しました:

  • DPO is above/below level
  • DPO crosses above/below level

カスタムブロックを使うと、条件分岐を簡単に行うことができます。詳細はこちらをご覧ください:

 

 

SQXにカスタムインジケーターをインポートする方法: https://strategyquant.com/doc/programming-for-sq/import-export-custom-indicators-and-other-snippets/

3 コメント
最古の
最新 最も投票された
エマニュエル
26. 11. 2021 3:33 pm

Excellent !!!!!! This will help a lot !!!!! Thank you ??

Chris G
Chris G
27. 11. 2021 12:11 am

One of the Long awaited indicators!

krzysiaczek99
17. 11. 2022 10:43 am

i believe its faulty. I double checked with debug console and calculation starts from bar 0 which is 1st on the chart (the oldest time stamp) to last bar so lookbacks must use i– not i++. See also this https://strategyquant.com/forum/topic/are-dpo-and-tdi-indicators-faulty/