The trading logic is the close is higher than EMA200 then buy
close is lower than EMA200 then close the position
How can I code:
if after 5 days no close signal (price is lower than EMA200) then close the position
The trading logic is the close is higher than EMA200 then buy
close is lower than EMA200 then close the position
How can I code:
if after 5 days no close signal (price is lower than EMA200) then close the position