Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 15:26:47 +0000



[Programming Help] - Exporting Study level at the time of trades

View Count: 482

[2020-04-26 19:12:29]
buggsuperstar - Posts: 33
Hello, how can I include the levels of my studies to my trades for export? For example, I'd like to know what the RTH VWAP level was at the time of each trade.

Thank you!
[2020-04-27 00:39:04]
Flipper - Posts: 65
Are you Automated Trading From an Advanced Custom Study?

If so when creating a s_SCNewOrder there is a .TextTag that you can code any values you like into them. And they will be in the "Note" fields of the "Trade Activity Log" to export.

SCString OrderString;
OrderString.Format("Subgraph value @ ENTRY: %.4f", Subgraph[sc.Index]);

NewOrder.TextTag = OrderString;

[2020-04-27 00:51:11]
buggsuperstar - Posts: 33
Thank you Flipper, I am just trading discretionarily however.
[2020-04-27 02:06:59]
Flipper - Posts: 65
Ok then I don't know of any custom studies that have done this but it would be possible to do it and save to a .csv using

Automated Trading From an Advanced Custom Study: sc.GetTradeListEntry()

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

Login

Login Page - Create Account