I made some improvement and modification to comply with pine script version 4.
Basically, it is a strategy based on proce action, supports and resistance and can be used also for scalping.
It could be improved with exit rules, stop loss based on ATR etc.
I have also a study with alerts.
Please use comment section for any feedback or contact me if you need support.
it’s as if the main one for increasing profits .. is the problem of repainting buried?
The stratey uses a template from JayRogers (see the code) for executing the orders, nothing more. I don't think that you can use it on 1 minute charth: it is not designed for it.
The code itself basically counts how many consecutive bars there were in history nothing more, so how can it repaint? what does it repaint?
Most of parameter have to be optimized when you chage timeframe and pair.
This kind of repaint happens because of the lag of inner-candle-data. You only have Open, Close, High and Low when backtesting which makes trailing stop losses impossible to backtesting since it always would be set to High or Low, depending of the position type.