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
The only and only GlobalVariables and files for data exchange between EAs, indicators and scripts are
All 4 points above are local "hacks" for want of fish. All 4 points above use mechanisms not designed for exchanging arbitrary data, much less arrays of data.
You'd think GlobalVariables was designed specifically for messaging. That's a silly thing to say. In fact it's the same hack as any other item.
...Roughly speaking,a full write/read tick cycle through a resource runs at a rate of 4 million ticks per second.
The read/write to the resource is very fast. But to what extent is this suitable for such a transmission:
1. Line A. Timer Event. Collect all parameter values that were changed at the event and translate them into a string. Translate string to Char, write to resource. Send message to B side.
2. Party B. OnChartEvent() event, receives a message signal, opens the resource, reads it, fills the parameter kernel with new values, redraws the required elements.
What if this event is executed continuously, at the timer frequency?
The question is how best to use resources for this, if there are other options.
//---------------------------------------------------------------------------------------------------------------------
What if this event is executed continuously, at the timer frequency?
The question is how best to use resources for this, if there are other options.
Forum on trading, automated trading systems and strategy testing
Data exchange between programs
fxsaber, 2018.11.21 13:12
Probably have a lot of time to describe in such detail the various options for interactions. Unfortunately, I don't possess such a resource.
Here's an article on the subject where a full interaction is going on. Each building is built from bricks and for specific tasks. All the possible bricks are shown at the beginning of the thread. The rest is up to the builder.
The article does not test the communication of two programmes via resources, one of which is in the tester.
What's the problem with the union? Please, an example:
The article does not test the communication of two programmes via resources, one of which is in the tester.
Read the sentence about bricks.
...
This article is firing a cannon at sparrows. Like many articles. I'd sooner solve the problem myself than understand the article.
Everything can be done 10 times easier and clearer. But the article is a hell of a lot easier...
And what good is the article if you say you haven't checked the operation of resources in the tester?
And what good is this article if you say you haven't checked the resource operation in the tester?
Got out of the discussion.
There is something wrong with this solution. Maybe I'm doing something wrong.
To make it short:
The StringToCharArray() function takes ONLY an array of char.
The ResourceCreate() function accepts ONLY a uint array.
Hence, it is necessary to intermediate rewrite the contents of the char array (filled with the converted string), into the uint array.
Indicator on a normal chart: