Function - Number of digits before and after the decimal point Detect the number of digits in integers and floats, before the decimal and after it. It also works for negative numbers. There are some rounding issues, but the currently maximum supported number can have safely up to 3 digits after the decimal point.
Indicator identifies potential price trend exhaustion. Compares this period against the 4th prior period for the condition. 9 periods (or more) with the same condition is an indicator that the trend is ending soon.
Welcome to Pine Script Tutorial #4 This is more complex than the previous 3 tutorials. This one builds upon the first 3 tutorials. What does this code do?: It plots on a histogram (at the bottom), the difference between closest round number and the close. So for example 84 -close = 16 pips. It shows the 16 pips on the histogram. First off, it is actually Two...
Hey all, Just thought some might find it useful to have a script of the first 7 numbers that are both fibonacci and that are prime numbers as simple moving averages and as exponential averages. If anyone wants any other average type added to this script I can put out another version Happy trading, Snoop