Exporting bar-data from SC to CSV for "import" into Excel is a simple matter.
http://www.sierrachart.com/index.php?l=doc/doc_ImportExport.html
Alternatively, you can add a "Spreadsheet Study" to your chart and the bar data will populate a SC Spreadsheet. You can then cut and paste into excel.
Additionally, for a VISUAL ONLY of your example, I've attached a chart of NQ using 2 hours bars. Nothing fancy. A SC default candlestick chart with 2 studies.
The 2 studies are both "Color Bar Based On Alert Condition"... so 2 instances of that one study. All study parameters are default values. The Alert tab in each study contains an alert formula. The formulas (1 in each of the alert tabs of each study)...
AND(H-L > 10, C > O) this is the purple bar
AND(H-L > 10, C < O) this is the yellow bar
Of course I had to choose the color for each study in the "Subgraphs" tab of each study.
Alert formula documentation is here...
http://www.sierrachart.com/index.php?l=doc/doc_AlertCondAndScan.html#AlertConditionFormulaFormat
Hope that helps
I really think you're making this too difficult... No formal programming is needed.
It does. Thanks. I played around with it and yes while raw data can be exported to excel, it still requires a lot of manipulation. Example: If I want values for the 'Time' that High/Low was made, I have to first output all the data from the High/Low study and then do all sorts of sorting to get the time during which High/Low was made. Not terribly time intensive though. Would be nice to know how to get it in one step.