EA Based on Bars like my indicator and not on ticks ??

 
Hi all,

As you can guess I am a newby on here and have a couple of questions.

Am I right in thinking that my indicator works on bars:

int counted_bars=IndicatorCounted();
//----

if (counted_bars < 0) return (-1);

if (counted_bars > 0) counted_bars--;
int limit = Bars-counted_bars;

for (int i=0; i < limit; i++)



and an EA works on ticks.

If that is the case which I think it is .. How can I change my EA to Trade on Bars and not ticks. (I'm tring to check the accuracy of my indicator without taking time off work lol.)

Any help greatly appreciated.

Russ
 
See documentation, please. https://docs.mql4.com/runtime/start
 
You can also use for example High[1] than you will only get data that has been finished and not based of ticks, also read about the shift Parameter need by lot of functions.
Reason: