An extended version of Parabolic SAR with additional parameters.
tm.ta.sarext(source_high, source_low, startvalue, offsetonreverse, accelerationinitlong, accelerationlong, accelerationmaxlong, accelerationinitshort, accelerationshort, accelerationmaxshort)
import tradomate as tm @tm.strategy()def my_strategy(config: tm.TradomateConfig, data: tm.TradomateData): # Trying out Parabolic SAR - Extended sarext = tm.ta.sarext(data.high, data.low, startvalue=0, offsetonreverse=0, accelerationinitlong=0, accelerationlong=0, accelerationmaxlong=0, accelerationinitshort=0, accelerationshort=0, accelerationmaxshort=0) # Get the last value and print last_value = sarext.iloc[-1] tm.log(f"Last value of Parabolic SAR - Extended is {last_value}") # Plot the values of sarext tm.plot(sarext, title="Parabolic SAR - Extended", overlay=False)