Support Board
Date/Time: Thu, 21 Nov 2024 16:29:07 +0000
Getting profit/loss for the last N number of trades
View Count: 2164
[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: 104368 |
Please refer to this function: http://www.sierrachart.com/index.php?page=doc/doc_ACSILTrading.html#scGetTradeList 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 |
To post a message in this thread, you need to log in with your Sierra Chart account: