[Quantproject-developers] QuantProject/b7_Scripts/TickerSelectionTesting EndOfDayTimerHandler.cs,
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2007-04-09 18:15:46
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/TickerSelectionTesting
In directory sc8-pr-cvs16:/tmp/cvs-serv10226/b7_Scripts/TickerSelectionTesting
Modified Files:
EndOfDayTimerHandler.cs
Log Message:
Added an overloaded version of openPositions method
Index: EndOfDayTimerHandler.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/TickerSelectionTesting/EndOfDayTimerHandler.cs,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** EndOfDayTimerHandler.cs 17 Sep 2006 21:44:04 -0000 1.23
--- EndOfDayTimerHandler.cs 9 Apr 2007 18:15:40 -0000 1.24
***************
*** 180,184 ****
this.chosenTickersPortfolioWeights[i]=1.0/this.chosenTickers.Length;
}
!
protected virtual void addOrderForTicker(string[] tickers,
int tickerPosition )
--- 180,184 ----
this.chosenTickersPortfolioWeights[i]=1.0/this.chosenTickers.Length;
}
!
protected virtual void addOrderForTicker(string[] tickers,
int tickerPosition )
***************
*** 227,230 ****
--- 227,231 ----
protected virtual void addChosenTickersToOrderList(string[] tickers)
{
+
for( int i = 0; i<tickers.Length; i++)
{
***************
*** 256,259 ****
--- 257,266 ----
}
+ protected virtual void openPositions(string[] tickers, double[] tickersWeights)
+ {
+ this.chosenTickersPortfolioWeights = tickersWeights;
+ this.openPositions(tickers);
+ }
+
protected virtual void openPositions(string[] tickers)
{
|