Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
How do I test an edited indicator code without applying changes to the original?
I am still new to NT and I am trying to edit some code on an indicator I downloaded. I am aware that in this process I could make a fatal mistake, so I want to still have the original code intact in case this happens. When I try to make a copy of the original code and Save As with a different name for editing practice, NT wont let me compile to test it. How do I test my modifications to the downloaded ninjascript without permanently changing the original? Thanks
Can you help answer these questions from other members on NexusFi?
You need to save the indicator under a new name via "Save as .... ".
However, in some cases you need to make further changes before compiling. For example this would be the case, if your indicator contains a global object such as an enum. In that case you will need to rename the enum. Make sure that you replace the enum every time when it is called in the code.
If you still cannot fix it, please let us know which indicator you talk about.
The indicator uses public enums "BarType", "Relation", "SwingLengthTypes", "VisualizationTypes", "SwingVolumeTypes", SwingTimeTypes". "SwingDurationTypes" and "SwingTypes".
Search the code for "enum" and you will find them.
All of them need to be replaced with enums with different names, both where they are defined and where they are called within the code.