Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 20:12:57 +0000



Post From: Feature request: Writeable note field for ACSIL trades

[2020-01-13 09:05:34]
pappe88 - Posts: 22
Hello,

for automated strategies it would be very helpful if it would be possible to write some "notes" to an order which then would be available in the trade activity log and also would be able to be exported and analysed elsewhere.

Example:
SCString message;

sc.FormatString(message, "strategy %d;indicatorValueA %f;beginOfRotation %f",
strategy,indicatorValueA,beginOfRotation);

s_SCNewOrder NewOrder;
NewOrder.OrderQuantity = 1;
NewOrder.OrderType = SCT_ORDERTYPE_MARKET;
NewOrder.AttachedOrderStop1Type = SCT_ORDERTYPE_STOP;
NewOrder.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED;
NewOrder.Target1Offset = sc.LastTradePrice - targetPrice;
NewOrder.Stop1Offset = sc.LastTradePrice - beginOfRotation;

NewOrder.Note = message;

Result = (int)sc.SellEntry(NewOrder);

If there is already a way to do something similar please excuse me and point me into the right direction.

Thanks!
Date Time Of Last Edit: 2020-01-13 09:06:01