Support Board
Date/Time: Mon, 21 Apr 2025 17:07:54 +0000
Post From: How to get Open/Close column value as shown in the Trade Orders Window?
[2025-02-26 17:09:24] |
LTSys - Posts: 68 |
Hi, I don't see a way to get the Open/Close value (as shown in the Trade Orders Window) from the s_SCTradeOrder. For example if checking order type you can do... if(order.OrderType == SCT_ORDERTYPE_MARKET) But I don't see a way in the docs to get the Open/Close value? These are the docs I'm looking at... Automated Trading From an Advanced Custom Study: s_SCTradeOrder Structure Members Also I don't think the docs are correct for the return types in some places. For example the docs say the the s_SCTradeOrder FilledQuantity returns an integer but the following code compiles with a warning. int quantity = order.FilledQuantity; warning C4244: 'initializing': conversion from 'double' to 'int', possible loss of data TIA Date Time Of Last Edit: 2025-02-26 18:01:48
|