1 year ago

#315529

test-img

Shahar Brandman

pinescript boolean variable has an integer value

I've got this pinescript code I'm trying to translate to python but for some reason the boolean variable has an integer value? or an integer -like syntax? would appericate any form of help

code:

a = abs(high - low)
b = abs(close - open)
c = 0.45

rv = b < c*a
sl = rv == 1 and high > y and close < y and open < y 

for some more context here the entire script is on tradingview, it the "Rob Hoffman's Inventory retracement bar" by ucsgears.

python

pine-script

algorithmic-trading

trading

boolean-expression

0 Answers

Your Answer

Accepted video resources