smi crosses avgsmi
I've been iterating with ChatGPT and it is not working due to lookback issues. I need a watchlist script that changes color based on the most recent StochasticMomentumIndex (SMI) crossing's direction. If crossing was UP, change color to white. If DOWN, change to red.
Settings for SMI crossing: %k=5, %d=2, overbought= 40, over sold=-40.
I can't hard wire the lookback (I'm using the 4 hour aggregation). I want the code to find the most recent SMI crossover and change the column colors accordingly.
Is this possbile in Thinkscript? Thanks in advance.
I've been iterating with ChatGPT and it is not working due to lookback issues. I need a watchlist script that changes color based on the most recent StochasticMomentumIndex (SMI) crossing's direction. If crossing was UP, change color to white. If DOWN, change to red.
Settings for SMI crossing: %k=5, %d=2, overbought= 40, over sold=-40.
I can't hard wire the lookback (I'm using the 4 hour aggregation). I want the code to find the most recent SMI crossover and change the column colors accordingly.
Is this possbile in Thinkscript? Thanks in advance.
Last edited by a moderator: