This version is a small adjustment due to an omission in the code which is picked up by NT8.0.9.0. Basically the code for Draw.TriangleUp and DrawTriangleDown was missing a reference before CurrentBars, and so causing a drawing objects error.
I have made various adjustments to the D3SpotterV3 indicator, as follows:
• The main adjustment is because the hidden divergences were not having lines drawn between their dots and I have now rectified this. The reason for this is that the lookback period to find, say, a higher high was the same lookback period being used to determine if the lines should be drawn, and this meant that the line for hidden divergences would never be drawn. E.g. I set the lookback period at 10 bars to find higher highs & place a dot, for it to place a dot at a lower high, that lower high has to be more than 10 bars away from any higher highs. That lower high may however create a hidden divergence with a higher high if the indicator plot you are using to spot the divergence, say, Stochastics Fast K, rises between those points. No line will however be drawn because those points are more than 10 bars apart. This means that the lookback period for finding higher highs needs to be less than the lookback period for drawing a line across hidden divergence dots. The look back periods for the dots and the lines therefore need to be set independently. Consequently, I have now included separate lookback periods for regular divergence (rdiv) and hidden divergence (hdiv) lines. I have also set the colour code for hidden divergences to dark blue, and left the regular divergences as dark magenta. If you do not want to display the hidden divergence lines, just set the value to the same as the scanWidth look back period (the ones where the highs are equal or the lows are equal and the indicator plot diverges will still show though).
• I have also reduced the size of the dots by using Draw.Text with wingdings instead of Draw.Dots which link the size of the dot to the size of the price bars.
• I did not import these indicators with the version of D3SpotterV3 that I downloaded, and so I have commented out the code for them in the indicator. (CCI_JMA_MASM, DO, SMI, JMA_MASM).
• If you import this indicator into NT8 for use, then you will need to exclude any of version to D3SpotterV3 from compilation, or add something line a number to the ends of Lines 24 and 45 for more than one version to work together.
o Ln 24: public enum D3SpotIndicatorMethod
o Ln 45: public enum D3Sp
This is a conversion of the NT7 indicator D3SpotterV3. Please contact the original author for any questions or comments.
Indicators: CCI, DerivativeOscillator, MACD, MACDdiff, MACDdiffonly, MFI, Momentum, ROC, RSI, RVI, SMI, StochasticD, StochasticK, StochasticFastD, StochasticFastK, StochRSI
Created By | GeorgeW |
NinjaTrader Version | 8 |
File Size | 34.8 KB |
Create Date | 09/26/2017 |
# of Downloads | 3032 |
Importing to NinjaTrader 8 is Easy!
To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:
- Download the app or add-on file to your desktop
- From the NinjaTrader Control Center window, select the menu Tools > Import > NinjaScript Add-On…
- Select the downloaded file from your desktop
Questions?
Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.