Closing On Wrong Candle
-
I have a Heiken Ashi exit indicator. Why is it closing prematurely?
It's supposed to close if a bearish candle is present, but it closed when there was no bearish candle.Here's a picture

Here's the link:
https://fxdreema.com/shared/uvv2NF86e -
- Substitute teh pink 'Close' block for the blue 'Close trades'.
- I see you want to close when candle ID0 is > 0. I recommend you to substitute it by candle ID 1.