I have been searching for a long time for the code of TREMA in various languages. I tried using the code in the library. TRSMA seems to work correctly, but TREMA didn’t. I am trying to obtain the SPX price during Regular Trading Hours (RTH) as displayed on SPTRD SP500 charts. In Pine Script, it was easy to extract the EMA from another ticker. Could someone provide a hint on how to correctly implement this?
Just as I have attached two photos, you can see the difference. Essentially, if the TREMA only reacts within the time range that I have chosen, it should not change outside of this time range, right?”
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok