Fire Entry on Fist Bar

 

Hello All,


I have series of conditions.


If the RSI is greater than 50, if this and that line are crossed, etc.


I need an easy... or difficult way to handle the signal on the very first bar after the conditions are met.


The EA keeps firing on every bar once my conditions are met.


Thanks in advance.


Sincerely appreciate the help.


Mike

 

Have you been reading the MQL4 Tutorial??? Programming in Algorithmic Language MQL4 - Introductory Course


GREAT way to answer all your questions...


EAs called by Client Terminal every data tick received from trade server (if EA not already running)


Time[0] only changes on first data tick of new bar. Why? because Time[] is array of bar open times. Open times are constant for a bar, yes?


knowing that current bar (Time[0]) is != barTimeWhenYourConditionMet is trigger telling you that "the signal on the very first bar after the conditions are met."


new bar detection: Identifying the open and close of a bar in an EA


have fun