OnTick not performing as expected

 

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

 
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.
 

Thank you for the answer.

I think I have what I need from the response.

Reason: