Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/13/2005(UTC) Posts: 715 Location: Midwest, USA
Was thanked: 1 time(s) in 1 post(s)
|
organon1973 wrote:Thanks, John. A question: is there a way of telling the program to do nothing, if a condition is not met? Sure -- just add another condition, using AND. So, your code changes from: Code:
If(Mov(C,50,E)>Mov(C,100,E),Cross(Mov(CLOSE, 2,E),Mov(CLOSE,5,E)),-do
nothing-)
to Code:
Mov(C,50,E)>Mov(C,100,E)
AND Cross(Mov(CLOSE,2,E),Mov(CLOSE,5,E));
FUTURE NOTE: When posting actual code, use the "tags" which you'll find below. It puts the code in a special box -- otherwise, it can get messed up by the forum software.
|