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

Not Wanting to Mess Up Original Script

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

    Not Wanting to Mess Up Original Script

    I'd like to experiment with a script this weekend using the Intellisense, but don't want to mess up the original script. I ask because once one does Compile, it makes the changes on a chart.

    So before doing Compile, should one do a Save As and then Compile?

    I can't find any examples for changing a bar color based on an indicator or even how to add an arrow based on rising/falling indicator shown over/under a bar. I'm hoping Intellisense will accomplish that. ???

    Just experimenting over the weekend.

    #2
    Hello SharonSS,

    Compiling a script will save it if there are no error(s). Using the Save As command you can create a Indicator with a different name but the same source code which may be the best way to go if you do not want to modify the original code.

    For an example on how to change the bar color you may view our Help Guide at the link below.
    http://www.ninjatrader.com/support/h...l?barcolor.htm

    We do have a reference sample that you may download and view the code as well that Draws Objects based on a condition at the following link.
    http://www.ninjatrader.com/support/f...ead.php?t=3419

    Let us know if we can be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      Originally posted by SharonSS View Post
      I'd like to experiment with a script this weekend using the Intellisense, but don't want to mess up the original script. I ask because once one does Compile, it makes the changes on a chart.

      So before doing Compile, should one do a Save As and then Compile?

      I can't find any examples for changing a bar color based on an indicator or even how to add an arrow based on rising/falling indicator shown over/under a bar. I'm hoping Intellisense will accomplish that. ???

      Just experimenting over the weekend.
      Hi Sharon,

      Open the working code file in editor. Before making any changes, right click and select save as save under new name.

      Edit the new file. The original file remains intact and safe.

      RJay
      RJay
      NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

      Comment


        #4
        Originally posted by NinjaTrader_JC View Post
        Hello SharonSS,

        Compiling a script will save it if there are no error(s). Using the Save As command you can create a Indicator with a different name but the same source code which may be the best way to go if you do not want to modify the original code.

        For an example on how to change the bar color you may view our Help Guide at the link below.


        We do have a reference sample that you may download and view the code as well that Draws Objects based on a condition at the following link.


        Let us know if we can be of further assistance.
        Thanks JC. Actually I use the SampleDrawObject_NT7 on my template. It's a two color BB and doesn't have anything to do with adding arrows, triangles, or whatever. I didn't download the first file as I thought it was an older version.

        I did read that info on the Help Guide which didn't really help me, but I'll try playing with it this weekend.

        Thanks again.

        Comment


          #5
          Originally posted by RJay View Post
          Hi Sharon,

          Open the working code file in editor. Before making any changes, right click and select save as save under new name.

          Edit the new file. The original file remains intact and safe.

          RJay

          Makes sense. Thanks!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by arvidvanstaey, Today, 02:19 PM
          4 responses
          11 views
          0 likes
          Last Post arvidvanstaey  
          Started by samish18, 04-17-2024, 08:57 AM
          16 responses
          61 views
          0 likes
          Last Post samish18  
          Started by jordanq2, Today, 03:10 PM
          2 responses
          9 views
          0 likes
          Last Post jordanq2  
          Started by traderqz, Today, 12:06 AM
          10 responses
          18 views
          0 likes
          Last Post traderqz  
          Started by algospoke, 04-17-2024, 06:40 PM
          5 responses
          48 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X