Does any of the TA work on tick charts? - page 13

 
Tantrik:

Thank you! for the consultation!
Always at your service!
 
ForexTools:

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.
 
Angela:

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.
This requires the Expert Advisor to be looped in.
 
Angela:

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 :(

 
ForexTools:

the only option is a looped script.

Well, I think it's been explained before - a tick can also be called from a script without any looping.
 

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).

 
ForexTools:

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.

In this case, your cpu will get hung up, working off a stream of ticks five to ten times more often than the market does. And each window may have a bunch of not-so-easy indicators, and every time you'll be forced to recalculate them ("I've been there, I've seen that..."). MT is written so that if it has gone into calculations and loaded the CPU at least up to 90%, then a simple pressing of three buttons to call the task manager to unload the terminal will take a couple of minutes at least. and during this time the price will crash down...., and you don't have any stops there, ..... i can't get to the button to close the order - the terminal is hanging :)) or more precisely :(((
 
ForexTools:
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
.
The indicator hangs on only one window, and it is the only one.
 

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.