Login Page - Create Account

Support Board


Date/Time: Sun, 12 May 2024 21:28:06 +0000



Post From: Custom study counting candles script

[2024-03-23 15:45:01]
binaryduke - Posts: 360
You could do this without custom coding.

Use the Color Bar Based on Alert Condition Study.

Build an alert for... 'it's the first bar of the day and a red candle'.

Duplicate this and build an alert for 'it's the first bar of the day and a green candle'.

The alert formula syntax including checking for bar time is well documented by the Sierra Chart.

Then, you can use the Color Bar Based on Alert Condition Study's subgraph output for Sum of Alerts to get you the totals you are seeking.

I wager it is around 50% for each :)