Login Page - Create Account

Support Board


Date/Time: Sat, 19 Apr 2025 15:30:30 +0000



[Programming Help] - Chart symbol change and YTD PnL

View Count: 86

[2025-03-19 17:56:06]
User61168 - Posts: 434
Hi,

I have spent significant amount of time designing an entire Money/Risk management model via simple alerts and spreadsheet formula studies. It works great. Went live (for forward testing) as well... but getting stumped now with the contract switch over from current H25 contract to M25 new contract. I am using Trading Information Windows: Trade Data Studies to keep track of YTD Pnl in points which works fine as long as the contract remains MNQH25. When automatic rollover happens, contract symbol changes and the cumulative PnL from Closed trades "study - Trading: Closed Profit/Loss" resets to zero breaking my entire MM model.

Question: Is there a way to prevent the contract symbol to never change on the chart and Trade Activity Log during the calendar year from 1/1 - 12/31??? What are other SC algo doing to address this problem in SC?

unrelated question but also impacting my MM model: Is it possible to change the reset time for "Trading: Daily Profit/Loss:" study to not happen by default at midnight ET? Could someone help with modifying this study to include a custom time field when the daily profit/loss would reset. I would really appreciate it.
Date Time Of Last Edit: 2025-03-19 18:38:56

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

Login

Login Page - Create Account