I am pretty new to the coding world and I am trying to build a simple strategy in Tradingview.
I just want build a buy and sell strategy based on the true strength indicator. So whenever the "slow" line crosses the signal line upwards I want to buy and when the slow line crosses the signal line downwards i want to sell.
Can anyone provide me with the code for that? I have the code for the TSI indicator for just displaying the indicator but not for trading signals.
Thanks very much.