Update of /cvsroot/quantproject/QuantProject/b7_Scripts/TechnicalAnalysisTesting/Oscillators/FixedLevelOscillators/PortfolioValueOscillator
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv21691
Modified Files:
RunPVO.cs EndOfDayTimerHandlerPVO.cs
Log Message:
Updated PVO script (minor changes)
Index: RunPVO.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/TechnicalAnalysisTesting/Oscillators/FixedLevelOscillators/PortfolioValueOscillator/RunPVO.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** RunPVO.cs 19 Jan 2007 16:47:55 -0000 1.3
--- RunPVO.cs 27 Feb 2007 22:19:51 -0000 1.4
***************
*** 129,133 ****
protected override void run_addEventHandlers()
{
!
this.endOfDayTimer.MarketClose +=
new MarketCloseEventHandler(
--- 129,136 ----
protected override void run_addEventHandlers()
{
! this.endOfDayTimer.MarketOpen +=
! new MarketOpenEventHandler(
! this.endOfDayTimerHandler.MarketOpenEventHandler);
!
this.endOfDayTimer.MarketClose +=
new MarketCloseEventHandler(
Index: EndOfDayTimerHandlerPVO.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/TechnicalAnalysisTesting/Oscillators/FixedLevelOscillators/PortfolioValueOscillator/EndOfDayTimerHandlerPVO.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** EndOfDayTimerHandlerPVO.cs 3 Jan 2007 23:02:58 -0000 1.3
--- EndOfDayTimerHandlerPVO.cs 27 Feb 2007 22:19:51 -0000 1.4
***************
*** 214,227 ****
else if (currentChosenTickersValue <= 1.0 - currentOversoldThreshold)
{
! try
! {
! base.openPositions(this.chosenTickers);
! this.portfolioHasBeenOverbought = false;
! this.portfolioHasBeenOversold = true;
! }
! catch(Exception ex)
! {
! ex = ex;
! }
}
}
--- 214,220 ----
else if (currentChosenTickersValue <= 1.0 - currentOversoldThreshold)
{
! base.openPositions(this.chosenTickers);
! this.portfolioHasBeenOverbought = false;
! this.portfolioHasBeenOversold = true;
}
}
|