Download MetaTrader 5
To add comments, please log in or register
Examine the Top MetaTrader 5 signals. Choose the best one and subscribe to it!
sayo
45
sayo 2014.11.12 16:05 

I have an EA where I want certain operations to be performed onTick with a 1minute pause after each operation.

The problem is that it doesnt seem to work as expected so I was wondering:

* If I attach EA to a chart (e.g. EUR/USD) and have 10 other charts open, will this affect the way onTick works?

* If I switch from one time frame to another, does this affect onTick?

* What can prevent onTick from working as expected

* Is there another function that carries out a similar function (to take action on each tick movement)

Cheers

whroeder1
13649
whroeder1 2014.11.12 17:28  
sayo:

The problem is that it doesnt seem to work as expected so I was wondering:

* If I attach EA to a chart (e.g. EUR/USD) and have 10 other charts open, will this affect the way onTick works?

* If I switch from one time frame to another, does this affect onTick?

* What can prevent onTick from working as expected

* Is there another function that carries out a similar function (to take action on each tick movement)

  1. "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires - meaningless. There are no mind readers here.
  2. Other charts have nothing to do with current chart onTick
  3. Switching goes through a deinit/init cycles. Static/global variables are not reset. OnTick is irrelevant.
  4. See #1.
  5. That is what OnTick is for.
sayo
45
sayo 2014.11.12 17:33  

Thank you for the answer.

I think I have what I need from the response.

/
To add comments, please log in or register