Drum Rocker
Member
Looking for help coding a study that will mark a price bar (any time frame) that has a close in the top 10% of it's range, or a close in the bottom 10% of it's range. For marking the bar that meets these conditions I am thinking a green dot above the price bar for a close in the top 10% of it's range and a red dot below the bar that closes in the bottom 10% of it's range. See image below.
The math for a top 10% close is: High - ((High - Low) * .10). Mark bar if close is equal to or greater than this result.
The math for a bottom 10% close is: Low + ((High - Low) * .10). Mark bar if close is equal to or less than this result.
Thanks in advance for any help with this study!
The math for a top 10% close is: High - ((High - Low) * .10). Mark bar if close is equal to or greater than this result.
The math for a bottom 10% close is: Low + ((High - Low) * .10). Mark bar if close is equal to or less than this result.
Thanks in advance for any help with this study!
Last edited by a moderator: