Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 13:07:32 +0000



Post From: Higher Time Frame Filter for Automated Strategy

[2023-08-23 19:54:14]
Sawtooth - Posts: 4120
I'm wondering if 1) there is a better way to filter these periods of transition or 2) is there another study in the Sierra catalog that I should consider?
Use this example formula to determine slope direction:
Spreadsheet Example Formulas and Usage: Formula that Matches the Slope Coloring of a Study Subgraph Line

If you are using the Trading System Based On Alert Condition study (instead of a spreadsheet study), use the Spreadsheet Formula study, and convert the formula to Alert syntax:
where:
@3 is [0]
@4 is [-1]
@5 is [-2]
Z4 is [-1] of this Spreadsheet Formula study

When using this formula, the slope direction will not change in flat segments.

Also, be aware that using the Study/Price Overlay study will occasionally give a signal that disappears, or appears late.
The 'Data Copy Mode' and 'Bar Time Matching Method' settings can mitigate this anomaly but there is no way to always avoid them.