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.
Last edited by sam028; July 10th, 2010 at 09:28 AM.
Reason: small typ'o
The following 3 users say Thank You to Fat Tails for this post:
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.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).
The following user says Thank You to Fat Tails for this post:
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...
Just a thought.....
Last edited by Alex91320; January 29th, 2012 at 08:59 PM.