Candle Length Function


How can I get Candle Length Function to create a script? Like I wanted to measure the previous candle size to the current candle.


Hi Prudhvi,

Remember that the candle is just made up of the high low open and close. So you can use them. For total candle length it would be High() - Low() For the height of the body (ignoring if it is hollow or solid) it would be ABS(Close() - Open()) The “ABS” takes the absolute value.

If you wanted the last value, put it all in a variable and apply an offset. eg

v1 = High() - Low();

That will give you the previous length.

Hope that helps