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)
I think there is no easy way to do this in NinjaTrader. One option would be
- create a chart with 2 data series for stock A and stock B
- then apply a spread indicator to the chart
You would then have a chart with three sections, stock A, stock B and the spread. Spread indicators can be found in the download section of this forum or the NinjaTrader forum.
By the way, the simple difference of two stocks, such as A-B, does not make any sense. You would want to balance the stocks in line with their Beta, if you take any difference. It would be much easier to work with a simple ratio spread, as this already compares the logarithm of price.
Ratio spread indicator can also be found in the download sections.
I got the "spread" indicator to plot the diff, but I'd like to apply haiki ashi to it.
Sadly, "spread" being an indicator itself, I cant apply another indicator to it...
can anyone offer a suggestion on how to get it done?
I was told it IS possible to apply an oscillator to "spread".. sounds like that's applying an indicator to indicator..
The spread indicator uses a particular synchronisation method, which makes it vulnerable of being called by other indicators, so do not expect the usual behaviour. You cannot apply the default Heikin Ashi indicator.
However, there is modified HeikinAshi indicator here
which can be applied to the spread indicator. Select spread with appropriate settings as input series, select a separate panel and set "UseOnMainPanel" to false. You will get a result as shown on the chart below (spread of WTI over Brent).
Do not touch the chart anymore, if you change any settings, it might quickly dissipate.
Here is a link to Ninjatrader support forums where they are discussing ability to have excel exchange data with NT, so excel will take the two live quotes, perform the calculation and send it back to NT in a form of a symbol.
And here they are using "BigMike Excel" plug in to get this done
Then we can add the custom symbol to NT and BAM! we have the spread calculation thats a symbol and can accept indicators, etc...
@Alex91320: I think that this approach is too complex and will not solve the synchronisation issue.
There is a Pairs Suite on the NinjaTrader forum, which has a few bugs (throws exceptions), but it can be used for your purpose with minor modifications.