Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 06:33:04 +0000



How to get PnL in market replay to not reset after every session

View Count: 320

[2024-03-24 13:13:49]
JackChappoES - Posts: 7
This maybe a simple fix, however I am looking to backtest swings over multiple days, and I want the PnL in the trade window to not reset back to 0ticks, after everyday, and want the PnL to be cumulative.
e.g, first trade makes 100ticks, then a few days later i make 100 more ticks, so PnL would print 200t rather than resetting.
thanks
[2024-03-26 06:01:33]
User61168 - Posts: 403
I think this study is what you need to use...

Trading Information Windows: Trade Data Studies

Trading: Closed Profit/Loss: This study will display the cumulative profit/loss from closed Trades that there are order fills for in the Trade Activity Log for the Symbol and Trade Account. All available order fills are included. A closed Trade is one in which there is an opening fill and a closing fill. A currently open Trade which has no corresponding closing fill is not included in the study. For further details, refer to the Trades tab of the Trade Activity Log.
[2024-03-26 07:19:12]
Sierra_Chart Engineering - Posts: 17172
Yes that is one solution to use that study. You cannot prevent the resetting of the Daily Profit/Loss but you can use this study to see the Cumulative Profit/Loss:
Trading Information Windows: Trading: Profit/Loss Text Study

Also refer to:
Trade Activity Log: Understanding and Setting the Start Date-Time for a Trades List

This is relevant to control the starting Date-Time for the cumulative Profit/Loss calculation.
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
Date Time Of Last Edit: 2024-03-27 01:49:43

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

Login

Login Page - Create Account