@Noldo, yes there is, but isnt a breaking issue, its just bypassing the overload protection(_length_adjusted) in case there is input with value equal or below zero.
thanks for mentioning it, ill update it when i get some time.
Noldo
⋅
@RicardoSantos, no problem sir. I m working on dynamical period strategy now and only _length makes bugs :
_length_adjusted script at least not opening position so maximum drawdown is much less :
so i felt the need to share , thanks for feedback and best regards .
Noldo
⋅
EDIT : Sorry i sent wrong date : now _length adjusted :
But my script uses not rounded periods , for example : period = 100/ 13 not round(100/13) maybe this situation made bugs too . (y)
_multiplier = 2 / (_length + 1) ====> False
_multiplier = 2 / (_length_adjusted + 1) ====> True ??