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

Re: [amibroker] Help with some Coding



PureBytes Links

Trading Reference Links

I am probably missing something in your logical problem definition, Chorlton. When I am taking the highest high over a certain period, how can I get a high during this period that will be higher ?
 
Regards, Ton.
 
 
----- Original Message -----
Sent: Thursday, November 08, 2007 1:01 PM
Subject: [amibroker] Help with some Coding

Hello All,

I want to code the following conditions and would welcome some help.
I've included my attempt of the code but would appreciate comments as
to whether this is an accurate translation into AB code.

Conditions:

1: Calculate the number of Bars (x) since the last time High crossed
above the HHV of the High over the last 30 periods.
2. The value of RSI(14) x periods ago should be more than the current
value of RSI(14)

eg. If the output from condition 1 was say 8, then condition 2 would
be RSI(14)>Ref(RSI(14),-8)

My attempt at the Code:

x:=BarsSince(Cross(H,Ref(HHV(H,30),-1)));
RSI(14)> Ref(RSI(14),x*-1)

Would this work?

Thanks in advance,

Chorlton

__._,_.___

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

__,_._,___