I would like to build my own indicator that uses the “islastbarupdate” to draw an arrow (upward or downward) according to the trend during the creating of the last candle. In addition to that I would like to change the color of that arrow during the last bar in this way:
when the new bar open and the price stays above the closing of the previous one the arrow is yellow, after having the yellow arrow (and only after having this first condition satisied) if the price goes below the close of the previous one the arrow shall become red.
Is it possible? I try different way but without success, I’m not able to control the sequence with the flag variable
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue