Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 05:24:31 +0000



Peaks and Valleys - Using ABS to create An Alert

View Count: 317

[2022-10-19 19:11:23]
User337568 - Posts: 60
Hi:
I tried using the Color Background Based On Alert Condition to alert me when the close is x ticks away from a Peak or Valley.
Here is the formula:
ABS(ID6.SG18-ID0.SG4)<10*Ticksize

Where:
ID6 = VbP - 1 Day
SG18 = Volume Peaks

Any help is appreciated.
[2022-10-19 22:03:05]
John - SC Support - Posts: 31704
What you are doing can not be done with the built-in tools in Sierra Chart. The Subgraph 18 and 19 for the Peaks and Valleys only controls the coloring and line thickness for the lines that are drawn at the peaks and valleys. It does not contain the actual value of the peaks and valleys.

To do what you are wanting would require a Custom Study and the use of the following function:
sc.GetStudyPeakValleyLine()
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-05-03 17:46:19]
cesium - Posts: 47
Hello John does your above comment still apply or have changes been applied to allow Alert conditions in the study to reference Valleys?

=AND(FRACTIME(NOW()) > TIME(09, 30, 0), (C = SG19))

In formula on vbp study returns

=AND(FRACTIME(NOW()) > TIME(09, 30, 0), (5152.25=#N/A)) | no alert sound/email


in the logs during debug
Date Time Of Last Edit: 2024-05-03 17:46:55
[2024-05-03 18:48:28]
John - SC Support - Posts: 31704
There have not been any changes to this. In order to access the Peak and Valley information, you need to create a custom study. Refer to the following:
sc.GetStudyPeakValleyLine()

List of Third Party Sierra Chart Study and System Programmers
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account