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

compiling

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

    compiling

    Hello,


    after working 9 (nine!) years with NinjaTrader I have to do this question now:

    when changing in - customized - indicators code usually I can undo changes with the arrow to the left and redo with the arrow to the right.

    It occurs that after compiling the both arrows are lightgray and it is not possible to use them. So I have to take notes where I made changes and change it back manually!






    Thanks
    Tony
    Last edited by tonynt; 07-11-2018, 05:58 AM. Reason: typing error

    #2
    Hello tonynt,

    Thanks for the note.

    The undo/redo stack is cleared after compiling in NinjaTrader 7. After testing this in NinjaTrader 8, I found that the undo/redo stack is preserved between compiles.

    Please let me know if I may assist further.
    Last edited by NinjaTrader_ChrisL; 07-11-2018, 06:50 AM.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hello ChrisL,


      thank you for your reply. I didnt write I use NT7.


      But I do not understand from your reply because I do changes in indicators and script-strategies for years and compile and save and I can undo - if not closed NinjaTrader Scipt Editor of course in between.


      What might be the reason that sometimes (or now) I can not undo even when not closed the editor after last compiling and saving.


      Thanks
      Tony

      Comment


        #4
        Hello tonynt,

        Thanks for the reply.

        The output that I am getting is when the script is saved or compiled or saved, the undo/redo stack is cleared. I am on version 7.0.1000.38 of NinjaTrader 7. The solution for this would be to use NinjaTrader 8 because the undo/redo persists between compiles and saves.

        Please let me know if I may be of any further assistance.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          Hello ChrisL,


          thank you for your reply. So the situation is that compiling script-strategies is working as expected (you can undo and redo after compiling and savint) but with indicators one can not undo after compiling. This is the difference and I was not aware because I´m used to the script coding therefore I missed this with the indicators.


          But another question at this opportunity please: for coding an indicator I need the Absolute-Number of a value (+2=2 and -2=2) and I found a thread about and a link to microsoft c# or something like this and now I have done in my indicator like


          PriceRange = Math.Abs(Open[0] - Close[0]);


          Is this OK please? (or missing something that will cause issues sometimes?


          Best
          Tony
          Last edited by tonynt; 07-12-2018, 07:28 AM. Reason: Clearifying

          Comment


            #6
            Hello Tony,

            Thanks for the reply.

            That is correct. Math.Abs() is what you would need to get an absolute value.

            Here is the documentation page for reference:


            Please let us know if you have any questions.
            Chris L.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by aa731, Today, 02:54 AM
            0 responses
            4 views
            0 likes
            Last Post aa731
            by aa731
             
            Started by thanajo, 05-04-2021, 02:11 AM
            3 responses
            469 views
            0 likes
            Last Post tradingnasdaqprueba  
            Started by Christopher_R, Today, 12:29 AM
            0 responses
            10 views
            0 likes
            Last Post Christopher_R  
            Started by sidlercom80, 10-28-2023, 08:49 AM
            166 responses
            2,237 views
            0 likes
            Last Post sidlercom80  
            Started by thread, Yesterday, 11:58 PM
            0 responses
            4 views
            0 likes
            Last Post thread
            by thread
             
            Working...
            X