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

[amibroker] Re: Greybeard Topic - Sorting and Ranking Arrays



PureBytes Links

Trading Reference Links

Experimenting with the code given above in this thread, I changed the
output to include the signal type, and altered the signal setup like
so (these are the altered lines only):

// experiment - produces 4 signals per symbol (types 1,2,3,4)
// Short signal (type3) has PosScore negative of Long signal (type1)
Buy=1; Sell=0; Short = 1; Cover = 0;
SetBacktestMode( backtestRegularRawMulti ); 

Line = sig.Symbol + "," + sig.Type + "," + sig.PosScore + "\n";


The output produced was like this:

Date : 1/9/2007
AA,3,-67.0314
AA,1,67.0314
...
AA,2,{EMPTY}
AA,4,{EMPTY}

etc. for other dates and symbols.

In the interest of understanding the custom backtest processing
better, I have several questions.

1. Sig.PosScore is reported with opposite sign for Buy and Short
signals, but there is only one formula in the code for PositionScore.
   What is the explanation for this behavior, and is it documented
anywhere?

2.  Since Sell and Cover are set to 0, why are Sell and Cover signal
lines present?

3.  Why does sig.PosScore come up empty for Sell and Cover signals?

Thanks to anyone who's got the experience with this to provide
comments ...







------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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