Errors, bugs, questions - page 2859
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
In general, what are your thoughts on a possible implementation?
There are many possible implementations
but it all comes down to the task of data exchange between EAs
the easiest way is to check permission for initialization and perform the initialization itself in OnTick() - it would allow to avoid restoring charts and then running EA on them, and saving of EA before closing it would be possible to do in OnDeinit()
it' s not important who will manage this zoo - either the main EA or a service
In the tester log
What does it mean?
In the tester log
What does it mean?
It means that when the next value of m1 ohlc is received (or bar state when testing by open prices), the time field contains 0
undefined function means that the problem has occurred outside the predefined functions (OnTick, OnTimer etc.), i.e. in the main loop of the tester
It means that when getting the next m1 ohlc value (or bar state when testing by open prices) the time field contains 0
undefined function means that the problem has occurred outside the predefined functions (OnTick, OnTimer etc.), i.e. in the main loop of the tester
Everything was working fine all day and then it started. What can I do as a user?
It means that when getting the next m1 ohlc value (or bar state when testing by open prices) the time field contains 0
undefined function means that the problem has occurred outside the predefined functions (OnTick, OnTimer etc.), i.e. in the main loop of the tester
I don't understand, is there an error in my code or is it an error in the terminal? Wiped out all the history - didn't help.
Added:
Found a function in my code, disabling it avoids the error, but in another EA this function works correctly! How so? I can drop it in my private message.
Even when this buggy function is enabled, OnTick() runs completely on the first bar and then that error.
On different terminals the error is confirmed.
Ran on ticks - no error...
But the strangeness is in the log:
On ticks if to look the tool, the first tick was exactly at 10:00, and trading session is still closed at this time. This is in visual mode, without tick the first print comes at 10 o'clock.
The easiest way is to check the initialisation permission at the beginning of each EA in OnTick()
This is the main problem of the task.
Try to pay attention to the chart IDs and run by seniority. But this does not cancel the interaction of EAs. Or make a file or maybe a SQLite database with chart IDs in the launch sequence.
Something like, at the first initialization, if there is no Chart_ID() in the list, then it is entered into the list. If it is not closed due to terminal closure, then it is removed from the list. In this way it will be possible to configure the interaction of EAs.
This is the main sticking point of the problem.
sketching out how I see it... created 2 EA with this code:
and one control EA, which works in timer ( 5 sec )
Checked it, everything works, the only thing, or it didn't work with GlobalVariableSetOnCondition() to make a record in global variables
This is the main problem of the task.
GlobalVariableSetOnCondition is all that is needed to solve the problem.
Operation is only allowed when GlobalVariableSetOnCondition has returned true.
After successful initialization and release of resources, return the main variable to its original state and another EA starts.
In DeInit - unconditional deletion of the variable, so as not to run into the terminal without EAs at all (if the previous loading was not completed correctly).
Thanks for the recommendations. I will look at GlobalVariableSetOnCondition.