Hello. I wonder what is the syntax to open and close a short position?
For example, on SPY if the RSI drops below 20 (open) and if the RSI crosses above 80 (close).
For some reason, I can successfully code a long position and see open and close (on the chart) but I'm unable to do that for a short position.
Can you please help out?