Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 10:45:49 +0000



[User Discussion] - Higher Time Frame Filter for Automated Strategy

View Count: 272

[2023-08-23 18:05:04]
User185631 - Posts: 12
I have an automated strategy I am building and one of the key inputs is a Hull MA on a higher time frame chart, using the slope of the MA for directional bias.

When the slope of the MA flattens before changing, it can lead to a large number of signals hurting the performance of the system.

As of right now, I'm using a Color Bar Alert condition for when the slope is flat. Even still, there is a fair amount of indecision when the higher time frame trend is shifting direction.

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?

Any feedback is appreciated!
[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.

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

Login

Login Page - Create Account