CurrentData.Refresh()
Hello PTMC Team
How can i refresh the "CurrentData" object directly without using CurrentChart.Refresh?
Thanks for advise!
Christian
Hi Christian,
Thanks for using NETScript,
To answer your question, have you considered this method?
public bool Load (DateTime from, DateTime to)
https://protrader.org/kb/en/knowledge-base/pt3/algo...
CurrentData object has the Load method and I don't see a reason why this wouldn't work. I haven't worked with that class, so I don't know if this may present an issue with performance. However, I didn't see anything else that could accomplished what you're asking. I'm not sure why you would need to refresh, so if you provide a reason, I may be able to provide you with a better solution.
In the future (not including this thread), please post questions related to NETScript here:
https://protrader.org/forum/category/algostudio/ptm...
Thanks and have a nice day.