Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
tengo un problema al compilar un indicador
Collapse
X
-
tengo un problema al compilar un indicador
estoy creando un indicador, donde me aparezca el valor en $ que corresponde una vela al terminar de formarse, no importa la temporalidad, tomando en cuenta el alto y el bajo de dicha vela, y que al finalizar este me diga ese valor en $ correspondiente a un contrato, es decir por ejemplo, que si en una temporalidad de 2 min, una vela del MNQ se movio 10 puntos, el valor en $ de esa vela serian 20$ (para 1 contrato) y este valor me aparezca encima de la vela o en algun lugar de la pantalla. No se nada de programacion y me estoy ayudando con IA, tengo el codigo pero al compilarlo me aparecen 2 errores que no logro solucionarlo. les voy a presenta el codigo completo y un capture de pantalla de los 2 errores que me aparecen, si me pueden ayudar se los agradeceria
1 PhotoTags: None
-
Hello jaffaqui,
From the image you are missing some of the default using statements at the top of the script. I would suggest looking at some of the built in indicators for examples of how a script needs to look. Beyond that you may or may not see a result, we find that using AI services to generate code often has bad results. I have included a disclaimer about that below.
From our experience at this time, ChatGpt and other AI models are not quite adequate to generate valid compilable NinjaScripts that function as the user has intentioned. We often find that the generated code will call non-existent properties and methods, use improper classes or inheritance, and may have incorrect logic. We highly encourage that you create a new NinjaScript yourself using the NinjaScript Editor, and use the code generated by ChatGpt as more as suggestions and guide than the actual code generated.
Below is a link to a forum thread that discusses ChatGpt and it's limitations.
While it would not be within our support model to correct these scripts at user request, we would be happy to provide insight for any direct specific inquiries you may have if you would like to create this script yourself. Our support is able to assist with finding resources in our help guide as well as simple examples, and we are happy to assist with guiding you through the debugging process to assist you with understanding unexpected behavior.
You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
566 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
548 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment