PROTECTED SOURCE SCRIPT
已更新

Chop-meter

8
- it finds the first three bars.
- if second bar's low is higher than first bar's low and third bar's low is higher or equal to second bar's low, a positive point is marked for this trio.
- if second bar's high is lower than first bar's high and third bar's high is lower or equal to second bar's high, a positive point is marked for this trio.
- if second bar's low is higher than first bar's low and third bar's low is lower than second bar's low, a negative point is marked for this trio.
- if second bar's high is lower than first bar's high and third bar's high is higher than second bar's high, a negative point is marked for this trio.
- if second bar's low is higher than first bar's low and the third bar's low is lower than the first bar's low, another negative point is marked for this trio.
- if second bar's high is lower than first bar's high and the third bar's high is higher than the first bar's high, another negative point is marked for this trio.
- then the indicator moves one bar right. now the second bar becomes the first, the third becomes the second and the next bar becomes the third bar.
- if the second bar's high is higher than the first bar's high AND the second bar's low is lower than the first bar's low, add a negative point to the trio.
- if the second bar's high is lower than the first bar's high AND the second bar's low is higher than the first bar's low, add a negative point to the trio. (because that condition already receives 2 points, and i want it to receive only one point since this is consolidation)
- if we run out of bars the indicator stops the process. if we had less than 3 bars, the indicator does nothing. if it has three bars, there is one trio. if we have 4 bars we have 2 trios and so forth.
- the points of all trios are added together and the number of overall trios is counted.
- the output is the percentage of overall points to overall trios.
- the theory is that the higher that percentage is, the less choppy the graph is. the lower the percentage is, the more it is choppy. the final value is an inverted value - the higher it is, the choppier the graph is.
版本注释
changed menus
版本注释
simplifying

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。