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

[amibroker] Re: Profit Test not Working Correctly



PureBytes Links

Trading Reference Links

Anthony
 I want both CondA and CondB to be true but according to my chart 
plot of the ATR(14) and ATR(100) the program will buy regardless of 
the ART(14) being < the ATR(100) at least that is what my plot shows 
using the following to check the system
Plot(ATR(14),"ATR(14)",colorYellow);
Plot(ATR(100),"ATR(100)",colorOrange);
 So there is something wrong and it must be simple.
Thanks

--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> Ernie,
> 
> Not sure if I understand what you are asking...but...for you BUY to 
take
> place both condA and condB must be true...
> 
> If you want to BUY when either of the two is true, then maybe you 
should use
> OR
> 
> Buy=CondA OR CondB;
> 
> Anthony
> 
> 
> ----- Original Message ----- 
> From: "ewn87544" <ewn87544@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Wednesday, December 31, 2003 5:43 PM
> Subject: [amibroker] Profit Test not Working Correctly
> 
> 
> > Why doesn't the following buy only when CondA it doesn't BUY
> > only when the ATR(14) is less than ATR(100) the line appears
> > worthless.
> >
> > // VOLITILITY_BO_Pt
> >
> > CondA = ATR(14) < ATR(100);
> > CondB = C > Ref(C,-1) + (ATR(14)*.8);
> > CondC = C < Ref(C,-1) - (ATR(14)*.8);
> >
> > Buy = CondA AND CondB;
> > Buy = ExRemSpan( Buy,8);
> > Sell = Ref(Buy,-8);
> >
> > Short = CondC;
> > Short = ExRemSpan(Short,5);
> > Cover = Ref(Short,-5);
> > Equity(1);
> >
> > THANKS
> > Ernie
> >
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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:
> >  http://docs.yahoo.com/info/terms/
> >
> >
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003


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

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