spongetrader
New member
I have the following code:
Basically, I'm getting the z-scores for the weighted closing price and then trying to get the 5 EMA of the z-scores.
For lengths 4, 5, and 6 the EMA is the infinity symbol like such:
For other lenghts like 3 and 7, it isn't infinity:
I'm really puzzled by this and don't understand how or why it would be happening.
This is the beginning of a longer script that I already have working in Python and Tradingview. When trying to get it working in thinkScript, I'm running into this odd issue.
Basically, I'm getting the z-scores for the weighted closing price and then trying to get the 5 EMA of the z-scores.
For lengths 4, 5, and 6 the EMA is the infinity symbol like such:
For other lenghts like 3 and 7, it isn't infinity:
I'm really puzzled by this and don't understand how or why it would be happening.
This is the beginning of a longer script that I already have working in Python and Tradingview. When trying to get it working in thinkScript, I'm running into this odd issue.
Last edited by a moderator: