When to BUY - you buy when color change from red to green
When to SELL - you sell when color change from green to red
(Take profit)- This one is entirely up to you and your strategy but my
recommendation is that you set your take profit 1:1 and above like 1:2/ 1:3 .
(Stop loss)- This one is also entirely up to you and your strategy but my recommendation is that you set your stop loss below/ above the previous bar with opposite color.