Login Page - Create Account

Support Board


Date/Time: Sat, 22 Jun 2024 11:58:46 +0000



Auto Retracement/Projection indicator error

View Count: 1438

[2015-07-27 19:48:07]
User50927 - Posts: 91
Can you please look at the code for the Auto Retracement/Projection indicator to find out why when I try plot a 1.272 Fib retracement line using the Low of the time period length, the Fib line auto-adjusts with with every new high - the Fib retracement line should remain fixed if the Low reference point has not changed. In other words, there is no difference between what I have just described and setting the indicator to plot a 0.272 projection from the High of the period, which I would then expect to auto-adjust with every new High. Than you in advance.
[2015-07-27 19:53:44]
Sierra Chart Engineering - Posts: 104368
Make sure the Calculation Reference Value input is set correctly for that study.
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
[2015-07-27 20:27:09]
User50927 - Posts: 91
The input I'm using is correct: I chose the Low as the reference to calculate a 1.272 retracement and every time a price bar exceeds the High of the period, the 1.272 line moves up in lockstep with the High line. In other words, if I set the retracement to 1.00 using the Low as my reference point, then the retracement line behaves like the High line, which it shouldn't.
[2015-07-28 03:19:16]
Sierra Chart Engineering - Posts: 104368
Refer to the documentation for this study here:
http://www.sierrachart.com/index.php?page=doc/doc_TechnicalStudiesReference.html#s169


What you describe is expected and is the only possible way in which this study can work.
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
[2015-07-28 13:05:27]
User50927 - Posts: 91
I might be able to suggest a different logic to use in the study if I can look at the code - I'm a research scientist by profession and used to troubleshoot complex problems. Do you mind sending me the code or at least the block in the program that performs the computations, as well as the variable definitions if they are not intuitive like H for high or H-L for range, etc.? Thank you.
[2015-07-28 16:20:41]
Marmany - Posts: 306
For info the code is in studies6.cpp starting line 3457
[2015-07-28 18:00:42]
Sierra Chart Engineering - Posts: 104368
The source code for the study is located in /ACS_Source/studies6.cpp in the folder that Sierra Chart is installed to.

The function begins with:
SCSFExport scsf_AutoRetracement(SCStudyInterfaceRef sc)

If you would like to make changes to the code, follow the instructions on this page:
https://www.sierrachart.com/index.php?page=doc/doc_BuildCustomStudiesDLL.html
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:

Login

Login Page - Create Account