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

[amibroker] Re: Connors' Anti Breakout Article (WAS: Need help)



PureBytes Links

Trading Reference Links

Hey, Yuki, donīt you want NewLows anymore ??
Because NewLow = L < LLV(L,10); never happened [and never will...]
Something else perhaps ??
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, Yuki Taga <yukitaga@xxxx> wrote:
> Hi kk2628,
> 
> Wednesday, December 10, 2003, 7:07:58 PM, you wrote:
> 
> k> However, I have been struggle with the AFL code to  find out the
> k> total points as described in the article (I do not expect the 
same
> k> figure but should be close enough). There are two ways I can do 
it
> k> (I assume), one is the easier way using AA backtester but I faced
> k> the challenge to fix the number of contract to 1. The number of
> k> contract get increase and decrease along the way and I have 
played
> k> with the Positionsize but no success.
> 
> Try this:
> 
> 1) Set up a variable: NumberOfContractsToBuy.  Set it up like this:
> NumberOfContractsToBuy = IIf(Name() == "Put your contract symbol 
here
> between the quotes", 1, 5); //This says if the symbol matches what
> you put between the quotes, buy 1, otherwise buy 5.
> 
> 2) Now you command PositionSize to = NumberOfContractsToBuy.
> 
> The only trick here is that PositionSize has to be set *after* you
> set Buyprice (lower in the code than the Buyprice statement).
> 
> For your low and high, I would not use cross.  Perhaps someone can
> make it work that way, but I would say this:
> 
> NewLow = L < LLV(L,10);
> 
> See how you get with this much.
> 
> Yuki
> 
> P.S. Notice how I have changed the subject line.  TJ maintains a
> database for this list, and it is searchable.  A subject line that
> actually describes what we are talking about is much more helpful 
for
> searching purposes than "Need help" which would apply to almost 
every
> message ever posted here, and gives us no real information about
> anything being discussed.


------------------------ 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/