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

Re: [amibroker] simple stuff I still can't code easily



PureBytes Links

Trading Reference Links

Hi Graham,

Tuesday, October 21, 2003, 1:52:14 PM, you wrote:

G> Here is a simple way if your condition is 0 or 1

Yes, it's true or false.

G> Buy = xxx and Ref(HHV(mycond,10),-1)==0;
G> Or
G> Buy = yyy and Ref(Sum(mycond,10),-1)==0;

I'm afraid I get zero trades, and even worse, I don't understand the
code at all.

I hate to ask this, but could you explain what the purpose of '10'
and '-1' are?  I would understand that 10 might be the 10 previous
bars, but I don't understand how it is calling the 10 bars *prior* to
the current bar with this code.  And I don't understand the -1 at
all.  I should get trades.  There are cases where it is true and the
10 previous bars are false.  So there should be trades.

Yuki


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/