Support Board
Date/Time: Thu, 02 May 2024 06:15:32 +0000
Unable to create account in Trading Evaluator - Delayed
View Count: 2972
[2021-10-26 02:36:29] |
User99735 - Posts: 234 |
Hi, After connecting to "Trading Evaluator - Delayed" connection, am unable to add / create a new account via Trade->Trade Account Monitor window. Get a popup with error message "Server error - Operation not allowed". Regards Vivek |
[2021-10-26 03:28:27] |
Sierra Chart Engineering - Posts: 104368 |
What is the Server set to in Global Settings >> Data/Trade Service Settings? It needs to be Server 1. 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 |
[2021-10-26 09:16:20] |
User99735 - Posts: 234 |
Still getting the same error. See the enclosed screenshot.
|
Private File |
[2021-10-26 11:12:18] |
Sierra Chart Engineering - Posts: 104368 |
That account already exists. You need to use a different identifier.
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 |
[2021-10-26 14:12:32] |
User99735 - Posts: 234 |
Thanks, works now.
|
[2021-10-26 20:36:14] |
User99735 - Posts: 234 |
Hi, Some other issues, let me know if a separate support request needs to be created for these issues. With connection set to Trading Evaluator - Delayed with four accounts, and with sc.AutoLoop = 0; //No automatic looping sc.ReceiveNotificationsForChangesToOrdersPositionsForAnySymbol = 1; a) (sc.IsFullRecalculation && (sc.UpdateStartIndex == 0)) block is called four times b) When trying to open in one of the four accounts, which is not the one returned by sc.SelectedTradeAccount does not work. All positions are opened in the account returned by sc.SelectedTradeAccount. See screenshot. Regards Vivek |
Private File |
[2021-10-28 16:17:53] |
Sierra Chart Engineering - Posts: 104368 |
1. Refer to: Working with ACSIL Arrays and Understanding Looping: When the Study Function is Called (Full Calculation/Recalculations) You will need to determine the cause of this. 2. We are not understanding this. 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 |
[2021-10-28 17:01:14] |
User99735 - Posts: 234 |
Can provide a sample study to reproduce the problem in Trading Evaluator - Delayed connection, let me know if this works for you?
|
[2021-10-29 14:44:29] |
Sierra_Chart Engineering - Posts: 14173 |
We cannot be debugging any sample code. You need to debug this and determine what the issue is.
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, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-11-23 01:37:23] |
User99735 - Posts: 234 |
Fixed the issue of entries across multiple accounts, now run into problems with sc.BuyExit and sc.SellExit. Do these functions work both for current (sc.SelectedTradeAccount) and other accounts set through TradeAccount field of s_SCNewOrder structure. Am getting following error in 'Trade Service Log' - "BuyExit signal is ignored. Long position quantity does not exist or there are already working exit orders that will flatten the position. Current Position with working exit orders: 0. Current Position: 0. Current Position with exit market orders: 0 | 2021-11-23 06:57:36.405 " scsf_TradingExampleOrdersForDifferentSymbolAndAccount(SCStudyInterfaceRef sc) has examples on entries only, and no exit. |
[2021-11-23 04:30:23] |
Sierra Chart Engineering - Posts: 104368 |
Do these functions work both for current (sc.SelectedTradeAccount) and other accounts set through TradeAccount field of s_SCNewOrder structure. Yes.You cannot use sc.BuyExit if there is no position. 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 |
[2021-11-23 04:34:41] |
User99735 - Posts: 234 |
Position is existing in the other ( not sc.SelectedTradeAccount ) account.
|
[2021-11-24 16:54:56] |
User99735 - Posts: 234 |
Any update on this?
|
[2021-12-05 20:44:16] |
Sierra_Chart Engineering - Posts: 14173 |
We looked into this more closely and what we said in post #11 is not correct. Refer to the information here on what functions can be used: Automated Trading From an Advanced Custom Study: Submitting and Managing Orders for Different Symbol and/or Trade Account You cannot use: sc.BuyExit and sc.SellExit. To trade a different trading Account as compared to what the chart is set to. 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, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-12-05 21:23:12] |
User99735 - Posts: 234 |
Agreed, so how to close position in a different trading account, then what the chart is set to?
|
[2021-12-05 23:11:21] |
Sierra Chart Engineering - Posts: 104368 |
You need to use one of these two functions: sc.BuyOrder, sc.SellOrder You have to work out the details, of the side, order quantity and order type. 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 |
[2021-12-05 23:27:15] |
User99735 - Posts: 234 |
This will work if all the brokers provide what is called as 'netting' account. Ie, to close a long position, sc.SellOrder should close the long position, instead of opening another hedged short position. |
[2021-12-05 23:36:58] |
Sierra Chart Engineering - Posts: 104368 |
Yes a sell order will close a long position. This is how it works with all external trading services Sierra Chart works with.
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 |
[2022-01-18 12:15:30] |
User99735 - Posts: 234 |
Managed to use sc.BuyOrder, sc.SellOrder to open and close positions using Market Orders for 'other (not current)' accounts. With sc.BuyEntry and sc.SellEntry, 'open' orders can be created and with sc.BuyExit and sc.SellExit, 'close' orders can be created, for 'current' accounts. However for Limit / Stop orders, OpenClose field is missing in s_SCNewOrder structure (which is available in s_SCTradeOrder), to prescribe if the order will open a position or close an existing position ( when using sc.BuyOrder and sc.SellOrder functions ). Please advice |
[2022-01-18 15:17:06] |
Sierra Chart Engineering - Posts: 104368 |
Open/Close is never specified for a new order and it is not needed. Depending upon the existing position and the side of the new order, will determine whether a position will be reduced or closed.
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 |
[2022-01-18 16:51:29] |
User99735 - Posts: 234 |
Thanks. Can you provide TimeInForce field and data in s_SCTradeOrder structure?
|
[2022-01-19 05:12:06] |
Sierra Chart Engineering - Posts: 104368 |
Yes we can add that.
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 |
[2022-01-19 16:02:58] |
User99735 - Posts: 234 |
Will it be added in the next release. Can you respond to thread Sample code for sc.SetAttachedOrders also please? Date Time Of Last Edit: 2022-01-19 16:50:26
|
[2022-01-24 03:49:13] |
Sierra Chart Engineering - Posts: 104368 |
It has been added in the latest prerelease.
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: 2022-01-24 03:49:31
|
[2022-01-24 04:53:53] |
User99735 - Posts: 234 |
Thanks. Had missed out on the following Breakeven / Trailing / Chase variables. Request you to also add the same to s_SCTradeOrder structure MoveToBreakEven MoveToBreakEven_2 QuantityTriggeredAttachedStop_QuantityForTrigger StopLimitOrderLimitOffset StopLimitOrderLimitOffsetForAttachedOrders TrailStopStepPriceAmount TriggeredLimitOrStopAttachedOrderTriggerOffse TriggeredTrailStopTrailPriceOffse TriggeredTrailStopTriggerPriceOffset MaximumChaseAsPrice |
To post a message in this thread, you need to log in with your Sierra Chart account: