Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Error en estrategia automatizada con barras ninzarenko.

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

    Error en estrategia automatizada con barras ninzarenko.

    Buenas tardes,


    Tengo un problema. He creado una estrategia automatizada utilizando las barras ninzarenko. Se basa en el cruce de dos emas. Una rápida y una lenta.

    Está cuando hay mucho volumen me suele marcar unos errores que hacen que la estrategia base desactive. Que puedo hacer ?

    los errores son los siguientes:

    1) Sim, vender stop or vender órdenes stoplimit no pueden ser sometidas a precio arribe de precio del mercado. Orden afectada :sello 1 stop market @18122,25.

    2) La estrategia 'estrategiaRara/319839760' presentó un pedido que generó el siguiente error 'orden rechazada'. La estrategia ha enviado la cancelación de las solicitudes., se intentó encerrar la posición se dio por terminado .

    3) sim101, la orden 9c76791fecda41daa6d582baa5afb737 "no puede ser sometida: OCO ID "70B01F6376AE4EB0B3EB58E427B47A1A" no puede ser reutilizado. Por favor use nuevo IID OCO. orden afectada: sell1 limit @1864.25.


    Adjunto imagenes del error,​
    Last edited by enriqueg_perdomo1; 03-08-2024, 04:21 PM.

    #2
    Hola enriqueg_perdomo1,

    Gracias por escribirnos hoy.

    Tenemos capacidad limitada para proporcionar soporte de plataforma en español; sin embargo, hemos encontrado que este sitio https://www.deepl.com/es/translator puede traducir el inglés al español con buena calidad. Por favor copie nuestra respuesta y luego navegue al sitio que le colocamos para pegar la respuesta en el cuadro hacia la izquierda.

    Tenemos una mayor capacidad para atenderle en español a través del correo electrónico. Si prefiere continuar en español, por favor contáctenos por correo electrónico en Support[AT]NinjaTrader[DOT]com.

    The errors are stating that you had an order submitted to the incorrect side of the market. This can sometimes be due to incorrect logic, though since you mentioned it happens during moments of fast market activity I suspect that what is happening is the order is initially submitted at a valid price, but in the few seconds it takes to be received and reviewed by the broker/exchange the price has moved to the order side of the order so the submitted price is now invalid.
    You can use print statements and TraceOrders to better understand your strategy's behavior:


    Another potential way to prevent this is to set your orders further away from the market to reduce the possibility of the market moving to the other side of the order after it is submitted and before it is accepted by the broker.

    Finally, you could also consider customizing your strategy's RealtimeErrorHandling logic to detect when an order is rejected and, instead of stopping/canceling/closing you could submit alternate logic. For more information on the RealtimeErrorHandling:


    Please let us know if we may be of further assistance.
    Emily C.NinjaTrader Customer Service

    Comment


      #3
      They always happen to me when I set a stop loss or a tralingstop. As opposed to when I only set a stop loss on the opposite crossover.
      Then I don't get the error but as the volume is very strong, it takes the order to exit very far giving me a big loss.

      Isn't there a way to avoid that delay in departure orders with the opposite crossing?
      Last edited by enriqueg_perdomo1; 03-08-2024, 04:46 PM.

      Comment


        #4
        I would like that if there is a solution for this, it would be as easy as possible because I am not a programmer. Could you send me photos of what I should do step by step but in the strategy builder? I would greatly appreciate it.

        Comment


          #5
          Hello enriqueg_perdomo1,

          Thank you for your reply.

          Please provide screenshots of your Stop Loss settings in the Strategy Builder.
          • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
          • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
          ​I look forward to your reply.
          Emily C.NinjaTrader Customer Service

          Comment


            #6
            You have sent me solutions that I should do in the ninja script, something I have no idea how to use... Maybe there is a solution that can be done in the strategy generator.
            Or we could consider a way in which instead of deactivating the strategy it is better to cancel the order but with the strategy active.​

            Comment


              #7
              Originally posted by enriqueg_perdomo1 View Post
              You have sent me solutions that I should do in the ninja script, something I have no idea how to use... Maybe there is a solution that can be done in the strategy generator.
              Or we could consider a way in which instead of deactivating the strategy it is better to cancel the order but with the strategy active.​
              I would like to review the way you have your stop loss set up in the Strategy Builder so I can better understand and assist you. That is why I requested screenshots of those settings. I hope we can find a solution or suggestion to help you so you can continue in the Strategy Builder.
              Please open your strategy in the Strategy Builder and go to the "Stops and Targets" screen. Send me a screenshot of your stop loss settings.
              • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
              • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
              ​I look forward to your reply.​
              Emily C.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Haiasi, 04-25-2024, 06:53 PM
              2 responses
              16 views
              0 likes
              Last Post Massinisa  
              Started by Creamers, Today, 05:32 AM
              0 responses
              4 views
              0 likes
              Last Post Creamers  
              Started by Segwin, 05-07-2018, 02:15 PM
              12 responses
              1,785 views
              0 likes
              Last Post Leafcutter  
              Started by poplagelu, Today, 05:00 AM
              0 responses
              3 views
              0 likes
              Last Post poplagelu  
              Started by fx.practic, 10-15-2013, 12:53 AM
              5 responses
              5,407 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Working...
              X