PureBytes Links
Trading Reference Links
|
Your complex condition is equivalent to:
HHV( H, 60
);
If you think it over you will find why.
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Rakesh
Sahgal
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Thursday, March 11, 2004 2:25
PM
Subject: [amibroker] Help with IIF
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<FONT
face="Courier New" color=#000000>(<FONT face="Courier New"
color=#0000ff>HHV<FONT face="Courier New"
color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>20<FONT face="Courier New"
color=#000000>)<<FONT face="Courier New"
color=#0000ff>HHV<FONT face="Courier New"
color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>30),<FONT
face="Courier New" color=#0000ff>HHV<FONT face="Courier New"
color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>30),<FONT
face="Courier New" color=#0000ff>IIf<FONT face="Courier New"
color=#000000>(HHV<FONT
face="Courier New" color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>30<FONT face="Courier New"
color=#000000>)<<FONT face="Courier New"
color=#0000ff>HHV<FONT face="Courier New"
color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>40),<FONT
face="Courier New" color=#0000ff>HHV<FONT face="Courier New"
color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>40),<FONT
face="Courier New" color=#0000ff>IIf<FONT face="Courier New"
color=#000000>(HHV<FONT
face="Courier New" color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>40<FONT face="Courier New"
color=#000000>)<<FONT face="Courier New"
color=#0000ff>HHV<FONT face="Courier New"
color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>50),<FONT
face="Courier New" color=#0000ff>HHV<FONT face="Courier
New"
color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>50),<FONT
face="Courier New" color=#0000ff>IIf<FONT face="Courier New"
color=#000000>(HHV<FONT
face="Courier New" color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>50<FONT face="Courier New"
color=#000000>)<<FONT face="Courier New"
color=#0000ff>HHV<FONT face="Courier New"
color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>60),<FONT
face="Courier New" color=#0000ff>HHV<FONT face="Courier New"
color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>60),<FONT
face="Courier New" color=#0000ff>HHV<FONT face="Courier New"
color=#000000>(H,<FONT face="Courier New"
color=#ff00ff>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 - <A
href="">Find what you’re looking
for faster. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend
SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
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.
|