Hi Richard,
For PHP, the financial chart is implemented in the file FinanceChart.php, To achieve what you need, you have to modify the code in FInanceChart.php.
For MACD, you can look for the addMACD function in FinanceChart.php. The current implementation has around 15 lines of code. The bars are added using the addBarIndicator2. For what you need, one way is to separate the bars into two groups for the red and non-red bars. You can then use two addBarIndicator2 lines to add them with different colors.
Regards
Peter Kwan |