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

[amibroker] Re: Equity(1) help.



PureBytes Links

Trading Reference Links

OK,

It looks like I've solved it!

Simply added this to the scan...

BuyPrice=ref(O,1);

Cheers, Glenn

--- In amibroker@xxxxxxxxxxxxxxx, "Glenn" <glennokb@xxxx> wrote:
> Hi, 
> 
> I have read the latest post in the ALF language help 
> http://www.amibroker.com/guide/afl/afl_view.php?name=EQUITY 
that 
> Equity(1) can't be used with SetTradeDelays other then in backtesting. 
> 
> I would like to use Equity(1) in my "Scan" as I use Applystop for a 
profit 
> and initial stop therefore I really need to use Equity(1). 
> 
> The problem I have is I would like to use the open of the following day 
> (the day I actually buy the stock) after the alert to calculate the 
> applystop exits. ie: not the day that the alert was triggered as Equity
(1) 
> does.
> 
> In a scan if I use ref(buy,-1) then the exit will be calculated as I would 
> like but the buy is also delayed...no good! 
> 
> I have tried a few things in my scan formula but I can't get the buy 
alert 
> AND the sell alert correct (using the day after the buy alert for 
> calculating it) in the Scan results. 
> 
> Is there any way to do this? Thanks. 
> 
> Cheers, Glenn


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/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/