Integración Ninjatrader y Visual Studio 2005

Foro dedicado a esta excelente herramienta de desarrollo e implementación de sistemas de trading
Responder
Avatar de Usuario
Profit_Warning
Mensajes: 92
Registrado: 03 Jul 2008 13:40
Ubicación: Peipartreidinland

Integración Ninjatrader y Visual Studio 2005

Mensaje por Profit_Warning »

Estoy intentando hacer el debugging de una estrategía creada en Ninjatrader con el Visual Studio 2005. Aunque sigo los pasos del siguiente enlace:

http://highprobability.blogspot.com/200 ... isual.html
_________________________________________________________________________________________________________
If you have Visual Studio 2005 or 2008 Professional follow these steps-
Step 1- Enable Debugging in NT
Step 2- Bring up a chart and apply the indicators and strategies you want to debug (add your indicators and strategies to the chart)
Step 3- Open Visual Studio (2005 or 2008 Professional Edition)
Step 4- Go to "Tools" and select attach to process and select NinjaTrader.exe (the title should be a chart- ie ES 5min)
Step 5- In Visual Studio open file and go to your ninjatrader directory and select the ".cs" files you want to debug.
Step 6- Add Break points on your selected file (you must add breakpoints in order to debug)
Step 7- Go to your open NT chart and right click and select "reload ninjascript"
Step 8- Visual studio should now pop up going from "running" to debugging" mode and should be focused on your first breakpoint.
Step 9- Add watch points and press F5 to step through.

Remember when debugging that you need to have 1 chart up with the indicators and strategies you want applied to the chart and the debugger starts stepping through at the very first bar on the chart (not the last bar). It is helpful to "add watch" on selected "indicators" and "time" when debugging.
__________________________________________________________________________________________________________

Sin embargo, cuando pongo los Breakpoints, cambian de ser un punto rojo a una señal de error, con el siguiente mensaje: "El punto de interrupción no se activará actualmente. No se puede cargar ningún símbolo para este documento"

¿Alguna idea?
Oí y olvidé, vi y comprendí, hice y aprendí.

Think out of the box, Make it simple, Think big
Avatar de Usuario
Profit_Warning
Mensajes: 92
Registrado: 03 Jul 2008 13:40
Ubicación: Peipartreidinland

Re: Integración Ninjatrader y Visual Studio 2005

Mensaje por Profit_Warning »

Se les olvidaba un pequeño detalle: además de seleccionar el Modo Debug en Ninjatrader, es necesario compilar en este modo.

Solucionado. Después de todo lo que me he liado, ha sido escribir el mensaje y encontrar la respuesta :D. Espero que le pueda servir a alguien.
Oí y olvidé, vi y comprendí, hice y aprendí.

Think out of the box, Make it simple, Think big
Avatar de Usuario
X-Trader
Administrador
Mensajes: 12800
Registrado: 06 Sep 2004 10:18
Contactar:

Re: Integración Ninjatrader y Visual Studio 2005

Mensaje por X-Trader »

Suele pasar en este Foro, siempre damos como mínimo la inspiración :D

Saludos,
X-Trader
"Los sistemas de trading pueden funcionar en ciertas condiciones de mercado todo el tiempo, en todas las condiciones de mercado en algún momento del tiempo, pero nunca en todas las condiciones de mercado todo el tiempo."
Si te ha gustado este hilo del Foro, ¡compártelo en redes!


Responder

Volver a “Ninja Trader”