How to apply trading stragegy to chart

Apply pine script strategy to chart.
My strategy is,...
Buy when ma5 cross up BB high line
Sell when ma5 cross down BB low line and BB middle line when volatility high.
Trend Analysis

Disclaimer