Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Is it possible to recalculate/refresh indicator with EL statement while MC works offline ???
I have following problem:
I'm reading raw data using ELcollection. Data has no time stamps but last bar of this data is in sync of last bar of symbol data in MC and i want simply plot my new data in sync with MC symbol data.
So in order to sync my new data with symbol i need to find the value of start index in my data and simple plot it.
For this i need to know the CurrentBar value at the end of the chart.
But this value is only obtainable after indicator calculation so i don't have to chance to plot it anymore.
Any idea how to overcome this ??
Krzysztof
Can you help answer these questions from other members on NexusFi?
Yes, you can do this with RecalcLastBarAfter. With this reserved word you can force the calculation of a study every fixed time interval without the need of a new tick.
sptrader,
to my knowledge you can't currently do that directly. Switching a study off could be done with RaiseRunTimeError, but there is no chance to get it back on again from code then.
The only chance you have in my opinion would be "allowing" and "disallowing" a study calculation using either code within the original study or coming from a second study with ELCollections or Global Variables.