OPEN-SOURCE SCRIPT
更新済 Barssince Playground (Threshold & Persistence)

Playground file for implementing MACD with threshold values while visualizing the persistence plot, which counts the amount of spent bars since the MACD delta crossed 0 value in either way.
リリースノート
Re-implemented the threshold and persistence logics from groundup. Previous version was buggy due to the sudden changes in trend which resulted in a continuity in persitence count.
Chart upgrade:
- Threshold up/down - purple horizontal lines
- Persistence duration up/down - green/red lines
- Persisted if the persistence counter is above the persistence value - white
- Persisted up/down in case the strategy could trigger - crossshape above, green/red
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。