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

RE: [amibroker] Easy question again



PureBytes Links

Trading Reference Links

Hello,

You can do this with the following code:

Period = 20;
LowestClose= LLV(C, Period);
RSIatLowestClose = ValueWhen(LowestClose, RSI());

CurCloseToPastClose = C / LowestClose;
CurRSI_To_RSIatLowestClose = RSI() / RSIatLowestClose;


Thomas
www.PatternExplorer.com


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Louis Préfontaine
Sent: Monday, July 21, 2008 11:02 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Easy question again

Hi,

Another easy question here.  (I'm still juggling with the difficult things
and thanks again to the people who helped me; but why not add this little
twist while I'm here).

I'd like to use to know how to use valuewhen to make it possible to know
what was the price at a particular time.

I had a look in the manual to many files which unfortunately had zigzag
functions in them.  This is not what I'm looking for.  

What I'd like to do is to compare the price right now to the LLV C of the
last X periods and to get the value of RSI of that LLV C  at that time to
compare it with the RSI right now.

Is this possible, without Zig function?

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
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/