Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 16:51:59 +0000



[User Discussion] - User Discussion / Programming help -- color bar by alert -- highest closing bar in X bars

View Count: 259

[2024-05-15 12:41:31]
TropicalTrader - Posts: 45
Hi, I would love some help me with this formula

=AND(C<O,C<L[***])

*** = highest high of the last 4 bull bars

I want to have the color bar by alert trigger when there is a close below the low of the bullish bar that made the highest high in the last 4 bullish bars (ignoring highs of bearish bars or dojis)

Here are 2 examples where the pink line marks the correct signal bar
https://cdn.shopify.com/s/files/1/0598/6757/files/ex.jpg

Thanks!

Reference Market Structure - Valid Highs / Valid Lows
[2024-05-26 01:54:39]
Sawtooth - Posts: 4119
This is much more complex than you think, because you must first isolate the bullish bar that made the highest high in the last 4 bullish bars.

This is the challenging part, and would be much easier if you only wanted the most recent 4 bullish bars, without any historical alerts.

Beyond this, it is probably not possible with even a spreadsheet study, and would therefore require a custom ACSIL study.
[2024-05-26 02:02:11]
TropicalTrader - Posts: 45
Thanks for your reply.

I don't need the historical alerts, using the most recent 4 bullish bars would be great.
[2024-05-26 13:58:41]
Sawtooth - Posts: 4119
Please Direct Message me to discuss this further.

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

Login

Login Page - Create Account