Why Camarilla Pivots not updated for the next day onwards?

 

Dear Forum Members

I have created a class to calculate Camarilla Pivots. It does calculate for the first day of running it, but then it same first days values, when Get_Pivot() method is called on IsNewDay() in the EA .

Please help me locate the problem in the code.

EO 0 13:21:53.875 EACi_CamarillaPivot (US30,M5) 2021.05.03 01:00:00   Camarilla Pivot New 33947.7

HK 0 13:22:18.462 EACi_CamarillaPivot (US30,M5) 2021.05.04 00:01:00   Camarilla Pivot New 33947.7

KH 0 13:22:18.547 EACi_CamarillaPivot (US30,M5) 2021.05.05 00:01:00   Camarilla Pivot New 33947.7

KD 0 13:22:18.597 EACi_CamarillaPivot (US30,M5) 2021.05.06 00:01:00   Camarilla Pivot New 33947.7

CQ 0 13:22:18.679 EACi_CamarillaPivot (US30,M5) 2021.05.07 00:01:00   Camarilla Pivot New 33947.7

OM 0 13:22:18.756 EACi_CamarillaPivot (US30,M5) 2021.05.10 01:00:00   Camarilla Pivot New 33947.7

OI 0 13:22:18.816 EACi_CamarillaPivot (US30,M5) 2021.05.11 00:01:00   Camarilla Pivot New 33947.7

CF 0 13:22:18.952 EACi_CamarillaPivot (US30,M5) 2021.05.12 00:01:00   Camarilla Pivot New 33947.7

FR 0 13:22:19.070 EACi_CamarillaPivot (US30,M5) 2021.05.13 00:01:00   Camarilla Pivot New 33947.7

NN 0 13:22:19.187 EACi_CamarillaPivot (US30,M5) 2021.05.14 00:01:00   Camarilla Pivot New 33947.7

FK 0 13:22:19.249 EACi_CamarillaPivot (US30,M5) 2021.05.17 01:00:00   Camarilla Pivot New 33947.7

PG 0 13:22:19.347 EACi_CamarillaPivot (US30,M5) 2021.05.18 00:01:00   Camarilla Pivot New 33947.7

ID 0 13:22:19.426 EACi_CamarillaPivot (US30,M5) 2021.05.19 00:01:00   Camarilla Pivot New 33947.7

RP 0 13:22:19.533 EACi_CamarillaPivot (US30,M5) 2021.05.20 00:01:00   Camarilla Pivot New 33947.7

DL 0 13:22:19.617 EACi_CamarillaPivot (US30,M5) 2021.05.21 00:01:00   Camarilla Pivot New 33947.7


 

No problem on my side.

2021.06.12 18:20:34.609    Core 01    2021.05.03 01:00:00   Camarilla Pivot New 33915.67
2021.06.12 18:20:34.609    Core 01    2021.05.04 01:00:00   Camarilla Pivot New 34085.33
2021.06.12 18:20:34.609    Core 01    2021.05.05 01:00:00   Camarilla Pivot New 34016.17
2021.06.12 18:20:34.609    Core 01    2021.05.06 01:00:00   Camarilla Pivot New 34197.17
2021.06.12 18:20:34.609    Core 01    2021.05.07 01:00:00   Camarilla Pivot New 34433.33
2021.06.12 18:20:34.609    Core 01    2021.05.10 01:00:00   Camarilla Pivot New 34694.17
2021.06.12 18:20:34.609    Core 01    2021.05.11 01:00:00   Camarilla Pivot New 34842.33
2021.06.12 18:20:34.609    Core 01    2021.05.12 01:00:00   Camarilla Pivot New 34373.33
2021.06.12 18:20:34.609    Core 01    2021.05.13 01:00:00   Camarilla Pivot New 33814.17
2021.06.12 18:20:34.609    Core 01    2021.05.14 01:00:00   Camarilla Pivot New 33837.83
2021.06.12 18:20:34.609    Core 01    2021.05.17 01:00:00   Camarilla Pivot New 34293.17
2021.06.12 18:20:34.609    Core 01    2021.05.18 01:00:00   Camarilla Pivot New 34328.33
2021.06.12 18:20:34.609    Core 01    2021.05.19 01:00:00   Camarilla Pivot New 34152.83
2021.06.12 18:20:34.609    Core 01    2021.05.20 01:00:00   Camarilla Pivot New 33797.0

 
Alain Verleyen:

No problem on my side.

Thanks Alain

yeh I have noticed in June it does update data. Is weekend can cause this problem on Tester ?

Still getting the same problem !!!

2021.06.13 09:49:45.669 Core 1 US30: symbol to be synchronized

2021.06.13 09:49:45.669 Core 1 US30: symbol synchronized, 3720 bytes of symbol info received
2021.06.13 09:49:45.669 Core 1 US30: load 23 bytes of history data to synchronize in 0:00:00.003
2021.06.13 09:49:45.669 Core 1 US30: history synchronized from 2017.08.28 to 2021.06.11
2021.06.13 09:49:45.669 Core 1 US30,M5: history cache allocated for 99842 bars and contains 97579 bars from 2020.01.02 01:00 to 2021.05.03 23:55
2021.06.13 09:49:45.669 Core 1 US30,M5: history begins from 2020.01.02 01:00
2021.06.13 09:49:45.669 Core 1 US30,M5 (Pepperstone-Demo): every tick generating
2021.06.13 09:49:45.669 Core 1 US30,M5: testing of Experts\AKTAdvisor\Testing EAs\EACi_CamarillaPivot.ex5 from 2021.05.04 00:00 to 2021.05.15 00:00 started
2021.06.13 09:49:45.669 Core 1 US30,Daily: history cache allocated for 353 bars and contains 345 bars from 2020.01.02 00:00 to 2021.05.03 00:00
2021.06.13 09:49:45.669 Core 1 US30,Daily: history begins from 2020.01.02 00:00
2021.06.13 09:49:45.669 Core 1 2021.05.04 00:01:00   Camarilla Pivot New 33914.3
2021.06.13 09:49:45.669 Core 1 2021.05.05 00:01:00   Camarilla Pivot New 33914.3
2021.06.13 09:49:45.669 Core 1 2021.05.06 00:01:00   Camarilla Pivot New 33914.3
2021.06.13 09:49:45.669 Core 1 2021.05.07 00:01:00   Camarilla Pivot New 33914.3
2021.06.13 09:49:45.669 Core 1 2021.05.10 01:00:00   Camarilla Pivot New 33914.3
2021.06.13 09:49:45.669 Core 1 2021.05.11 00:01:00   Camarilla Pivot New 33914.3
2021.06.13 09:49:45.669 Core 1 2021.05.12 00:01:00   Camarilla Pivot New 33914.3
2021.06.13 09:49:45.669 Core 1 2021.05.13 00:01:00   Camarilla Pivot New 33914.3
2021.06.13 09:49:45.669 Core 1 2021.05.14 00:01:00   Camarilla Pivot New 33914.3