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

[amibroker] Re: Fred's Equity Line - Problem



PureBytes Links

Trading Reference Links

Tomasz,

Here's a trivial backtest I've been trying. Don't know how I would 
get the buy/sell/short/cover rules at the very top.

Should this be sufficient for the Equity New line to work?

x = ROC(MA(Foreign("^DJI","C"),50),3);
y = ROC(MA(Foreign("^XAU","C"),50),3);
Buy=Cross(x,y);
Sell=Cross(y,x);
Short=Cross(y,x);
Cover=Cross(x,y);

Steve

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> Steve,
> 
> The error message is caused by undefined buy/sell/short/cover
> rules. You have to have them at the very top of the formula.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: <steve_almond@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Wednesday, February 26, 2003 4:00 PM
> Subject: [amibroker] Fred's Equity Line - Problem
> 
> 
> > When I install Equity Line.txt from the file section, and try to 
> > apply it, I get the following error message:
> > 
> > 
> > Unknown identifier at line 30, column 33:
> > 
> > 
> > FirstBar = ValueWhen(ExRem(Buy OR
> > --------------------------------^
> > 
> > 
> > Can anyone suggest a cure?
> > 
> > Thanks,
> > 
> > Steve
> > 
> > 
> > 
> > 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 
> > 
> > Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/ 
> > 
> > 
> >


------------------------ Yahoo! Groups Sponsor ---------------------~-->
New Yahoo! Mail Plus. More flexibility. More control. More power.
Get POP access, more storage, more filters, and more.
http://us.click.yahoo.com/Hcb0iA/P.iFAA/46VHAA/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/