Reply To: Candle Length Function

Optuma Forums Optuma Scripting Candle Length Function Reply To: Candle Length Function

#63915
Mathew
  • Topics: 40
  • Replies: 1,958
  • Posts: 1,998

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

That will give you the previous length.

Hope that helps

Mathew

1 user thanked author for this post.

Pin It on Pinterest