Login Page - Create Account

Support Board


Date/Time: Fri, 26 Dec 2025 03:01:34 +0000



[Programming Help] - ACSIL coding help.

View Count: 278

[2025-11-03 18:20:14]
Tin43 - Posts: 155
Hi everyone.

I want to add to my indicator a new function. I want the system to detect when there is a losing trade or a winning trade. Because then I want my system to stop trading either X amount of losing trades or winning trades.

Problem is that i can't even code properly the function to identify winning trades or losing trades. And worst if I want to do that in a time period, for example RTH.

AI help me a lot to code everything on my system, but it's impossible to achieve that. If I try with AI, it doesn't work no matter what.

I'm not asking for the code, but for some help or guidance or documentation.

I want to achieve:

Identify winning and losing trades.
Stop trading after X amount of winning or losing trades according to RTH.

Thank beforehand.
[2025-11-03 19:12:17]
ForgivingComputers.com - Posts: 1180
This tool will do what you want. You can use it to lock trading or to signal a BOT to stop trading through a Subgraph.

https://forgivingcomputers.com/advanced-risk-management-tool-for-sierra-chart/
[2025-11-06 23:13:10]
rajeshh - Posts: 50
Take a look at the built-in ACSIL function - Automated Trading From an Advanced Custom Study: sc.GetTradeStatisticsForSymbolV2()

The documentation says it returns the same information as the Statistics Tab in the Trade Activity Log. Maybe give this method to your AI agent, and see if it goes further.
[2025-11-08 14:34:01]
Tin43 - Posts: 155
thanks Rajeshh!!!

That info, and a bit more documentation about ACSIL, solved my problem!!!
[2025-11-11 19:53:44]
Tin43 - Posts: 155
This tool will do what you want. You can use it to lock trading or to signal a BOT to stop trading through a Subgraph.

https://forgivingcomputers.com/advanced-risk-management-tool-for-sierra-chart/

Mmm despite thinking I solved the problem.. well kinda, but not permanent. I put a 2 year backtest and from time to time my solution doesn't' work anymore and I still got open orders beside having setting to flat all orders pass X amount of time.

I'm seeing that you may have the solution.

What i'm not getting clear is that I want to stop trading after X amount of winning trades. But I want trading to resume after sessions ends. And your indicator seems to lock X amount of minutes after thos X amount of (in this case) winning trades. Or if i set the Period 1 begin and end to 09:30 to 16:00, it will resume after that? (take that period as my trading day).

So if I bought your indicator how I can set your indicator to achieve this.

Can you explain me like "set this to f1, then period to bla bla etc, the amount here"

I want to be sure to achieve what i want before buying, that's why i'm asking so much. Thanks in advance and apologies for my English.
[2025-11-11 20:06:00]
ForgivingComputers.com - Posts: 1180
You can set the number of minutes for the unlock time, so if that number is more than the number of minutes in a trading day, then it won't unlock until the day is over. User guide is attached.

Let me know if you want a free trial. I will need your Sierra Account name, which you can send by DM.

Brad
Date Time Of Last Edit: 2025-11-11 20:07:52
attachmentFC Advanced Risk Management Tool User Guide.pdf - Attached On 2025-11-11 20:04:23 UTC - Size: 666.77 KB - 36 views
[2025-11-11 20:24:23]
Tin43 - Posts: 155
I will DM my user. Don't have any problem buying it if works with my indicator. I upload the pdf to my chatgpt session and it seems easy to set what I want, buy i wan to try first since you give me that option. Which I appreciate.

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

Login

Login Page - Create Account