Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjatrader no me pone OL de salida

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    Gracias​

    #2
    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?

    Comment


      #3

      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.
      Attached Files
      Last edited by JavierCL; 08-15-2024, 02:22 PM.

      Comment


        #4
        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


          #5

          Ok. Then you could tell me how I should do it? Thank you.

          Comment


            #6
            Hello JavierCL,

            If you want to use the limit exit order you need to remove SetStopLoss. Those two methods cannot be used at the same time. You can use either SetStopLoss or ExitLongLimit and not both.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            88 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            134 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            68 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            119 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            67 views
            0 likes
            Last Post PaulMohn  
            Working...
            X