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

RE: [amibroker] Stupid question



PureBytes Links

Trading Reference Links

Louis:
 
Did yo mean something like this?
 
xxx   = some value or other array
Var1 = Ref(C,-1);
Var2 = Var1 * 0.99 < xxx;
 
Var2 will be = to 1 if the condition is true and will be = to 0 if it is false.
 
Ken


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Louis Préfontaine
Sent: Saturday, July 05, 2008 10:16 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Stupid question

Hi,

For some reason I can't do that well.

I'd like to be able to make a calculation referring to the close before yesterday.

I tried to set a variable: e.g.  var = ref (c,-1)    and then to make a reference to it:   var*0.99< xxx    but it does not work...

Anyone know how to do that?

Thanks,

Louis
__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___