When trying this code:
strategy.risk.allow_entry_in(close > ta.vwap(hlc3) ? strategy.direction.long : strategy.direction.short)
I get this error:
An argument of series string type was used but a simple string is expected
It happens from this:
close > ta.vwap(hlc3)
I am just trying to say that it should return true if the close is above vwap. What am I doing wrong here?
Sorry I m new to pine and this is my first script.