Im new to scripting and trying to implement the RSI Divergence command that i found here on Hassscripts
I saved the RSI Divergence as a command script and then I could call it in a new script, below….
It plots on the chart, but when i try to use values of the RSI Div to enter a position it throws this error:
01 Oct 22, 15:44:59
ERROR: attempt to compare userdata with number at [7:0-17]
Any help greatly appreciated