indicator interval printing (higher timeframe to lower one)

Forums ProRealTime English forum ProBuilder support indicator interval printing (higher timeframe to lower one)

Viewing 4 posts - 1 through 4 (of 4 total)
  • #55586
    Seb

    Hi everyone, I’m trying to make a higher timeframe EMA in my (lower timeframe) chart. I can print the values that have to be the input for the EMA calculation, but there are 0 values in between. The 0 values affect the calculation of the EMA. Therefore my question: is it possible to let an indicator print at intervals?

    #55636

    Difficult to answer your question without your code. But I think you are calling the EMA only one time at round hour and not in between. If you are calculating only on Close, you should give your variable the same value as the one before or not resetting it to zero. Once again, please share the code with the community, it would help also a lot of people here to know how you are achieving this interesting result (higher TF moving average on lower timeframe).

    #55648
    Seb

    Credit goes to JMat45 for his Higher timeframe RSI code, I used the first part of his code to time the close of the higher timeframe in the lower timeframe chart. In the chart of my first post I print “htfclose”, the 60 minute close, in a 5 minute chart. In the code below I attempt to code an EMA(3) of the 60 minute timeframe for a 5 minute chart, but without success. The ExponentialAverage[3](htfclose) function of PRT doesn’t work either; it takes in the 0’s in between of the htfclose values, which gives a lower than supposed result. Therefore my question was if it’s possible to print at intervals, so the 0’s won’t be put in the calculation of the EMA3.

     

    #55650

    I don’t know if the EMA calculation is correct and accurate with the real superior timeframe EMA, but I fixed the way it is displayed, now the curve is continuous. Interesting code, thanks for sharing it 🙂 

     

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

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