Login Page - Create Account

Support Board


Date/Time: Thu, 26 Apr 2018 16:55:33 +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: 59450
Please refer to this function:
http://www.sierrachart.com/index.php?file=doc/doc_ACSILTrading.html#scGetTradeList
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:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

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


Login Page - Create Account