TREMA didnt show correctly.

Forums ProRealTime English forum ProBuilder support TREMA didnt show correctly.

Viewing 6 posts - 1 through 6 (of 6 total)
  • #226922

    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?

     

     

    #226933

    Calculations are made accord to the time range you selected.

    What do you think is not working?

     

    #226965

    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?”

    #227069

    It changes because you set TREMA=close at line 13, even outside the desired time window.

    #227365

    thanks a lot. without this line looks better. BUT, the ema is still not right… Please check the screenshot. the price was rising but ema not.

    #227675

    An 800-period EMA will take 800 of the selected bars within the desired time range to be aware of that rise.

     

     

Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login