SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Gary Lyben who wrote (1697)9/3/1997 10:55:00 AM
From: Mike Artobello   of 11149
 
Gary, does R2 have an IF function?

I'd like the ability to set the value of a variable based on the value of an expression.

value = IF(expression,true,false)

For example:

Set value to 1 if today's close is greater than yesterday's close, else set value to 0

value = IF(Close(0) > Close(-1),1,0)

This could be very useful.

Regards,

Mike
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext