Reply To: Candle Length Function

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

  • Topics: 40
  • Replies: 2,017
  • Posts: 2,057

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


1 user thanked author for this post.

Pin It on Pinterest