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

[amibroker] Re: Comments on Van Tharp courses please



PureBytes Links

Trading Reference Links


Group
 
I want to write a condition that says:
 
1. choose the highest high in the last 20 periods.
2. if the 20 period high is less than 30 period hi then use the 30 period hi.
 
I want to look for a high as far back as the last 100 odd bars.
 
The condition I wrote is as follows:
 
IIf(HHV(H,20)<HHV(H,30),HHV(H,30),IIf(HHV(H,30<FONT face="Courier New"
 color=#000000>)<HHV(H,40),HHV(H,40),IIf(HHV(H,40)<HHV(H,50),HHV<FONT face="Courier
 New" color=#000000>(H,50),IIf(HHV(H,50)<HHV(H,60),HHV(H,60),HHV(H,20<FONT
 face="Courier New" color=#000000>)))));
 
This is obviously not yielding the desired results hence the request for help. Will some kind soul tell me where I am tripping? Or is this approach to solving the problem not the correct one.
 
Thanks in advance for any help.
 
Rakesh
 
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.