Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 23:32:03 +0000



Study- Automatic Previous Day/Week/Month High,Low,Close Horizontal line

View Count: 1953

[2022-06-05 16:46:32]
Radu Sirbu - Posts: 40
Hi guys,

Is there a study that automatically adds to charts the High/Low/Close of the previous period wanted - day, week, month, year?

I looked in the Studies section, but none of them had this feature.

Thanks,
[2022-06-06 15:36:29]
John - SC Support - Posts: 36286
Try the Period - OHLC Variable Period study. When the Input for Use Current Period is set to No, then it will show the previous period information. Refer to the following:
Previous/Period OHLC-Variable Period
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-06-06 16:08:59]
Radu Sirbu - Posts: 40
Thanks for the help!
[2022-12-27 15:46:38]
ramsoft2003 - Posts: 6
Hi - With this study, I am able to set OHLC lines for current week and previous week. I also want for previous to previous week that is before 2 weeks OHLC from now and I tried duplicating the study and played around. Not sure what settings will show us the lines for 2 weeks before OHLC. Can you help ?
[2022-12-27 21:30:08]
John - SC Support - Posts: 36286
To go back 2 weeks (or so some specific point in time that is not the current period or the prior period) you would need to use the Spreadsheet Study to do this and then use a combination of Date/Time checks along wit the SMALL() and LARGE() functions to get the Highest High and Lowest Low within the period.

For example, to find the High within a period of November 14 through November 18 you would enter the following formulas in the Spreadsheet Study:
K3: =IF(AND(A3 >= DATE(2022, 11, 14), A3 <= DATE(2022, 11, 18)), B3, 0)
L3: =LARGE(K3:K2000, 1)

Column L will display that High.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-01-23 06:05:23]
User835583 - Posts: 16
commenting to save for later use.

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

Login

Login Page - Create Account