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?”
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue