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
90 millisecond bars
Collapse
X
-
thank you. Is there an example custom bar type I could modify?
> To add a secondary series to an indictor use AddDataSeries().
If I can ask for clarification -- what does "secondary" mean here? I just wanted to send 90msec bars to an EMA, for example.
Thanks!
Comment
-
Hello yodaler,
There are some custom bar types you could use as examples on the User App Share.
(Update March 11th, 2020 – Fix for TickReplay, calculates values if bar object is mid-session and have not been calculated as least once) This is a conversion of the UniRenko ‐ Universal Renko BarType developed and originally coded for the NinjaTrader 7 platform by monpere. Please contact the original author for any questions or comments. […]
Each bar contains data within a US quarter. Jan‐Mar, Apr‐Jun, Jul‐Sep, Oct‐Dec. This differs from using 3 * Monthly bars. I have tested the values quite thoroughly so it should be accurate. Let me know otherwise. You can add this bars type to the menu by clicking Configure.
Custom Renko type for NinjaTrader 8 as discussed in Sylvain Verwoort's July 2014 Stocks and Commodities article 'Exploring Charting Techniques'
The Second bar type is open source and you can copy the logic from this as well.
New -> NinjaScript Editor -> Bartypes -> Second
You are wanting to add this as an additional data series to an indicator you are developing is this correct?
The chart would be the primary data series used for the indicator, and then you could add this 90 millisecond custom bar type to the to the indicator and that would be the secondary series.
Is your indicator calling the EMA and using this added series as the input series for the ema?
The custom bar type is added with the bars id of the custom bar type.
AddDataSeries((BarsPeriodType) 1234, Value = 90
Print(EMA(BarsAarray[1], 14)[0]);
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
1 view
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
6 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
||
Started by timmbbo, Today, 08:59 AM
|
2 responses
10 views
0 likes
|
Last Post
by bltdavid
Today, 04:10 PM
|
||
Started by alifarahani, Today, 09:40 AM
|
6 responses
41 views
0 likes
|
Last Post
by alifarahani
Today, 03:18 PM
|
Comment