Support Board
Date/Time: Sat, 23 Nov 2024 21:22:39 +0000
Post From: Cannot Get End Time of the Intraday Chart
[2024-07-30 05:23:50] |
Vibhor - Posts: 2 |
I want to make a loop where if current time is greater than or equal to the end session time then it checks if there are open trades. After that it flatten and cancel all orders. I have used SCDateTime currentTime = sc.GetCurrentDateTime(); to get the current time but for end session time i am unable to find anything, If i use "SCDateTime endSessionTime = sc.BaseDataEndDateTime[sc.ArraySize - 1];" and if there is no bar at end time or incomplete bar then this is not working as intended. is there anything else I can use to get the end session time and compare them so I can flatten and cancel all orders?? Thank you in advance. |