Making an indicator automatically reload/refresh?

Forums ProRealTime English forum ProBuilder support Making an indicator automatically reload/refresh?

Viewing 5 posts - 1 through 5 (of 5 total)
  • #12993

    Hey,

    I wanna do this:

    Make an indicator automatically reload/refresh/update itself  whenever there’s a new candle.

    Is there any line of code you can add to accomplish this? Is it possible to make with proreal?

    Thanks for any help

    #12997

    1472825722_flagPlease update your country flag in your profile. Thank you 🙂

    Hi, I don’t clearly understand your question as it is already the case for any indicator you can make. All calculation are made over history at the first load and then automatically refresh at each new tick received by the platform on the last candlestick.

     

    #13006

    Fixed the flag 🙂

    So, I have this specific indicator that “repaints”. It’s a channel/moving average bands of sorts.

    Basically if you let it run for  a while, and then close the chart (or switch to another timeframe and back), then the indicator will have changed. The channel/bands will have moved.

    It’s still useful despite of this, but having to manually switch between timeframes to make it repaint/update gets a bit annoying. So I’m trying to figure out if there’s a way to make it refresh automatically.

    I’m not the best at explaining things, but maybe you understand what I’m trying to say.

    #13008

    I think you are using an indicator that have DPO in its calculation. DPO use data of the future, it only draws the good information correctly at first load of history, and because PRT don’t re-load it at each new tick, you’ll have to refresh the chart by switching between timeframes.

    So there is no real possibility to make it repaints itself i’m afraid.

    #13015

    Yes, you’re right it has DPO in the code.

    Too bad there’s no way to make it auto-refresh.

    But thanks for the answer!

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

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