Login Page - Create Account

Support Board


Date/Time: Mon, 20 Jan 2025 08:19:47 +0000



PositionData.MaximumOpenPositionProfit

View Count: 872

[2018-05-18 15:54:26]
User39772 - Posts: 311
Hello,

is there a reasen if PositionData.MaximumOpenPositionProfit is always zero, even if the position was in positive territory.

By the way: all other variables like Average Price etc. of object PositionData hold valid data.
[2018-05-18 18:54:30]
Sierra Chart Engineering - Posts: 104368
In the next release we will add these new members which are used in the Maximum Open Position Profit and Loss calculations, so you can determine what the problem might be:
    s_SCPositionData::PriceHighDuringPosition
    s_SCPositionData::PriceLowDuringPosition
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: 2018-05-18 18:55:03
[2018-05-24 21:23:38]
User39772 - Posts: 311
Thank you for providing that.

Unfortunately these variables do not contain the respective price levels but invalid numbers
when I add the variables to my debugger or use the message log.

All other data like AveragePrice, Quantity etc. seem to be correct.
[2018-05-24 21:37:33]
User39772 - Posts: 311
I found that these problems show during live trading and not in simulation mode.

The only thing I do is switching between:

sc.SendOrdersToTradeService = false/true; and

Trade Simulation Mode On/Off
[2018-05-24 21:44:25]
Sierra Chart Engineering - Posts: 104368


Unfortunately these variables do not contain the respective price levels but invalid numbers
when I add the variables to my debugger or use the message log.
We will look into 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
[2018-05-24 21:59:25]
Sierra Chart Engineering - Posts: 104368
s_SCPositionData::PriceHighDuringPosition
s_SCPositionData::PriceLowDuringPosition

Will be set to DBL_MAX if there is no position . Otherwise, they should be set properly.
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: 2018-05-24 21:59:45

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

Login

Login Page - Create Account