Re: [Quantproject-developers] Re: [Quantproject-developers] QuantProject/b7_Scripts/TickerSelectio
Brought to you by:
glauco_1
|
From: marco\.milletti\@l <mar...@li...> - 2005-08-29 07:54:57
|
>>+ ConstantsProvider.SeedForRandomGenerator++;
> Aaaarrrggghh=
h!!! Cambiare il valore di una costante... non >era una di
> quelle cos=
e che, agli esami, facesse prendere un bel voto :-)
Be', ti =E8 piaciu=
to lo scherzetto? :-)
Meno male che non ho mai fatto esami d'informati=
ca ...
Cmq, dopo 15 mesi di EI (Esercito Italiano - PA per antonomasia) =
e quasi 9 anni (diconsi "nove", puttana la miseria), pensavo di molto ma =
molto peggio ...
>Lo so che probabilmente non ci sono effetti collater=
ali, ma >se non ti
> complica troppo la vita usare una variabile d'appo=
ggio, >quando hai tempo
> vedi se si puo' lasciare la costante... costa=
nte ;-)
Certo, lo faccio immediatamente. Al prossimo commit sistemo.=0D
=
Piccola osservazione: io ho cannato (osservo che pestare un bel merdone=
dovrebbe portare fortuna ...), ma =E8 sbagliato anche che una "costante"=
venga rappresentata da una "variabile" ...
> Scherzi a parte, nei v=
ecchi linguaggi, il senso delle costanti era solo
> che quello dare un =
un nome mnemonico ad un valore che non cambiava mai e
> di avere un uni=
co punto del codice in cui andare a cambiare il valore. Le
> costanti e=
rano addirittura preprocessate rispetto alla compilazione,
> cioe', al =
compilatore veniva passato il testo con i valori gia'
> sositutiti, qui=
ndi uno statement tipo
>
> costantName++
>
> al compilatore sarebbe, =
ad esempio, arrivato cosi'
>
> 13++
>
>
>> this.orders.Clear=
();
>> //this.oneHourAfterMarketCloseEventHandler_updatePrices()=
;
>> if(this.numDaysElapsedSinceLastOptimization =3D=3D
>>! =
this.numDaysBetweenEachOptimization - 1)
>> {
>> this.set=
Tickers(endOfDayTimingEventArgs.EndOfDayDateTime.DateTime,
>> false);=0D
=
>>
>>Index: EndOfDayTimerHandler.cs
>>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D
>>RCS file:
>>/cvsroot/quantproject/QuantProject/b7=
_Scripts/TickerSelectionTesting/EndOfDayTimerHandler.cs,v
>>retrieving r=
evision 1.15
>>retrieving revision 1.16
>>diff -C2 -d -r1.15 -r1.16
>>=
*** EndOfDayTimerHandler.cs 1 Aug 2005 22:31:48 -0000 1.15
>>-=
-- EndOfDayTimerHandler.cs 28 Aug 2005 10:05:03 -0000 1.16
>>**=
*************
>>*** 212,216 ****
>> this.bestGenomes.Add(new Ge=
nomeRepresentation(genome,
>>
>> firstOptimizationDate,
>>! secondOpt=
imizationDate));
>> }
>>
>>--- 212,217 ----
>> this.bes=
tGenomes.Add(new GenomeRepresentation(genome,
>>
>> firstOptimizationD=
ate,
>>!
>>secondOptimizationDate,
>>! =
genome.Generation));
>> }
>>
>>
>>Index: =
EndOfDayTimerHandlerCTC.cs
>>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
>>RCS file:
>>/cvsroot/quantproject/QuantProject/b7_Scripts/Tic=
kerSelectionTesting/EndOfDayTimerHandlerCTC.cs,v
>>retrieving revision 1=
.12
>>retrieving revision 1.13
>>diff -C2 -d -r1.12 -r1.13
>>*** EndOf=
DayTimerHandlerCTC.cs 1 Aug 2005 22:31:48 -0000 1.12
>>--- EndOfD=
ayTimerHandlerCTC.cs 28 Aug 2005 10:05:03 -0000 1.13
>>***********=
****
>>*** 193,197 ****
>> Object sender , EndOfDayTimingEventA=
rgs endOfDayTimingEventArgs )
>> {
>>!
>> if(this.accoun=
t.Portfolio.Count =3D=3D 0 )
>> {
>>--- 193,197 ----
>> =
Object sender , EndOfDayTimingEventArgs endOfDayTimingEventArgs )
>> =
{
>>! ConstantsProvider.SeedForRandomGenerator++;
>> =
if(this.account.Portfolio.Count =3D=3D 0 )
>> {
>>
>>
>>
>>=
-------------------------------------------------------
>>SF.Net email i=
s Sponsored by the Better Software Conference & EXPO
>>September 19-22, =
2005 * San Francisco, CA * Development Lifecycle
>>Practices
>>Agile &=
Plan-Driven Development * Managing Projects & Teams * Testing & QA
>>Se=
curity * Process Improvement & Measurement * http://www.sqe.com/bsce5sf=0D
=
>>_______________________________________________
>>Quantproject-develop=
ers mailing list
>>Qua...@li...
>>http=
s://lists.sourceforge.net/lists/listinfo/quantproject-developers
>
>=0D
=
>
> -------------------------------------------------------
> SF.Net em=
ail is Sponsored by the Better Software Conference & EXPO
> September 19=
-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Ag=
ile & Plan-Driven Development * Managing Projects & Teams * Testing & QA=0D
=
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5=
sf
> _______________________________________________
> Quantproject-dev=
elopers mailing list
> Qua...@li...
> =
https://lists.sourceforge.net/lists/listinfo/quantproject-developers
=0D
=
=0A=0A=0A=0A____________________________________________________________=0A=
Libero Flat, sempre a 4 Mega a 19,95 euro al mese! =0AAbbonati subito su =
http://www.libero.it=0A=0A
|