I found an important bug comparing the logs SQX vs. AW.
1. The bug exists in all strategies that are using the On bar open entry I have checked. It is on the AW server, I'm using Alpaca API.
2. In the strategy and server log I see that the strategy should use yesterday's prices [0] but in reality, it is using day-before prices [1]. See screens.
3. The problem exists in any ticker I checked in the log.
4. The problem affects also the real trading of your sample Mean Reversion strategy.
5. I made detailed tests also of "On bar open" entries and there is no such problem, this mode is using proper prices in the cases I've tested.
I'm waiting for a quick reaction :)
Attachment LogAW.png added
Attachment Scr1.png added
Attachment Scr2.png added
Attachment AWLog.txt added
Attachment SQX_Log.txt added
Attachment image-0.png added
Unfortunately, the problem still exists after 27.02.
1. Open [0] prices are working OK after your fix.
2. But eg. Low prices, instead of [1] are using [2].
3. My ATR is using [2] instead of [1] so I think it can be a problem of more indicators lookback.
Please look at the new screens and logs.
The strategy is using the same On Bar Open entry.
Best regards,
Michal
Attachment AW0102.png added
Attachment AW0202.png added
Attachment AW0302.png added
Here are the log screens on the same ticker:
01.02 - OK
02.02 - Wrong Data
03.02 - OK
It seems like API didn't get valid data or did the problem occur on 02.02 and you fixed it?
Best regards,
Michal Zaremba
you are absolutely right. We had a bug in allocating data for beforeBarOpen signals evaluation.
Thank you very much for letting us know and for your great description using charts.
The issue is fixed now. The change will take effect tomorrow.
Best regards,
Tomas