I need help with my EA condition

 

Hello Traders,

Currently the condition for my EA is only iSAR,

I want to add a second condition iCCI to the EA with values +100 and -100 levels pls.

***


Would you please help?

 
  1. Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
              General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06
              Messages Editor

  2. Why did you post your coding question in the MT5 Systems section instead of the MQL4 section, (bottom of the Root page)?
              General rules and best pratices of the Forum. - General - MQL5 programming forum?
    Next time, post in the correct place. The moderators will likely move this thread there soon.

  3. Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help 2017.04.21

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum 2018.05.12

    We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
              No free help 2017.04.21

 
Husain Dana:

Hello Traders,

Currently the condition for my EA is only iSAR,

I want to add a second condition iCCI to the EA with values +100 and -100 levels pls.

***


Would you please help?

So you can use basic syntax to add that. For example:

if (iSAR) {
        if (iCCI) {
        return   value;
}
}
 

Or just

if (iSAR && iCCI) {
	return   value;
}
 
Husain Dana:

Hello Traders,

Currently the condition for my EA is only iSAR,

I want to add a second condition iCCI to the EA with values +100 and -100 levels pls.

***


Would you please help?

Use logical operations