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

[amibroker] ExRemSpan & Equity(1) Question



PureBytes Links

Trading Reference Links

Hello,

I was experimenting with the above two functions.  It is my
understanding that both are supposed to remove redundant signals, but
I got some unexpected results.  Here are three examples with simple
code.  In each case I tested the last 100 bars of a stock, entering on
the open with a 1 day delay and exiting on the open with a 1 day
delay.  Can anyone explain what is happening?

Thanks,
Mark

Example 1.
Buy = C>Ref(C,-1);
//Buy = ExRemSpan( Buy, 5 );
Sell = Ref( Buy, -5 );  
e = Equity( 1 );

I got a mixture of 1, 2, 3 and 5 day exits.

Example 2.
Buy = C>Ref(C,-1);
Buy = ExRemSpan( Buy, 5 );
Sell = Ref( Buy, -5 );  
//e = Equity( 1 );

Always 5 day exits as expected.

Example 3.
Buy = C>Ref(C,-1);
Buy = ExRemSpan( Buy, 5 );
Sell = Ref( Buy, -5 );  
e = Equity( 1 );

5 day exits except at end where I have an open long 6 days old.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/CNxFAA/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/