hello
I am working on strategy and I have problem in converting Parabolic SAR indicator from pineScript to python and using in backtrader.
in pine the refrence code of calculation is:
psar = ta.sar(start, increment, maximum)
start (simple int/float) Start.
inc (simple int/float) Increment.
max (simple int/float) Maximum
but in talib the refrence code are:
real = SAR(high, low, acceleration=0, maximum=0)
and in backtrader refrence code Params are:
bcktrader.ind.PSAR(period, af, afmax)
period (2)
af (0.02)
afmax (0.2)
i found :
increment val= af and maximum=afmax but I couldnt find any refrence in what happened for start? my start is 0.11 and its float and can not put start = peroid because period can not be float
how can I add start value to backtrader strategy?