I think we need help from JCL. I don't know if it makes sence to set the BarPeriod to 60 and set the TICKS flag at the same time.
I would consider to use some kind of flag for every tradelevel you use. so when you already entered short at price -20pips than set the flag (ex. ShortLevel2) to true. So you only take it once.
What does the script when you delete the BarPeriod line or set it to one?