Support Board
Date/Time: Mon, 21 Apr 2025 13:11:38 +0000
[Programming Help] - ACSIL Referencing Study
View Count: 244
[2025-03-02 21:16:51] |
Tin43 - Posts: 141 |
Hi to everybody and thanks in advance. I'm trying to code a trading system. I decided not to code everything together. What i mean? For example if i need to code a logic for identifying if a candle is bullish or bearish , I didn't compile that in the main strategy system. I designed an indicator, for example called BB Indicator. So I got one indicator designed by myself (which obviously i have the code) and want to use one of the Sierra Chart study called Renko Visual Open/Close Values. The problem is that i don't have the code and I don't now how to integrate this indicator for a logic condition. It's possible to integrate an indicator on the compilation of the code despite not having the code of that indicator? I'm a total newbie in code programming or whatsoever.. hope I explained myself correctly. Apologies if not. |
[2025-03-02 22:33:01] |
Ticks - Posts: 206 |
You can review this Referencing Other Time Frames and Symbols When Using the ACSIL: Introduction You can also look in the ACS_Source folder for example code etc. |
[2025-03-02 23:15:07] |
cmet - Posts: 690 |
This is the code for the Renko Visual Open/Close Values: SCSFExport scsf_RenkoVisualOpenCloseValues(SCStudyInterfaceRef sc)
{ SCSubgraphRef Subgraph_RenkoOpen = sc.Subgraph[0]; SCSubgraphRef Subgraph_RenkoClose = sc.Subgraph[1]; if (sc.SetDefaults) { sc.GraphName = "Renko Visual Open/Close Values"; sc.DrawZeros = 0; sc.GraphRegion = 0; sc.AutoLoop = 0; sc.ScaleRangeType = SCALE_SAMEASREGION; Subgraph_RenkoOpen.Name = "Renko Open"; Subgraph_RenkoOpen.PrimaryColor = RGB(255, 255, 255); Subgraph_RenkoOpen.LineWidth = 3; Subgraph_RenkoOpen.DrawStyle = DRAWSTYLE_LEFT_PRICE_BAR_DASH; Subgraph_RenkoOpen.DrawZeros = false; Subgraph_RenkoClose.Name = "Renko Close"; Subgraph_RenkoClose.PrimaryColor = RGB(255, 255, 255); Subgraph_RenkoClose.LineWidth = 3; Subgraph_RenkoClose.DrawStyle = DRAWSTYLE_RIGHT_PRICE_BAR_DASH; Subgraph_RenkoClose.DrawZeros = false; return; } int RenkoTicksPerBar = 0; n_ACSIL::s_BarPeriod BarPeriod; sc.GetBarPeriodParameters(BarPeriod); RenkoTicksPerBar = BarPeriod.IntradayChartBarPeriodParameter1; if (RenkoTicksPerBar == 0) return; for(int BarIndex = sc.UpdateStartIndex; BarIndex < sc.ArraySize; BarIndex++) { Subgraph_RenkoOpen[BarIndex] = sc.BaseData[SC_RENKO_OPEN][BarIndex]; Subgraph_RenkoClose[BarIndex] = sc.BaseData[SC_RENKO_CLOSE][BarIndex]; } } In Studies6.cpp |
[2025-03-03 09:26:30] |
Tin43 - Posts: 141 |
BIG thanks both of you!!!! By the way, which of the sections of the documentation about programming with ACSIL of Sierra Chart, would you use as an attachment to help the AI (Claude Sonnet 3.7) to create code in ACSIL? Because I have a few (I don't think all of them), but: 1- I have some links converted to .txt (but it is impossible to upload them all). 2- The chats are very extensive and the limit of use of the AI is activated after a short time even if I open a new chat. 3- If you think there is a better database, I would appreciate if you inform me about it. 4- No, I don't pretend that the AI does everything (well I pretend, but it's not a reality). To achieve what I have achieved so far I have had to cover the solution of a problem trying many different approaches because AI is logically not perfect. 5- Yes, I am not a programmer at all. I'm in a self-taught process with this trading stuff. I don't pretend to be one either. THANKS in advance. P.S: by the way how do you managed to get the code? Can i open a study in a reverse way? I mean, can i open any DLL and see what's inside???? Is that possible? I couldn't find Studies6.cpp in the data folder. Date Time Of Last Edit: 2025-03-03 09:28:07
|
[2025-03-03 13:44:04] |
cmet - Posts: 690 |
Can I ask why you're using Claude? I've spent some time testing AI platforms, and GPT is superior in every way. When using it to learn/build, you can leverage Projects and include the entire ACSIL documentation and cpp files. This basically creates a working autonomous agent. There are also no usage limits for the standard models. That said... You need to know exactly what you're trying to do. For anything even a little complex, you'll need to understand how to approach what you want programmatically. Start by describing each part of your project in a modular way with clear explanations of what each step needs to do. When it comes to programming, the power of these platforms is in the ability to prompt, not the fact that it can write lines of code. It can do that extremely well, in every single programming language. But, if you can't provide specific instructions and guide it to give you what you're after - then work with it to debug, they're all of limited use. All of the built in studies where code is available are in ACS_SOURCE. They are the Studies.cpp files. You can open DLL files in Virtual Studio. Date Time Of Last Edit: 2025-03-03 13:53:49
|
[2025-03-03 14:21:14] |
Tin43 - Posts: 141 |
There are also no usage limits for the standard models.
Sorry English is not my mother tongue, i obviously understood that phrase, but in my research there is NO IA without usage limitations. After X amount of messages etc.. there is a limitation usage. Or you are making reference to the extension of the messages you can send? Can I ask why you're using Claude? I've spent some time testing AI platforms, and GPT is superior in every way. When using it to learn/build, you can leverage Projects and include the entire ACSIL documentation and cpp files.
I'm using Claude because I asked the same thing to both of them and Claude nailed in the first time, being me a noob and not good at telling them everything specifically and GPT doesnt even understand what I want due the results i got from "his" code. Maybe it was not a good judgement approach, but if one understands me when i'm not being good or specifically about something I thought that when i did things in the right way, then the IA will be far superior. You need to know exactly what you're trying to do. For anything even a little complex, you'll need to understand how to approach what you want programmatically. Start by describing each part of your project in a modular way with clear explanations of what each step needs to do.
I know exactly what I want and how, even that sometimes I was over complicating things a lot, and then when i ask Claude for a resume, it gives me the resume and clarify a lot of things that could be done simpler. I mean, it didn't recommend me anything to be honest, the fact is that when i read the resume i found a lot of resumed concepts in a simpler way. When it comes to programming, the power of these platforms is in the ability to prompt
This part is important for me. Because maybe i was approaching wrong. What do you mean IA's are powerful at prompt? (if you can put a trading related example please) About me approaching this I always try to be descriptive as possible. And always returning the debug error to the IA to solve it. And attaching related documentation. P.S: Sorry, forgot to thank you for your time!!! Date Time Of Last Edit: 2025-03-03 14:22:58
|
[2025-03-03 14:49:01] |
cmet - Posts: 690 |
I've never run into usage limits on a paid account. If you're using free accounts, there are severe limitations. Asking both models to do the same thing and one gets it right is not a very good yardstick imo. Programming is not push button. There are a hundred ways to do everything. To get your project done with AI, you are going to have to work with it. The more you know about programming, the easier it will be. With prompting, what I meant was, you have to know how to ask detailed, specific questions. Models like GPT have immense deep knowledge. I don't think most people understand just how deep. But you get out what you put in when it comes to complex tasks. For example: If you gave the same project to an experienced programmer and someone who has never written code and told them to use AI to finish the project, who do you think is going to get it done faster/more effectively? It's going to be the person that understands program structure, libraries, functions, etc. because they can write prompts that include that information and tell the AI exactly what to use for each step. Writing the lines of code becomes an afterthought because the AI can write 200 lines in 30 seconds. With the skill level that some on this board possess, they can map out a schematic, use their vast knowledge and experience to write very specific prompts, and complete a project that would take 5 people two months to do in a week, by themselves. Date Time Of Last Edit: 2025-03-03 14:53:22
|
[2025-03-03 15:12:49] |
Tin43 - Posts: 141 |
Yes I know exactly what you are talking because is what i'm facing each day. I'm not coding at all, i'm constantly solving problems. I can't tell where the error is when the AI gaves me the code. I know that if i had knowledge about programming/coding etc, this would be 100% easier. But what i like is that "I" was able to do things despite knowing CERO. That would be impossible year ago. I really don't know how you didn't found usage limitation when using any AI. Search in Google "chatgpt 4o usage limitation", and the very first result says: The limit is 40 prompts per three hours. If you need more than that, upgrade to Teams which apparently has a limit of 160 prompts to 3 hours when using 4o I'm using paid version, 20 dollars each. Of course i'm not paying 200 month. But the 20 dollars version of Claude Sonnet or Chat GPT 4o has limitations usage. Please tell me how you avoid this. Thanks! |
[2025-03-03 15:19:53] |
cmet - Posts: 690 |
I can't tell where the error is when the AI gaves me the code.
The compiler errors tell you exactly what the problems are. I have scientific research chats that have handled far more than 13 prompts an hour. No limitations whatsoever in GPT. |
[2025-03-03 17:44:36] |
Tin43 - Posts: 141 |
The compiler errors tell you exactly what the problems are.
Yes i know that, that has been the method for solving problems. Copy the debug error from SC. I meant to say that if I was a programmer i would resolve errors more easily. Because despite having the error, when you copy and paste it to the AI, the AI doesn't know how to handle it and I don't understand the error to help the AI etc etc.. I mean, it's a loop due my lack of knowledge about coding. I'm astonished you didn't encounter usage limitations. Are you paying more than 20 dollars/month? Are you aware that every AI has those limitations? Are there any usage limits applied on my account?
As of May 13th 2024, Plus users will be able to send 80 messages every 3 hours on GPT-4o. and 40 messages every 3 hours on GPT-4. The message cap for a user in a ChatGPT Team workspace is approximately twice that of ChatGPT Plus. Please note that unused messages do not accumulate (i.e. if you wait 6 hours, you will not have 80 messages available to use for the next 3 hours on GPT-4). GPT-4o mini does not have limits on the Plus tier. Plus user have access to 50 messages a week with OpenAI o1-preview and 50 messages a day with OpenAI o1-mini to start with our research preview. In certain cases for Plus users, we may dynamically adjust the message limit based on available capacity in order to prioritize making GPT-4 accessible to the widest number of people. That quoted text is from here: https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus?q=Limit+usage |
To post a message in this thread, you need to log in with your Sierra Chart account: