Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 01:43:28 +0000



Post From: Alert if price is near a line, not past or to it yet, but near it?

[2020-07-04 19:11:01]
ondafringe - Posts: 248
Brad gave you what you asked for, but what you asked for isn't really what you want because price will be 20% or more below your regression line most of the time, which would result in numerous alerts. If I understood your post, what you really want to know is, as price is rising, sound an alert when price gets within 20% of your regression line.

I would create a new study by adding "Study Subgraph Multiply".
In "Settings and Inputs > Standard Precedence > Based On," select the study that includes your regression line.
Set the Chart Region to 1

For "Input Data," select your regression line.
Set the Multiplier to 0.8

That should give you a continuous line that is always 20% below your regression line.

Then create a =CROSSOVER() alert for when price crosses the 80% line.
Date Time Of Last Edit: 2020-07-04 19:16:34