Gracias
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Ninjatrader no me pone OL de salida
Collapse
X
-
Ninjatrader no me pone OL de salida
Hola. Tengo una estrategia en la que me calcula los contratos de entrada en función de mi riesgo y situación del Stop Loss y también me calcula las salidas de los mismos, partiendo desde el 1:1 hasta el 1:2. En caso de que haya más contratos, la distancia de precio entre ambos objetivos se reparte equitativamente entre el resto de contratos. La estrategia me realiza los cálculos correctamente, en el Output me indica los cálculos de las salidas perfectos, pero en la gráfica no pone ninguna salida, solo el Stop Loss calculado. ¿Me pueden ayudar a resolver el problema? Ya no sé por donde mirar la solución, he probado casi todo.
GraciasTags: None
-
Hello JavierCL,
We would need more specific details about the code that you are using to be of assistance here.
It sounds like you are using a print to see what the calculated value is, do you have the print in the same location where you are submitting the stop order?
Have you tried using TraceOrders to check if the order is being ignored?
-
Hi Jesse. I attach 4 screenshots in which you can see the positioning of the Limit Order (1), execution of the entry and correct placement of the Stop Loss but the exit orders are not placed (2). I send you the code of the strategy for purchases (4) and the corresponding output (3). Thank you.
Last edited by JavierCL; 08-15-2024, 02:22 PM.
Comment
-
Hello JavierCL,
When using SetStopLoss you are unable to place limit exit orders, that is blocked by the managed approach. That is to prevent unwanted positions, by placing a exit limit order you are essentially making a second stoploss for a single position, if the market moves into both prices it would fill twice meaning it would exit the position twice. To use the limit exit order you need to stop using SetStopLoss.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
111 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
59 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
38 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
78 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment