PureBytes Links
Trading Reference Links
|
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
|