This code is fofr you to change it and transform a strategy into a study and avoid pyramiding just by editting this lines
longcondition= buy_entry and buy_zone
shortcondition= sell_entry and sell_zone
like this
longcondition= 'YOUR CONDITION HERE'
shortcondition= 'YOUR CONDITION HERE'
and using your own conditions
This particular strategy is only as example and not for actual trading, this code is only to be edited an used to transform your strategies into studies to get alerts