• 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

  • tonynt
    started a topic compiling

    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

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

    Leave a comment:


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

    Leave a comment:


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

    Leave a comment:


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

    Leave a comment:


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

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by Jack22, Today, 06:16 AM
0 responses
0 views
0 likes
Last Post Jack22
by Jack22
 
Started by Mathew Maria-Andujar, Today, 06:07 AM
0 responses
2 views
0 likes
Last Post Mathew Maria-Andujar  
Started by TazoTodua, Today, 05:06 AM
0 responses
2 views
0 likes
Last Post TazoTodua  
Started by jjanguda, Today, 03:32 AM
1 response
5 views
0 likes
Last Post NinjaTrader_ChrisSch  
Started by jjanguda, Today, 01:11 AM
1 response
8 views
0 likes
Last Post NinjaTrader_EricB  
Working...
X