title: Trying to use ta.valuewhen as float variable to use a stop loss
body: <p>Im trying to get the value of the low of a bar with my conditions as a float variable so that i can use it as a stop loss. This is what i have so far &quot;buylow = ta.valuewhen(buyretracebar, low, 0)&quot; however when i try to use &quot;buylow&quot; as a stop it saying it's returning a boolean not a float any ideas?</p>