This script uses Parabolic SAR with the 200 EMA to determine long and short trends. Only long signals are given when the price is above the 200MA and shorts when it is below. Signals are further filtered using ADX to reduce noise.
Suitable for trading bots where open positions in the same type are set to be ignored.
Alerts are built in.