Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 19:05:01 +0000



[Programming Help] - Color background on a flex renko inverse set with wick reversal bar

View Count: 1369

[2019-03-17 22:53:30]
User701453 - Posts: 176
Anyone have a study formula that can be used to detect when an upward flex renko reversal bar has occurred after 4 previous flex renko down bars?

If the formula could also only color background if the 3 renko bars after the reversal bar is also up with no wicks.
Date Time Of Last Edit: 2019-03-17 22:58:08
[2019-03-19 08:41:30]
User701453 - Posts: 176
No working ideas yet?
Its probably not possible to get this achieved in sierra charts.
[2019-03-24 03:28:03]
User701453 - Posts: 176
Amazing. 53 views,posted for a week and still no working ideas.
Guess the requested task is way too difficult or SC is not advanced enough to perform the requested task.
[2019-03-24 05:37:27]
Sawtooth - Posts: 3976
Guess the requested task is way too difficult or SC is not advanced enough to perform the requested task.

It's entirely possible but it's difficult to offer a formula when it's not clear what you want.

Do you want to detect the 1st green renko bar after 4 red renko bars?
Or do you want to detect the 3rd wickless green renko bar after 4 red renko bars?
Or do you want to detect the 3rd wickless green renko bars after the 1st green renko bar after 4 red renko bars?

And do you also want the reverse?
And do you want both directions combined, or each unique?
[2019-03-24 17:39:21]
User701453 - Posts: 176
Or do you want to detect the 3rd wickless green renko bars after the 1st green renko bar after 4 red renko bars?
Looking to detect that pattern that will include the reversal renko bar.

And do you want both directions combined, or each unique?
Separate study for long and short.

I have attached a chart screenshot of what I have managed so far with the alert code.
The areas circled are close to what I want.
The area in the squares are painting both third and fourth bars.

This is the alert code I have so far for the long side.

=and( C > C[-1], C[-1] > C[-2], C[-2] > C[-3],
L > L[-1],
L[-3] < L [-4],
L[-4] < L [-5],
L[-5] < L [-6],
H[-5] < H [-6]
)

image3rd bar.PNG / V - Attached On 2019-03-24 17:31:10 UTC - Size: 11.72 KB - 408 views
[2019-03-25 02:09:58]
Sawtooth - Posts: 3976
Try this:
=AND(
ID0.SG23[-7]<ID0.SG22[-7],
ID0.SG23[-6]<ID0.SG22[-6],
ID0.SG23[-5]<ID0.SG22[-5],
ID0.SG23[-4]<ID0.SG22[-4],
ID0.SG23[-3]>ID0.SG22[-3],
ID0.SG23[-2]>ID0.SG22[-2],
ID0.SG23[-1]>ID0.SG22[-1],
ID0.SG23[0]>ID0.SG22[0]
)

This will color the 4th green bar after the 4th red bar, ignoring wicks.
For the opposite direction, reverse the comparison operators.

There is no formula that will consistently isolate a wickless renko bar.
There is a separate identifier for renko Open and Close, but none for renko High and Low.
Study/Chart Alerts And Scanning: Available Main Price Graph Identifiers/Variables
[2019-03-26 08:35:05]
User701453 - Posts: 176
Thanks tomgilb
Works great.
You are a genius.

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

Login

Login Page - Create Account