Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Not Wanting to Mess Up Original Script

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

  • SharonSS
    replied
    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!

    Leave a comment:


  • SharonSS
    replied
    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.
    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.
    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.

    Leave a comment:


  • RJay
    replied
    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

    Leave a comment:


  • NinjaTrader_JC
    replied
    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.

    Leave a comment:


  • SharonSS
    started a topic Not Wanting to Mess Up Original Script

    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.

Latest Posts

Collapse

Topics Statistics Last Post
Started by wildleanketosale, Today, 03:49 AM
0 responses
1 view
0 likes
Last Post wildleanketosale  
Started by wildleanketosale, Today, 03:48 AM
0 responses
3 views
0 likes
Last Post wildleanketosale  
Started by hiltonvarai, Today, 03:10 AM
0 responses
1 view
0 likes
Last Post hiltonvarai  
Started by afyuwi, Today, 02:33 AM
0 responses
2 views
0 likes
Last Post afyuwi
by afyuwi
 
Started by wushutrades, Today, 01:41 AM
0 responses
5 views
0 likes
Last Post wushutrades  
Working...
X