Login Page - Create Account

Support Board


Date/Time: Tue, 14 May 2024 04:25:37 +0000



ASCIL Get Orders For All Symbols For Account

View Count: 569

[2020-10-23 09:21:02]
User36703 - Posts: 29
Hello,
I was searching for a function which can help me to find orders like sc.GetOrderByIndex() for all symbols, not only for the symbol where the study is applied.

Is there function or method which can help me with succesful result?
[2020-10-26 20:00:02]
Sierra Chart Engineering - Posts: 104368
You need to use this function for this:
Automated Trading From an Advanced Custom Study: sc.GetOrderForSymbolAndAccountByIndex()
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
[2020-10-27 11:36:57]
User36703 - Posts: 29
Thank you for your help. I tried out and it is working for all symbols now. Thank you!

I noticed one thing in debug mode: scGetOrderForSymbolAndAccountByIndex returns Price value without format ajdusted by something like <real-time-multiplier> from another chart. Is it standard behaviour and should I adjust it by myself or is it deviation from function purpose?

Thanks again!
Date Time Of Last Edit: 2020-10-27 11:58:01
[2020-10-27 17:45:18]
User36703 - Posts: 29
I probably found the solution. It is neccessary to calculate prices returned by the function by this formula to get correct entry price from symbol outside the chart: SymbolPrice * (SymbolRealTimeMultiplier / sc.RealTimePriceMultiplier).
Date Time Of Last Edit: 2020-10-27 17:45:47
[2020-10-27 17:56:25]
Sierra Chart Engineering - Posts: 104368
We will apply the real-time price multiplier for the symbol to the order prices.
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
Date Time Of Last Edit: 2020-10-27 17:57:09

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

Login

Login Page - Create Account