Pine script simple strategy template

Job ID: 34869351

Budget: $10 – $30 CAD

Build me a simple strategy template that does that following:

Take a trade everytime there is an engulfing candle and the candle closes (market execution).

Risk: percentage of equity (user provides how much risk in input)
SL: Under/above the engulfing candle
TP: RR (user defines how much RR in input)

Pyramiding: Max x (user defined) orders in each direction. If we are already in x orders in a specific direction and we get a new signal, dont take a new one. Create logic for this instead of just adding pyramiding=3 to the strategy functon.

Keep the code organised and commented.

This is a simple strategy so dont bid a ridiculous amount. Deadling 1 day.
Related categories: Metatrader Pine Script Trading