SQRT calculates the square root of each element in the input array.
tm.ta.sqrt(source)
import tradomate as tm @tm.strategy()def my_strategy(config: tm.TradomateConfig, data: tm.TradomateData): # Trying out Vector Square Root sqrt = tm.ta.sqrt(data.close) # Get the last value and print last_value = sqrt.iloc[-1] tm.log(f"Last value of Vector Square Root is {last_value}") # Plot the values of sqrt tm.plot(sqrt, title="Vector Square Root", overlay=False)