Fix my pinescript strategy code

Job ID: 31851897

Budget: €10 – €50 EUR

I'm trying to create a strategy in TradingView with pinescript, but i'ts not working how I want it.
Need some one to fix errors in my code.

Dm for more info
Related categories: Pine Script Trading