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)
When creating a new thread, note which subforum you are in. Here is a short list of suggestions:
- Topic: Anything to do with an Elite indicator -> Subforum: The Elite Circle
- Topic: Looking for an existing indicator, or how-to use an indicator -> Subforum: (the platform)
- Topic: Programmer needing help with non-Elite indicator -> Subforum: (the platform) - Programming
- Topic: Want an indicator created/modified -> Reply to "Want indicator created free" in Elite Circle
- Topic: Vendors (trading rooms, commercial indicators) -> Subforum: Vendors/Product Reviews
- Topic: Discussion of Forex or Currency trading -> Subforum: Forex and Currency Trading
- Topic: Journals of your trading -> Subforum: Trading Journals or Elite Trading Journals
- Topic: General trading related discussions -> Subforum: Traders Hideout
- Topic: Discussion of a trading method -> Subforum: Traders Hideout
- Topic: Automated Trading -> Subforum: Elite Automated Trading
Last, any Elite Member may create more or less any of these topics in The Elite Circle at your own discretion (your support is appreciated).
This is just a short general list and doesn't cover everything. If you are unsure where to create your new thread, just create it in Traders Hideout and a moderator will move it if necessary.
Thanks Big Mike, is there a particular start and ending coding that I need to put in for Ninja. I have no experience at all in coding and was interested in a couple of indicators but are Trade Station coding.
The easiest way to do it is to edit an existing NinjaTrader indicator, save it under a new name and then modify it. NinjaTrader coding is not easy as Easy Language coding. There are a few things necessary to understand:
Variables section
Declaration of all variables needed.
Initialize section
This section is compiled when NinjaTrader is started, so this part of the indicator is alsoexecuted, when the indicator is not used on a chart. This is used to initialize plots and dataseries objects. There are some further methods that can be used here:
CalculateOnBarClose -> If true, the indicator will only be calculated after the frist tick of the next bar has been registered. If you set it to false, the indicator will be calculated with each incoming tick. Only set indicators to CalculateOnBarClose = false, if you need the real-time update with every tick, because it is CPU intensive.
Overlay -> If true, the indicator will be displayed on the main panel of the chart, if false it will be displayed on another panel.
OnStartUp()
On StartUp is called only once before OnBarUpdate() is executed. Typically you would use it to affect values to variables or check for specific conditions, if this check needs to be done only once,
OnBarUpdate()
This part of the code is executed with each incoming bar. Please be aware that
-> historical bars are made up from a single tick
-> real-time bars may have many ticks
If you use recursive algorithms, make sure that you use them only once per bar. The index for the current bar is stored in the Variable CurrentBar.
Properties
Required fields to allow for input and output of data.
To code NinjaScript indicators, you should at least work through one book for Visual C#.