Support Board
Date/Time: Sat, 01 Mar 2025 17:06:48 +0000
[User Discussion] - Regular Divergence
View Count: 987
[2021-10-02 14:11:57] |
tietzmann - Posts: 11 |
Hi All, I am new to Sierra and I am trying to accomplish the following. I have 2 charts, the first is ES and the subgraph is NISS-SP. I need to detect regular divergence between these 2 charts. I have drawn some lines as an example (see image below). Here are some rules: 1. Divergence can be higher highs on the main chart and lower highs on the subgraph 2. Divergence can be higher highs on the main chart and equal highs on the subgraph 3. The number of bars between the higher highs on the main chart and the number of bars between lower highs on the subgraph do not need to be the same. What matters is that there is divergence. 4. Seeing the lines on the chart would be nice, but it is not a requirement. All I need to know is that there is divergence at the moment or not. These rules apply to divergence on the highs. Divergence on the lows would work the same way. I tried to use the Divergence Detector indicator from SIerra and could not make it work. But I think it is not going to work, because there is no fixed length of bars to determine divergence in my case. Also equal highs are allowed in my case. Any help is welcome! http://www.sierrachart.com/image.php?Image=16331831815.png Date Time Of Last Edit: 2021-10-02 14:12:57
|
[2021-10-03 19:44:35] |
John - SC Support - Posts: 38292 |
Given that you can have any length to get the Divergence, then the Divergence Detector study will not work for you. You would have to either modify the study, which is located in Studies8.cpp in the ACS_Source directory under your main Sierra Chart folder. Refer to the following: How to Build an Advanced Custom Study from Source Code If you need someone to do the coding, then refer to the list of programmers here: 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 |
[2021-10-04 19:37:08] |
tietzmann - Posts: 11 |
Thanks for the prompt response. I can change the code myself, but I am no mathematician and I don't understand how the Divergence Detector works. I read the documentation and cannot interpret the formulas presented there. Is there any post or page that shows how the Detector works in simple terms? I applied Divergence Detector on my chart with the default inputs and length of 10 and it does not make much sense: http://www.sierrachart.com/image.php?Image=1633376565755.png I also see in the code that the function that uses the length input is sc.CalculateRegressionStatistics. Thanks Date Time Of Last Edit: 2021-10-04 19:44:29
|
[2021-10-07 20:30:03] |
tietzmann - Posts: 11 |
Any help? The post was tagged as "Programming Help" by support, but I would like to understand first how the Divergence Detector works and if it can reproduce something similar to what I posted on the 1st message. Thanks |
To post a message in this thread, you need to log in with your Sierra Chart account: