• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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:
            https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx

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

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by 911C4S, Today, 06:51 AM
            0 responses
            5 views
            0 likes
            Last Post 911C4S
            by 911C4S
             
            Started by dlanthana, Today, 06:24 AM
            0 responses
            12 views
            0 likes
            Last Post dlanthana  
            Started by cupir2, 10-13-2018, 04:39 PM
            8 responses
            70 views
            0 likes
            Last Post NinjaTrader_JaredM  
            Started by jg123, Today, 03:34 AM
            0 responses
            8 views
            0 likes
            Last Post jg123
            by jg123
             
            Started by Zeos6, Today, 02:48 AM
            0 responses
            5 views
            0 likes
            Last Post Zeos6
            by Zeos6
             
            Working...
            X