Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 11:24:04 +0000



Feature request: Writeable note field for ACSIL trades

View Count: 595

[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
[2020-01-13 14:33:19]
bradh - Posts: 854
Automated Trading From an Advanced Custom Study: [Type: SCString] s_SCNewOrder::TextTag
[2020-01-13 15:36:31]
pappe88 - Posts: 22
Thanks, now I know why "note" always showed a trade configuration Name.
[2020-01-13 17:19:27]
Sierra Chart Engineering - Posts: 104368
Yes this is the relevant documentation:
Automated Trading From an Advanced Custom Study: [Type: SCString] s_SCNewOrder::TextTag
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account