Convert below condition as PI code

Kindly help me convert below condition As zerodha PI code

When below condition is true i want to change candle stick color to blue

(Open – Close) <= 50% (High – Low)

hElLO tRaDeR,.

ABS(OPEN-CLOSE) <= (HIGH - LOW) * .5 

how to change the candle stick based on the above condtion

Hi, The Tradescript language used in Pi can only generate trade alerts, it cannot be programmed to change the color of candlesticks

is there any option to implement as Study