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

[amibroker] Sell price question



PureBytes Links

Trading Reference Links

Hi All.

Hoping for some help with controlling the price a stock is sold at in the
back tester. I'm doing all my sell signals in javascript (due to some fairly
complex stop rules), and also want to determine the sell price that appears
in the backtest - typically the price at which it crosses a particular
indicator. So what I'm doing is something like:

for(i=0; i<aClose.length; i++)
{
  aSellPrice[i] = ... // my sell price rules
}
AFL("sellprice") = aSellPrice;


But what I see in the backtester as "exit price" seems to be whatever is in
the automatic analysis settings (eg. open, close, whatever), not the price I
have set in my javascript.

Can anyone help me here? Is what I want to do possible? Seems like it
shouldn't be hard.

Cheers,

Mark


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