Support Board
Date/Time: Fri, 04 Jul 2025 15:48:24 +0000
Found a bug in an included study
View Count: 650
[2020-08-01 04:32:17] |
ruiyt - Posts: 11 |
In the "Swing High And Low" study, with the option "Extend Swings Until Future Intersection" enabled. When a new candle is still forming and a swing low or swing high condition is temporarily met, a "line until future intersection" will be drawn. However, when that same candle makes a move that no longer satify the swing high or swing low condition, the lines are still left behind. If you observe the behaviour of the arrows, which indicate a swing high or swing low, the behaviour is correct in that the arrows will disappear when the condition changes. I looked at the source code of the study and determined that there is a simple fix for the problem. You just need to add the following code to delete the line upon every evaluation like so sc.DeleteLineUntilFutureIntersection(indexToEvaluate, 1); sc.DeleteLineUntilFutureIntersection(indexToEvaluate, 2); Subgraph_SwingHigh[IndexToEvaluate] = 0; Subgraph_SwingLow[IndexToEvaluate] = 0; You are welcome. |
[2020-08-03 16:48:19] |
|
We will check on this.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2020-08-12 00:20:35] |
|
We apologize for the delay. We will get the study updated.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to 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: