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

Run only one time experts - is it possible?

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

    Run only one time experts - is it possible?

    In Metatrader, in addition to indicators and experts (like in Ninja) also present so called scripts. This is a kind of expert running only one time. Trader simply drag and drop desired script to main chart, script starting - doing its work - and immediatly exit after all done, exept cases when script have continious loop like while (true) { .... }

    Such kind of execution is very useful for example to close all opened or limit orders and in some other cases.

    Does Ninja have such feature? How can I run appropriate expert not all live time, but only once, manualy when it is nessesary for me?

    #2
    Zencoder, welcome to the forums! Unfortunately I am not aware of an indicator/strategy that would run just once and close out all positions/cancel all orders. You could possibly utilize the Automated Trading Interface and create an application to read in all positions and orders and take the appropriate action, but that would not be 100% within the NinjaTrader application.
    AustinNinjaTrader Customer Service

    Comment


      #3
      yes, but expert work continiosly after attaching them to the chart. Instead of this, I need just another thing: make a "short shot" - for example: close 12 orders during one second (while price is not go far away). So, haw can I do this onetime action if I have appropriate source code which doing this job?

      Comment


        #4
        Zencoder, calling a strategy "expert" from an indicator or such is not supported. You'll have to code to the Automated Trading Interface if you're looking to automatically cancel a bunch of orders.
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by sephichapdson, Today, 11:36 PM
        0 responses
        1 view
        0 likes
        Last Post sephichapdson  
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,612 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        9 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        19 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        6 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Working...
        X