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
Thank you! for the consultation!
well, it's actually a modified RSI :)
If you write an indicator for it, it should hang in the window of one instrument, and while there are no ticks on this instrument, the indicator does not work and... it skips ticks that are coming for other instruments :((
Ticks from different instruments are passed to the Expert Advisor via global variables, and if state of one of the global variables has changed, then the Expert Advisor runs and performs processing.
Ticks from different tools are passed to the Expert Advisor via global variables, and if the state of one of the global variables has changed, the Expert Advisor will start and perform processing.
Ticks from different instruments via global variables are passed to EA, and if state of one of the global variables has changed, EA will start and perform processing.
One of indicators, that will show all the ticks collected from global variables, will work only with ticks of the symbol it hangs on, and it will update only using its ticks, skipping other symbols. The only option - looped script with delay time in the loop for about 0.1 sec. probably not worth it :(
the only option is a looped script.
What does "cause a tick" have to do with it?
it means it operates on ticks of THIS window and MAY miss ticks that come to other symbols until there is no ticks on its symbol.
And if it is a script, it knows nothing about ticks. it was launched - it works. and it can receive information from its symbol and others only from a loop with some regular delay. a small delay for updating - more probability NOT to miss incoming ticks and greater load on CPU. if you make delay more (to unload CPU), the risk of missing ticks (for any instrument) increases.
in short: MT4 is NOT a platform for working with multi-ticks (imho).
what does "cause a tick" have to do with it?!
where is your indicator working? on a single "window"! so it is working on the ticks of THIS window and MAY miss ticks coming into other symbols as long as its symbol is not ticked.
this cannot be hard to solve.
for each window from which you need to collect ticks, hang an EA that generates a tick in the indicator and sends it the price value.
Andrei01:
You don't need to loop anything.
Then your processor will loop, processing a stream of ticks five to ten times more often than the market does. And each window may have a bunch of not at all easy indicators
.
there's a good old DDE in MT4...
It beats the ticks on the selected pairs by a good margin.
If you need to see them in one place - you may leave MT4 for a while.
In DLL or some other program, that collects multicurrency ticks, to generate outputs for an indicator/advisor, and in MT4 ask it with a rate of coming of the native tick.
It can be done this way as well.