[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: If Then formula



PureBytes Links

Trading Reference Links

It's always good to see how effective the simple solutions could be!!
Thanks a lot!





TKruzel@xxxxxxxxxxxxxxxx on 09/17/98 04:04:48 PM

Please respond to metastock@xxxxxxxxxxxxx

To:   metastock@xxxxxxxxxxxxx
cc:    (bcc: Mark Jonker/Everest)
Subject:  Re: If Then formula




m.jonker@xxxxxxxxxx wrote:
>
> Does anybody know how to assign a value to a variable in an if..then
>       statement? What I'd like looks something like this:
>
> if(condition, Trend:=1, Trend:=-1)
>
> Thanks, Mark.
Mark,
Assuming you are using MetaStock 6.5:
Trend:=if(condition, 1, -1);
You will find examples of these statements in the users manual and
online
help.
Regards,
Tim