Announcement

Collapse
No announcement yet.

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 sjsj2732, Yesterday, 04:31 AM
        0 responses
        28 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        284 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        281 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        132 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        90 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X