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

General questions

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

    General questions

    1. If I modify a strategy that's running, how do I get the new changes to take affect?

    2. Can I change a user defined input while the strategy is running?

    3. Is there an example of a basic order management strategy that does some of the following:
    - Move stops
    - Detecting open positions
    - Closing positions

    4. I built a dashboard in Trading Station II, see the attached image, can this be done in Ninja? If so, do you have any examples?

    5. Does Ninja support global variables?

    6. Is there anything I can do to make Renko bar charts load faster?

    Thanks in advance!
    Attached Files
    Last edited by RiversideDude; 04-15-2016, 09:38 AM.

    #2
    Hello RiversideDude,

    Thank you for writing in.

    If you have made changes to your strategy's code while it is still running, you will need to reload the strategy. To do this on a chart, you'll want to press F5 from within the chart, or right-click the chart and select Reload NinjaScript.

    Please note that if you have modified anything in the Initialize() method, you will need to completely remove the strategy and re-add it in order for the changes to take effect.

    We have many reference samples on our support forum: http://ninjatrader.com/support/forum...splay.php?f=30

    You can most certainly have your strategy draw text on your chart. To do this, you'll want to use DrawText() or DrawTextFixed().

    You would most certainly be able to use static variables from within the UserDefinedMethods script that is included with NinjaTrader that all strategies would be able to access and modify.

    To modify the UserDefinedMethods script, click on Tools -> Edit NinjaScript -> Strategy and then select UserDefinedMethods.

    More about the usage of "global variables" in C# can be found here: http://www.dotnetperls.com/global-variable
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply, what about making Renko charts load faster? Is it possible to have Ninja to keep downloading the price data for the default instrument list?

      Thanks!

      Comment


        #4
        Hello RiversideDude,

        As Renko charts are based on tick data, you'd need to reduce the amount of days to load if you would like the chart to load up faster as tick data can be quite resource intensive to load up.

        For your second question, are you asking if it's possible to mass download historical data for your default instrument list? You can do this by clicking on Tools -> Historical Data Manager from within the Control Center. Once the Historical Data Manager appears, select Download. Select your Default instrument list and then you'll be able to specify the span of time and types of data you would like to download.
        Zachary G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by selu72, Today, 02:01 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by WHICKED, Today, 02:02 PM
        2 responses
        12 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by f.saeidi, Today, 12:14 PM
        8 responses
        21 views
        0 likes
        Last Post f.saeidi  
        Started by Mikey_, 03-23-2024, 05:59 PM
        3 responses
        51 views
        0 likes
        Last Post Sam2515
        by Sam2515
         
        Started by Russ Moreland, Today, 12:54 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X