I have an indior that plots an arrow below/above a candlestick if the candle has shut AND crossed within the moving average.
My problem:
The arrow should be ploted above/below the candle and usually it does so. However, sometimes the arrow is ploted ON the candle, and that's my problem. What causes this and how do I fix this?
I realized that this occurs generally when a candle lacks or has a tiny wick/shadow.
Indior and screenshot are all attached.
And I also want to ask is the entire code properly written? Any need of deinitialize anything etc?
Thank you!
https://www.forexsoutheast.asia/atta...2035540607.mq4