MQL4 - automated forex trading   /  

Forum

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

Back to topics list To post a new topic, please log in or register

avatar
1
Rvtssmith 2007.05.15 01:06 
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
article

Jury Session Record of the 17th of December 2007

At the session, the Jury discussed disqualification of some Participants.


avatar
Moderator
33783
Rosh 2007.05.15 10:41 
See documentation, please. http://docs.mql4.com/runtime/start

avatar
124
Heino 2007.05.15 15:29 
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.
Back to topics list  

To add comments, please log in or register