Support Board
Date/Time: Thu, 05 Jun 2025 02:06:11 +0000
Post From: Replay Orders Not Being Sent
[2025-06-02 19:05:02] |
Gradient - Posts: 142 |
I added the sc.MaximumPositionsAllowed to the study and that appears to have corrected the issue. However, I did notice that while the system should only trade under certain conditions (i.e. sc.Subgraph[N][sc.Index]==1) and the displayed condition is not true, orders are still being transmitted as if those conditions are being ignored. The logic is simple: Pseudo Example: int longTrade=0; int shortTrade=0; if(sc.BidVolume > 2*sc.AskVolume){ shortTrade=1; } if(sc.AskVolume > 2*sc.BidVolme){ longTrade=1; } sc.Subgraph[13][sc.Index]=longTrade; if(sc.Subgraph[13][sc.Index]==1){ longTrade=1; } I'm noticing per the subgraph output that the conditions haven't been met to generate an order but orders are being generated. Is this likely a result of the preprocessing step or playback speed? |