Candle Length Function

Optuma Forums Optuma Scripting Candle Length Function

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #63867
    Prudhvi Reddy
    • Topics: 15
    • Replies: 6
    • Posts: 21


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


    • 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.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest