Login Page - Create Account

Support Board

Date/Time: Fri, 19 Oct 2018 10:26:15 +0000

Getting profit/loss for the last N number of trades

Support Request:
[2013-04-07 23:54:15]
User76625 - Posts: 49
Is there a way to get the profit/loss from the last 2 or more closed trades?

I see you can get it for the most recent closed trade using InternalPositionData.LastTradeProfitLoss, but I want to add a line of code so that I can stop entering new trades once I've had two losing trades on the day, and then reset things to begin entering new trades at the open of the following day.

Thank you.
[2013-04-10 02:12:12]
Sierra Chart Engineering - Posts: 64988
Please refer to this function:
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.

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


Login Page - Create Account