Increase the default pyramiding value from 3 to 4 to improve profits (don't forget to adapt your position to not be liquidated).
Changed the code for the "checking conditions" in the strategy part, it avoids errors in pine editor console (no changes in operating and results stay the same).