Yesterday , I learned to script in pine. I have implemented strategy based on pivot points
. When previous pivot point
is broken , script takes decision to go long on various other parameters i.e. filtering of signals. Exit of position is purely based on trailing stop loss.
This script seems to be best suited for intraday trading as average bars per trades are less.
Short function has not been defined yet.
Waiting for comments, so that improvements can be made