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
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".
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
Hi there
valuewhen(true, low[2], 0)[2] is a weird syntax
This should return the value 2 candles before low[2]