cycle 2. Stage 4, day 16:
During my shower this morning, I came up with an ambitious plan to finally go for the bull eye task. My need for money is becoming more than serious....
I did figure that if I could come up with the feature completed in order to MULTIPLY the system income, it was worth giving it a shot.
My plan got derailed. My system did exhibit 2 stuck trades for unexplained reasons. Investigating why has just drained the full day.
Even now, it is not 100% conclusive. I fixed a small bug... I did tweak some execution parameters but the issue is beyond my control... There is a limit about the floating points variables and sometimes they are going to introduce some weird round errors.
I have reproduced the problem to its simplest form:
double price = 0.00499999;
trunc(price*100000000.0)/100000000.0
= 0.00499998!
One issue remains a mystery. On the bright side, this whole experience did allow me to develop new testing methods...
I have instrumentalized further the code so that if the issue reoccur, I will be better equipped to understand it.
That being said, I really want to achieve the goal that I wanted to reach today. I think that I am going stay up and work until I am done.... It is feasible... I'll work on that as if there was no tomorrow. Tonight is the night.
Update:
I lost my mental focus and started to feel tired so I gave up the battle for tonight. However, I resolved the remaining mystery...
During my shower this morning, I came up with an ambitious plan to finally go for the bull eye task. My need for money is becoming more than serious....
I did figure that if I could come up with the feature completed in order to MULTIPLY the system income, it was worth giving it a shot.
My plan got derailed. My system did exhibit 2 stuck trades for unexplained reasons. Investigating why has just drained the full day.
Even now, it is not 100% conclusive. I fixed a small bug... I did tweak some execution parameters but the issue is beyond my control... There is a limit about the floating points variables and sometimes they are going to introduce some weird round errors.
I have reproduced the problem to its simplest form:
double price = 0.00499999;
trunc(price*100000000.0)/100000000.0
= 0.00499998!
One issue remains a mystery. On the bright side, this whole experience did allow me to develop new testing methods...
I have instrumentalized further the code so that if the issue reoccur, I will be better equipped to understand it.
That being said, I really want to achieve the goal that I wanted to reach today. I think that I am going stay up and work until I am done.... It is feasible... I'll work on that as if there was no tomorrow. Tonight is the night.
Update:
I lost my mental focus and started to feel tired so I gave up the battle for tonight. However, I resolved the remaining mystery...