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

[amibroker] Combined Equity Curve



PureBytes Links

Trading Reference Links




If I want to create 
a Combined Equity curve over the entire database or symbols,
do I need to enter 
every Symbol in the formula or there an easier way?
<FONT face=Arial 
size=2> 

<FONT 
color=#ff0000>What am I doing wrong here?
and 
what is the correct usage?
Will 
AddToComposite add an addtional Symbol to a 
watchlist that I will need to go and delete later 
too?
What 
is the best way to do this?Mr Valley
<SPAN 
class=550470207-12072003> 

B1 = Buy;  //<SPAN 
class=144302620-12072003> The Buy / Sell Formula Code <SPAN 
class=144302620-12072003>Would be Above
S1 = Sell; 
//Buy1 = Buy;
//Sell1 = Sell;
Short=Sell; 
Cover=Buy; 
Buy=ExRem<FONT 
size=1>(Buy,Sell); Sell=<FONT color=#0000ff 
size=1>ExRem(Sell,Buy); 
Short=ExRem<FONT 
size=1>(Short,Cover); Cover=<FONT color=#0000ff 
size=1>ExRem(Cover,Short); <FONT 
color=#0000ff size=1>
AddToComposite( <FONT color=#0000ff 
size=1>Equity(), <FONT color=#ff00ff 
size=1>"~CompositeEquity", <FONT 
color=#ff00ff size=1>"C" 
);
AddToComposite(C><FONT 
color=#0000ff size=1>Ref<FONT color=#000000 
size=1>(C,-1<FONT color=#000000 
size=1>),"~AAPL"<FONT color=#000000 
size=1>,"C"<FONT 
color=#000000>);
AddToComposite(C><FONT 
color=#0000ff size=1>Ref<FONT color=#000000 
size=1>(C,-1<FONT color=#000000 
size=1>),"~BGEN"<FONT color=#000000 
size=1>,"C"<FONT 
color=#000000>);
AddToComposite(C><FONT 
color=#0000ff size=1>Ref<FONT color=#000000 
size=1>(C,-1<FONT color=#000000 
size=1>),"~CSCO"<FONT color=#000000 
size=1>,"C"<FONT 
color=#000000>);
AddToComposite(C><FONT 
color=#0000ff size=1>Ref<FONT color=#000000 
size=1>(C,-1<FONT color=#000000 
size=1>),"~<FONT face=Tahoma 
color=#ff00ff size=1>DELL"<FONT 
color=#000000 size=1>,"C"<FONT 
size=1>);
AddToComposite(C><FONT 
color=#0000ff size=1>Ref<FONT color=#000000 
size=1>(C,-1<FONT color=#000000 
size=1>),"~<FONT face=Tahoma 
color=#ff00ff size=1>MSFT"<FONT 
color=#000000 size=1>,"C"<FONT 
size=1>);
AddToComposite(C><FONT 
color=#0000ff size=1>Ref<FONT color=#000000 
size=1>(C,-1<FONT color=#000000 
size=1>),"~<FONT face=Tahoma 
color=#ff00ff size=1>QQQ"<FONT 
color=#000000 size=1>,"C"<FONT 
size=1>);
AddToComposite(C><FONT 
color=#0000ff size=1>Ref<FONT color=#000000 
size=1>(C,-1<FONT color=#000000 
size=1>),"~<FONT face=Tahoma 
color=#ff00ff size=1>YHOO"<FONT 
color=#000000 size=1>,"C"<FONT 
size=1>);
E0 = Foreign<FONT 
size=1>("~CompositeEquity"<FONT 
size=1>, "C" );
A0=Foreign(<FONT 
color=#ff00ff size=1>"~AAPL",<FONT color=#ff00ff 
size=1>"C");
A1=Foreign(<FONT 
color=#ff00ff size=1>"~BGEN",<FONT color=#ff00ff 
size=1>"C");
A2=Foreign(<FONT 
color=#ff00ff size=1>"~CSCO",<FONT color=#ff00ff 
size=1>"C");
A3=<FONT 
color=#0000ff size=1>Foreign(<FONT color=#ff00ff 
size=1>"~DELL<FONT 
color=#ff00ff size=1>",<FONT color=#ff00ff 
size=1>"C");
A4=<FONT 
color=#0000ff size=1>Foreign(<FONT color=#ff00ff 
size=1>"~MSFT<FONT 
color=#ff00ff size=1>",<FONT color=#ff00ff 
size=1>"C");
A5=<FONT 
color=#0000ff size=1>Foreign(<FONT color=#ff00ff 
size=1>"~QQQ<FONT 
color=#ff00ff size=1>",<FONT color=#ff00ff 
size=1>"C");
A6=<FONT 
color=#0000ff size=1>Foreign(<FONT color=#ff00ff 
size=1>"~YHOO<FONT 
color=#ff00ff size=1>",<FONT color=#ff00ff 
size=1>"C");
E00=E0/(A0+A1+A2+A3+A4+A5+A6<FONT 
size=1>);
Graph0=IIf<FONT 
size=1>(E00>0<FONT 
size=1>,E00,10000);
Graph0BarColor=7<FONT 
size=1>;Graph0Style=8<FONT 
size=1>;
Graph1=Equity<FONT 
size=1>();Graph1BarColor=4<FONT 
size=1>;






Yahoo! Groups Sponsor


  ADVERTISEMENT 









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 the Yahoo! Terms of Service.