Logic

MA : period 144 days

the entire candle should be above moving average then buy entry
the entire candle should be below moving average then sell signal

exit should be stop and reverse

lot size : it should calculate total loss trades if net is profit then it should reset the volume else it should increase the according multiplying factor