Support Board
Date/Time: Mon, 25 Nov 2024 07:35:49 +0000
Post From: Custom study counting candles script
[2024-03-23 15:45:01] |
binaryduke - Posts: 369 |
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 :) |