Making an indicator automatically reload/refresh?
Forums › ProRealTime English forum › ProBuilder support › Making an indicator automatically reload/refresh?
- This topic has 4 replies, 2 voices, and was last updated 8 years ago by TheYangGuizi.
-
-
09/12/2016 at 4:11 PM #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
09/12/2016 at 6:05 PM #12997Please 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.
09/12/2016 at 9:07 PM #13006Fixed 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.
09/13/2016 at 9:38 AM #13008I 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.
09/13/2016 at 11:01 AM #13015Yes, 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!
-
AuthorPosts