Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 18:49:36 +0000



Averaging up/down a position

View Count: 1160

[2017-05-24 00:02:10]
User554317 - Posts: 59
I tend to add to a position as the position goes against me. SC obviously calculates an average position out of that.
What I am wondering is, is it possible for me to use this new avg price when calculating p/l as I gradually close the position or does it always use the original entry prices of each position to calculate the p/l?

Ideally I would like the p/l to be calculated based on the avg position size - not the original entry prices (which I cannot see on the ladder anymore).

Thank you.
[2017-05-24 03:05:41]
Sierra Chart Engineering - Posts: 104368
Refer to the documentation here:
https://www.sierrachart.com/index.php?page=doc/TradeStatusWindows.html#HowAvgPricePositionsCalcUsed

Basic Trading and the Trade Window: Main/C >> Open Profit/Loss (P/L)
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
[2017-05-24 03:49:47]
User554317 - Posts: 59
I read both documents but it doesn't really answer my question. Would you mind answering it?
Thank you.
[2017-05-24 04:29:06]
Sierra Chart Engineering - Posts: 104368
We will not repeat what the documentation says. The documentation explains how the Position Average Price is calculated and used.

There are potentially three different Average Price values which you can have. Each one is explained and under what condition it is displayed.


And we have also linked to the documentation explaining how the Open Profit/Loss is calculated.
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: 2017-05-24 05:17:11
[2017-05-24 05:20:08]
Sierra Chart Engineering - Posts: 104368
The first step is for us to understand what particular Average Price calculation you are looking at. Where are you looking at the Position Average Price and does it show an "E" after it?

And when you see the extensiveness of the documentation linked to and how thorough it is, you can realize there is no possibility for us to restate it. It covers the subject thoroughly.
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: 2017-05-24 05:20:45
[2017-05-24 05:29:45]
User554317 - Posts: 59
Yes I understand how the position size is calculated and that you can select Fifo or Lifo.
However what I am asking is the following (example):

I enter Es at 2390 (1 contract). Price moves up to 2396 and I enter another 1 contract at 2396. The average price of those two positions now is 2393.
The current price now has moved to 2391. I want to close 1 contract with a profit of 2 points (2393 - 2391 = 2). Shortly after I decide to close the other position at the same price for another 2 points profit. So 2 trades with 2 points profit and 100% win rate.

I do not want it calculated as 2 trades with one being 5 points profit and the other with 1 point loss (and a win rate of just 50%).

Is this possible?
[2017-05-25 03:21:44]
Sierra Chart Engineering - Posts: 104368
We apologize for the delay. You should be able to accomplish this through the Trades tab of the Trade Activity Log. Here is the documentation:
Trade Activity Log: Trades Tab

You will want to use the Flat to Flat order fill grouping method.
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
[2017-05-25 04:05:00]
User554317 - Posts: 59
Ok thank you. What about the order fills on the charts and on the ladder? Going back to the example above, when I take profit on a part of the position, suddenly the entry price on the ladder reverts from the avg position price to the original entry price. I would like it to remain the avg position price at all times.
Date Time Of Last Edit: 2017-05-25 04:05:49
[2017-05-25 05:12:47]
Sierra Chart Engineering - Posts: 104368
What you want is possible and the documentation does explain this. It is the Flat to Flat Average Position Price:
https://www.sierrachart.com/index.php?page=doc/GlobalTradeSettings.html#FlatToFlatAveragePriceForPosition
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
[2017-06-02 10:44:03]
phaedonk - Posts: 350
I have the opposite issue. Let's say I add at a worse price than the first fill. When I scale out the second position (even immediately at the same price of the second fill), the average price stays the same (ie the new avg) and does not revert to the original (or the correct current average anyway). This gives a false image of what the breakeven price currently is.

Is this an IB issue? I think that it is, because if I enable "Use order fill calculated position" the average price will be correctly moved to the correct one. \is there anything I can do about it?

(I do not use Flat to Flat average price. Also, I use LIFO, if related.)
[2017-06-02 15:44:32]
Sierra Chart Engineering - Posts: 104368
Check Global Settings >> Data/Trade Service Settings >> Service Settings >> Use IB Provided Position Average Price.
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
[2017-06-02 16:26:50]
phaedonk - Posts: 350
It was already set to true. What does that mean?
[2017-06-02 17:20:22]
Sierra Chart Engineering - Posts: 104368
OK that explains it. You need to uncheck it and make it false.
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

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

Login

Login Page - Create Account