OPEN-SOURCE SCRIPT

Three-Bar Reversal Signal

已更新
This indicator is a simple setup of Three Bar Reversal. Logic of the code is as below.

Rules :
Long Setup
Bar 1 closes down
Low of Bar 2 is below the low of Bar 1 (and Bar 3)
Bar 3 closes above the high of both Bar 1 and Bar 2
Buy at the close of Bar 3

Short Setup
Bar 1 closes up
High of Bar 2 is above the high of Bar 1 (and Bar 3)
Bar 3 closes below the low of both Bar 1 and Bar 2
Sell at the close of Bar 3
版本注释
Updated title and username
版本注释
Updated the Script to generate indicator only when the bar is closed.
版本注释
Updating the current script by changing the detection method from high to close. Hence reducing unwanted signals.
版本注释
Updated visible marker on the chart to highlight 3-Bar setup for better recognition and decision making on 3 Bar reversal.
Chart patterns

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明