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

A different type of Equity analysis



PureBytes Links

Trading Reference Links

While discussions centered around the analysis of composite equities I don't
recall anybody talking about analyzing the equity distribution for
individual stocks for a certain category. As a first step in doing this you
can save the individual equities in a composite array for later recall and
analysis. Or to display a bar chart of the individual equities (See attached
example ran on the N100 stocks). You can use this Scan to save the
"individual" equities in a composite:

// =======Scan to save Equities in array===========
//
// place your Buy/Sell rules here...
//
V1 = LastValue(Equity());
Addr = LastValue(Cum(1))-Status("StockNum");
V2 = IIf(Addr == Cum(1),V1,0);
AddToComposite(V2,"_Equity","X",3);

To display a barchart for this data use this indicator:

// =====Indicator to display Equities============
Plot(Foreign("_Equity","Open"),"",4,2+4);
Title = " Equity Bar Chart for N100 stocks ";
GraphXSpace = 5;

Note that this chart is located at the most recent part of the X-axis. Since
it covers only 100 bars (for the N100) you may have to zoom in to see the
chart. Also note that equities are displayed in order of their StockNum;
StockNum "1" is in the most recent bar.

Perhaps somebody with stats expertise can suggest a way to calculate the
Mean, StDev, etc. for the equities. This could be used as a measure of
robustness.

Best regards,
Herman.



Attachment:
jpg00108.jpg

Attachment: Description: "Description: JPEG image"