Presently, my 15 minute chart background (BG) color changes via an efs using setChartBG(), based on the condition of a 60 minute study. Then I view the same study in a 15 minute interval underneath the chart and change the BarBgColor of the last 10 bars of the study based on its condition. I have this setup in 30 mini charts. The idea is, when the price BG and study BG colors match, I know the conditions in the two time frames align.
I only paint the last 10 bars of the study, because painting all the bars I found was too CPU intensive.
The problem is, with only the BG of the last 10 bars of the study being painted in these tiny charts, I'm still missing the color alignments. So with 80 visible price bars in the chart, I'm considering painting the BG of the most recent 40 price bars based on the 15 minute study condition, and the previous 40 price bars based on the 60 minute study condition. Then when the whole chart is one color, I know the conditions align.
My question is, will using setBarBgColor() to paint half the chart (40 bars) one color and half the chart (40 bars) another color be more CPU intensive than using setChartBG() to paint 80 bars the same color? With this 50/50 BG color split for the price bars, I would no longer need to separately paint the BG for any study bars, which should reduce CPU loading.
Thank you
shaeffer
I only paint the last 10 bars of the study, because painting all the bars I found was too CPU intensive.
The problem is, with only the BG of the last 10 bars of the study being painted in these tiny charts, I'm still missing the color alignments. So with 80 visible price bars in the chart, I'm considering painting the BG of the most recent 40 price bars based on the 15 minute study condition, and the previous 40 price bars based on the 60 minute study condition. Then when the whole chart is one color, I know the conditions align.
My question is, will using setBarBgColor() to paint half the chart (40 bars) one color and half the chart (40 bars) another color be more CPU intensive than using setChartBG() to paint 80 bars the same color? With this 50/50 BG color split for the price bars, I would no longer need to separately paint the BG for any study bars, which should reduce CPU loading.
Thank you
shaeffer
Comment