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)
I have been trying to create a script to refresh a strategy but nothing is working other than the F5 send keys which has multiple issues when programmed. (i.e. asking if I really want to refresh, chart not in focus creating errors, etc.)
I noticed that when a strategy is running I can manually add or remove an indicator to the chart and it will refresh without stopping the strategy.
I wonder if there is a way to add/remove a dummy indicator to a chart while the strategy is running.
If so, it would refresh the chart without the F5 problems.
If anyone has any ideas about this I would appreciate hearing about it.
Thanks
Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Can you help answer these questions from other members on NexusFi?
I am interested to know if there are work arounds that fix similar issues in NT8. I have written a code that is fairly large which has to incorporate an indicators code as the code requires a call of a secondary data series and that is unable to be done as a external indicator calling a data series and then allowing those variables on the secondary data series to be used in the main code. SO, that is not the issue, the issue is the indicator only runs successfully a x number of bars and then will stop visually updating. If I reset the indicator and have a larger period which visuals are to be drawn the historical visual value is accurate and still live there is a max number of bars the indicator can continue to calculate then it stops again.
I wonder if anyone knows how to code a programmatically stop in the indicator logic to then allow increment in the initial variables to display visuals and then have a function that will start the indicator a new using new updated variables.
ie. A counter it hides inside a period, when the counter is reached the period end, the indicator stops, updates new variables, then initiate indicator logic to start a new using set new period variables.
My edit N#1
I already have a counter and am able up update the indicator variables successfully though not able to implement any variables tied to the function of the indicator logic to stop it loading data that allows visuals to be drawn, so that it think the visuals are calculating even when not actually changing the visuals, so there is a total limit which is not reached visually but calculation max becomes the code stopping creating visuals at a new bar after x bars. I tired drawing dot and removing it and ForceRefresh() method which both to my test have made no difference on larger number of custom visuals by able to be conservativly drawn based on new bars.
Maybe using a text file that would contain a parameter to specify when it's time to turn on your indicator. You would just need to read this text file periodically to see if it has been updated.