Support Board
Date/Time: Wed, 27 Nov 2024 10:30:56 +0000
Post From: Is there a way to programmatically disable auto-trading?
[2023-08-29 00:13:35] |
TriStar Trading - Posts: 142 |
The code is pretty straight-a-way. So, if I manually flatten while these conditions are still true, the code will re-enter. I read committed order flow so I don't want to give up the target decision. But sometimes I do flatten and before I can turn auto trade off the conditions redevelop. Or I forget. :) Would be great to shut off auto trade when trapping the Result code. Any thoughts? Thanks in advance. Mike if (PositionData.PositionQuantity == 0 && Condition1[sc.Index] > 0 && Condition2[sc.Index] > 0 && Condition3[sc.Index] > 0 && Condition3[sc.Index] > 0) { Result = static_cast<int>(sc.BuyEntry(NewOrder)); //Buy Entry if (Result > 0) sc.AddMessageToLog("Buy",1); } Date Time Of Last Edit: 2023-08-29 00:28:54
|