How to code either or function in Empty4?

Post Reply
dsugums
Trader
Posts: 117
Joined: Mon Jan 30, 2012 9:57 pm

How to code either or function in Empty4?

Post by dsugums »

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!
Image
Image
dsugums
Trader
Posts: 117
Joined: Mon Jan 30, 2012 9:57 pm

Re: How to code either or function in Empty4?

Post by dsugums »

I think I got it!

if (A < 1 || B > 5)

Hope this is right
Image
Image
User avatar
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?

Post by SteveHopwood »

dsugums wrote:I think I got it!

if (A < 1 || B > 5)

Hope this is right
It is.

Great to see you trying to get involved with this stuff.

:D
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.
Post Reply

Return to “Coders Hangout”