Pine script backtesting

Job ID: 36221116

Budget: ₹600 – ₹1,500 INR

I want pine script code (version 5) which does backtesting strategy for following condition.

1. Chart timeframe is set to 5 min (and can be changed in indicator)
2. when any candle bar breaksdown (closes below) below the low of first 5 min candle of the day, execute "Short" strategy
3. When any candle bar breaks-out (closes above) above the high of first 5 min candle bar, execute "Long" strategy
4. Strategy should be flexible to test this for any number of days. This can be done through input in settings options of indicator
Related categories: HTML5 Pine Script