Login Page - Create Account

Support Board


Date/Time: Thu, 13 Aug 2020 05:45:52 +0000



sc.GetOrderByOrderID

[2020-05-23 17:44:32]
User869657 - Posts: 15 | Ending Date: 2020-10-20
Hello,

I am facing an issue using the sc.GetOrderByOrderID function : it works well for the first seconds of a new trade and then returns an error (SCTRADING_ORDER_ERROR).

I have looked at the many examples within the TradingSystem.cpp in the ACS_Source folder and have even compiled one for further testing and the same issue happens : it works well only for a short period of time and then returns an error (the one I have tested is scsf_TradingExample(SCStudyInterfaceRef sc))

Could you please have a look and let me know if you face the same ? The version I am using is the 2101

Thank you vm in advance
[2020-05-24 09:05:08]
Sierra Chart Engineering - Posts: 88579 | Ending Date: 2021-04-05
The reason for this is explained in the documentation here:
https://www.sierrachart.com/index.php?page=doc/ACSILTrading.html#GetOrderByOrderID

as well as the alternative solution.
Sierra Chart Support - Engineering Level

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

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2020-05-24 16:13:59]
User869657 - Posts: 15 | Ending Date: 2020-10-20
Noted, thank you. If not already existing, could you please build the alternative solution (sc.GetOrderFillEntry()) but when retrieving data for a different symbol ? I guess that a version for a different symbol of sc.GetOrderFillArraySize() would have to be built as well


Another question but still very much linked to this : you have clearly stated in your doc that maintaining, at the same time, both a long and a short position on the same instrument has to be done via two different accounts (i.e one for long position and one for short) :
https://www.sierrachart.com/index.php?page=doc/Trading.html#MaintainingLongAndShortPositionForSameSymbol
Is it something that you could reconsider in the future ? The main drawback of this is that with two broker accounts (one for long, one for short), the margins asked by the broker will not be netted, but rather will be summed

As always, many thanks for your help.
[2020-05-24 22:31:06]
Sierra Chart Engineering - Posts: 88579 | Ending Date: 2021-04-05
could you please build the alternative solution (sc.GetOrderFillEntry()) but when retrieving data for a different symbol ? I guess that a version for a different symbol of sc.GetOrderFillArraySize() would have to be built as well
This is involved to do and it is not something we can allocate time to anytime soon.

Is it something that you could reconsider in the future ?
This is really dependent upon the particular backend trading platform system you are using. None of them would support this other than the ones for cash Forex trading.
Sierra Chart Support - Engineering Level

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

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
Date Time Of Last Edit: 2020-05-24 22:31:15

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

Login

Login Page - Create Account