Login Page - Create Account

Support Board


Date/Time: Sun, 16 Jun 2024 18:20:31 +0000



[Programming Help] - Help with swing high low study

View Count: 407

[2023-05-30 23:31:57]
User862701 - Posts: 24
The swing high low study isn’t printing accurately. It’s giving many false signals and some no signals at all for sone reason. Is there a setting I’m missing? I would like it to print as it is in the picture attached. Seems pretty simple . What am I missing?
Attachment Deleted.
imageswinghigh.jpg / V - Attached On 2023-05-30 23:30:40 UTC - Size: 55.45 KB - 84 views
imageswing-high-low.png / V - Attached On 2023-05-30 23:30:53 UTC - Size: 10.35 KB - 77 views
[2023-05-31 14:41:39]
John - SC Support - Posts: 32379
We really need to see an image of what you are actually seeing in your chart.

From the images, they are showing 2 bars on either side needing to be lower/higher. If you want 2 bars to test against, then be sure to set the "Length" Input to 2.

For other information on this study, refer to the following:
Swing High and Low
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-05-31 15:30:37]
User862701 - Posts: 24
sure thing, here are a few examples
imagefalse swing examples.png / V - Attached On 2023-05-31 15:30:07 UTC - Size: 12.3 KB - 74 views
[2023-05-31 15:38:02]
John - SC Support - Posts: 32379
What is your Length value set to?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-05-31 16:27:01]
User862701 - Posts: 24
I’ve tried both one and two with no better results.
[2023-05-31 19:45:11]
John - SC Support - Posts: 32379
For the image you supplied, what was the Length set to when the image was taken?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-05-31 19:59:49]
User862701 - Posts: 24
It was set to one, but I tried it set to two also and still didn’t calculate right.
[2023-05-31 21:22:46]
John - SC Support - Posts: 32379
All of the Swing High and Swing Low points in the image you provided are correct for a Length of 1. Keep in mind, a Swing High is when a bar has a higher High than either the bar to the left or right (again with a length of 1), and a Swing Low is when the bar has a lower Low than the either bar immediately to the left and the right.

If you change the length to 2, then the two bars to the left and the two bars to the right have to both be lower than the High of the bar for it to be a Swing High and the same for the Swing Low only for the Low.

This also matches the images you originally provided for how you want it to work.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-05-31 21:40:52]
User862701 - Posts: 24
This is set to two. These examples are today on a 5 min ES micro. More false flags.
imagefalse swing examples.png / V - Attached On 2023-05-31 21:40:41 UTC - Size: 23.68 KB - 73 views
[2023-05-31 21:41:46]
User862701 - Posts: 24
Thank you for your help by the way
[2023-06-01 15:18:37]
John - SC Support - Posts: 32379
The Sierra Chart Swing High and Swing Low study does NOT work exactly as your original images indicate. As long as the High/Low of the bars on either side within the Length Input are lower/higher than the bar being tested, then the result is true. Each bar does not have to be lower than the previous one. This is also how it is stated in our docuentation.

This is not something we have to time to change at the moment, if you need the study to be such that each bar has the be lower/higher than the previous one, then that would be something you would have to change in the study itself. The source code for the study can be found in the file named Studies6.cpp which is in the ACS_Source folder under your main Sierra Chart installation folder. Refer to the following:
How to Build an Advanced Custom Study from Source Code
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-06-01 15:34:03]
User862701 - Posts: 24
How can I put this thread on the forum for others to see? Maybe someone who knows how to code will see it and help me. Thank you
[2023-06-01 15:55:10]
John - SC Support - Posts: 32379
You just did. We have also set it to Programming Help.
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