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!
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
NinjaTrader
compiling
Collapse
X
-
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.
-
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
Leave a comment:
-
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:
-
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:
-
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:
-
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
TonyTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cre8able, Today, 01:16 PM
|
1 response
4 views
0 likes
|
Last Post Today, 01:30 PM | ||
Started by chbruno, 04-24-2024, 04:10 PM
|
3 responses
48 views
0 likes
|
Last Post Today, 01:29 PM | ||
Started by samish18, Today, 01:01 PM
|
1 response
6 views
0 likes
|
Last Post Today, 01:25 PM | ||
Started by WHICKED, Today, 12:56 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by WHICKED, Today, 12:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 01:08 PM |
Leave a comment: