Hi!
I'd like to know if you can help me with this annoying issue because TradingView tester is so inaccurate.
I've coded a strategy so that it closes my trade once price crosses down the sma[1]. But I've realised it doesn't work as expected.
My condition is:
if (strategy.position_size>0)
strategy.exit(id=buy
, stop=sma1[1])
As you can see in the image, it doesn't close those longs when it should have done it.
Thanks so much for your help.
Have a good day!