PureBytes Links
Trading Reference Links
|
HI,
I intend to cover my short on the 7th bar after my
short or if the close today higher than yesterday high. My AFL is as
below
short = close<ema(close,50);
Cover=BarsSince<FONT
color=#000000 size=1>(Short)<FONT color=#000000 face="Courier New"
size=1>==7
OR Close>Ref<FONT
color=#000000 size=1>(High,-<FONT color=#ff00ff
size=1>1);
However, when I check the result, seems only the
second condition close>ref(high,-1) will be execute, the first condition
barssince not taking effect. Any help is appreciated.
Thanks
KK
Yahoo! Groups Sponsor
ADVERTISEMENT
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
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|