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 jxs_xrj, 01-12-2020, 09:49 AM
        6 responses
        3,290 views
        1 like
        Last Post jgualdronc  
        Started by Touch-Ups, Today, 10:36 AM
        0 responses
        9 views
        0 likes
        Last Post Touch-Ups  
        Started by geddyisodin, 04-25-2024, 05:20 AM
        11 responses
        62 views
        0 likes
        Last Post halgo_boulder  
        Started by Option Whisperer, Today, 09:55 AM
        0 responses
        8 views
        0 likes
        Last Post Option Whisperer  
        Started by halgo_boulder, 04-20-2024, 08:44 AM
        2 responses
        25 views
        0 likes
        Last Post halgo_boulder  
        Working...
        X