I am learning to code Empty4 crap. managed to get some stuff modified on existing ea's for a start.
I am still struggling to find a code line that can select either 1 of 2 variables. For example I have A = 1 and B = 5.
I want to code so that for condition to trigger, either A < 1 or B > 5.
Hope someone can help!
How to code either or function in Empty4?
-
dsugums
- Trader
- Posts: 117
- Joined: Mon Jan 30, 2012 9:57 pm
-
dsugums
- Trader
- Posts: 117
- Joined: Mon Jan 30, 2012 9:57 pm
Re: How to code either or function in Empty4?
I think I got it!
if (A < 1 || B > 5)
Hope this is right
if (A < 1 || B > 5)
Hope this is right
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Re: How to code either or function in Empty4?
It is.dsugums wrote:I think I got it!
if (A < 1 || B > 5)
Hope this is right
Great to see you trying to get involved with this stuff.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.

