I am working on an indicator that calculates wick size in relation to candle body size.
Example is:
top wick = 3 ticks
candle body = 8 ticks
bottom wick = 2 ticks
The indicator weights the wicks against the candle averages out the top/bottom wick and plots it on a graph.
The problem I am facing is when Open and Close are the same. Basically there is nothing for the wicks to be weighted against and the graph show is empty for that bar, even though the wicks might be quite large.
My question is, how would I go about taking into account that a candle body may not exist (when difference between Open and Close price == 0)
Any ideas?
Comment