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 NullPointStrategies, Today, 05:17 AM
            0 responses
            44 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            124 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            65 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X