Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 07:57:05 +0000



Global profit / Loss management (flatten) not working across multiple accounts

View Count: 553

[2023-05-09 20:14:28]
User163381 - Posts: 9
Hi.

I am following this Order Allocation to Trade Accounts (Order Allocation to Trade Accounts) to split my orders into separate Rithmic accounts.

I have set the Global Profit / Loss Management --> Flatten Positions at Set Time to Enabled (with a time to flatten).

This is only working on the main account (from the dropdown menu in the trade window) and not on the accounts defined in the "Allocation Accounts (List)" defined in the Menu --> Settings --> Order Allocation to Trade Accounts.

Is this a limitation of the system, or something that should work? Right now I have to manually go in and flatten the open positions for the other accounts that were not flattened automatically.
[2023-05-10 10:14:00]
Sierra_Chart Engineering - Posts: 17200
This has no relationship at all to Order Allocation to Trade Accounts:

I have set the Global Profit / Loss Management --> Flatten Positions at Set Time to Enabled (with a time to flatten).

It is designed to work across all Trade Accounts automatically. So you need to check the Trade Activity Log and see what has happened:
Trade Activity Log
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
[2023-05-10 20:57:50]
User163381 - Posts: 9
I can't see anything wrong in the trade activity log.

From the Trade Service Log:

Flatten Positions at Set Time has been reached. Flattening Positions now. | Symbol: (unset) | TradeAccount: APEX-50XXX-17 | 2023-05-10 21:00:46.063 *
Canceling orders for MCLM3.NYMEX and trade account APEX-50XXX-17 for Flatten Position operation. | Symbol: MCLM3.NYMEX | TradeAccount: APEX-50XXX-17 | 2023-05-10 21:00:46.063
Flatten Positions at Set Time has been reached. Flattening Positions now. | Symbol: (unset) | TradeAccount: APEX-50XXX-18 | 2023-05-10 21:00:46.065 *
TradeActivity files query time: 2.612785 seconds. Entries: 3972. Current queries: 1 | 2023-05-10 22:48:02.281

Right now I have 3 accounts:
XXX-17
XXX-18
XXX-19

Market is currently closed, and I have open positions in XXX-18 and XXX-19. The position in XXX-17 was successfully closed.

The trade activity log shows that the position in XXX-17 was closed, but no entries for the other two accounts.

Where specifically can I look to troubleshoot?
Date Time Of Last Edit: 2023-05-17 06:22:27
[2023-05-12 08:10:51]
Sierra_Chart Engineering - Posts: 17200
There definitely will be lines in the Trade Activity Log for every line like this in the Trade Service Log:
Flatten Positions at Set Time has been reached. Flattening Positions now. | Symbol: (unset) | TradeAccount: APEX-50XXX-18 | 2023-05-10 21:00:46.065 *

And you can see the market orders generated for the Positions in that account in the Log.

Not all Positions and Trade Accounts will be monitored as explained here:
Global Profit/Loss Management: Functional Description

Note the last paragraph in the section.
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
[2023-05-12 09:16:32]
User163381 - Posts: 9
Thank you for your reply.

I have lost $500 the last couple of days due to me not being around the computer to flatten the postitions on the other accounts.

I will work around this by re-writing my ACSIL studies to close the positions at a set time. This will solve the issue for me, but others might have the same problem.
[2023-05-15 16:20:28]
Sierra_Chart Engineering - Posts: 17200
Have a look at this alternate functionality:
Basic Trading and the Trade Window: A >> Flatten And Cancel at Set Time
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
[2023-05-17 04:30:31]
User61168 - Posts: 403
Hello user 163381,

I will work around this by re-writing my ACSIL studies to close the positions at a set time. This will solve the issue for me, but others might have the same problem.

There is a simpler way to flatten trades at a specific time by using "Trading system based on Alert condition" study. Just do a buy/sell exit if there are any open positions and set the "Allow Trading only during time range" parameter to YES. I have a Virtual Risk Manager study collection running on a dedicated chart per account that has all such controls (including max positions allowed, max trades per day allowed, max loss per day, force-close at session close, Allow auto trading only during specific times, Distance from SL and TP, audible alerts etc etc). Very easy to implement instead of mucking with ASCIL.

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

Login

Login Page - Create Account