MQL4 - automated forex trading   /  

Forum

How to wait until the next bar ?

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

avatar
36
nazoreen 2008.04.15 17:56 

Hello,


In my EA, when the current trade have a profit level (for example 50) I make a SL of 25.

I would like when the EA close the current trade (when arrived at 25 profit) waiting the next bar to enter in a new trade.



Have you got any idea to make this ?



I know sleep() function, but I don't know how to make this awaiting with sleep().



Thank you,

Have a nice day.

article

Interview with Thomas Bopp

Thomas Bopp is the Jury Member representing the TRADERS' magazine. In his interview, he tells where and how he studied technical analysis, as well as about his work at Der Zyklus-Analyst. Thomas has also revealed some details of his own Expert Advisor and his estimation of the Automated Trading Championship 2006.


avatar
396
ukt 2008.04.15 18:51 

Forget Sleep(), search forum - masses of refs to this subject.

eg, http://book.mql4.com/variables/arrays

search page with this text: to detect a new tick on a zero bar


Identifying the open and close of a bar in an EA


avatar
36
nazoreen 2008.04.15 21:43 
ukt wrote:

Forget Sleep(), search forum - masses of refs to this subject.

eg, http://book.mql4.com/variables/arrays

search page with this text: to detect a new tick on a zero bar


Identifying the open and close of a bar in an EA

Thank you,



It is very useful :-)



Have a nice day.

Back to topics list  

To add comments, please log in or register