Welcome to the BEST forum for traders

Did you know we're sharing tons of exclusive content here?
Our community is growing quickly. Take a look around and say "Hello".

valuewhen(true, low[2], 0)[2]

Jan 6, 2022 - 9:49 AM

Viewed 359 times

https://best-trading-indicator.com/community/bti/forums/4180/topics/55600 COPY
  • Good morning,

    What does the [2] mean at the end of this line(NOT the [2] after low)? I tested it and it looks like in this occasion it shows the low of 4 bars back. But why would you write the code like this and not just use low[4]?

    Best regards

    0
  • Hi there

    valuewhen(true, low[2], 0)[2] is a weird syntax
    This should return the value 2 candles before low[2]

    0
CONTENTS