PureBytes Links
Trading Reference Links
|
Hi give this a try i'm sure others will finda better
way but i give a sell arrow 5 periods after buy
Buy=EMA (Close, 13) < EMA (Close,21);//what ever
you buy is
periods = -5;
wait= Ref(Buy,periods);
BuyPrice = ValueWhen( Buy, wait);
Sell = wait;
Regards David
----- Original Message -----
From: <<A
href=""><FONT face=Arial
size=2>aksjer46@xxxx>
To: <<A
href=""><FONT face=Arial
size=2>amibroker@xxxxxxxxxxxxxxx<FONT face=Arial
size=2>>
Sent: Saturday, November 17, 2001 10:17
PM
Subject: [amibroker] explore: sell after x
days
<FONT face=Arial
size=2>> Hi all, just got Amibroker and I'm playing around with
backtesting.> There's probably a simple answer to this, but I can't find
out how to > sell after 5 days. Have tried this: > >
sell=iif(hold(0,5),0,1);> > but it doesn't work. I have also
changed sell delay to 5 in Settings > but the stocks are sold the same
day they get bought.> > > > > >
> ------------------------ Yahoo! Groups Sponsor
---------------------~-->> Universal Inkjet Refill Kit $29.95>
Refill any ink cartridge for less!> Includes black and color
ink.> <A
href=""><FONT face=Arial
size=2>http://us.click.yahoo.com/r9F0cB/MkNDAA/ySSFAA/dkFolB/TM<FONT
face=Arial size=2>>
---------------------------------------------------------------------~->>
> > > Your use of Yahoo! Groups is subject to
<FONT face=Arial
size=2>http://docs.yahoo.com/info/terms/
> > >
|