Support Board
Date/Time: Sat, 25 Jan 2025 01:09:16 +0000
Post From: sc.GetNearestTargetOrder() and sc.GetNearestStopOrder() fails to find working orders
[2019-01-28 14:23:26] |
User287992 - Posts: 51 |
sc.GetNearestTargetOrder() and sc.GetNearestStopOrder() returns 0 altough I have Stop and Target orders working in chart in OCO group: if (PositionData.PositionQuantityWithAllWorkingOrders != 0) {
Result = sc.GetNearestTargetOrder(Order); Buffer.Format("%s | Result target: %d", sc.DateTimeToString((double)sc.LatestDateTimeForLastBar, FLAG_DT_COMPLETE_DATETIME).GetChars(), Result); sc.AddMessageToLog(Buffer, 0); // prints "Result target: 0" Result = sc.GetNearestStopOrder(Order); Buffer.Format("%s | Result stop: %d", sc.DateTimeToString((double)sc.LatestDateTimeForLastBar, FLAG_DT_COMPLETE_DATETIME).GetChars(), Result); sc.AddMessageToLog(Buffer, 0); // prints "Result stop: 0" } http://www.sierrachart.com/image.php?Image=1548684994406.png SC 1865 |
Private File |