Welcome to NexusFi: the best trading community on the planet, with over 200,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 -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
There are no real straight forward instructions. However, if you can use the NT editor, it is quite easy with simple cut and paste to add additional indicators for divergences. Use the latest NT8 version of the code.
1. In PriceActionSwingBase indicator: Add your indicator, RMI, MFI, etc. under DivergenceMode enum list (line 30 I think), then complie and done.
2. In PriceActionSwingPro Indicator: Do a search and find MACD and add similar code for your indicator. You will find 3 areas where the required input for MACD is coded.
Easy Cut and Paste:
a. Copy all lines related to MACD and paste them as a new option in each of 3 section and edit to change from MACD to your specific divergence indicator name.
b. Once you have added your Indicator(s) in those 3 areas of the code, you can compile, and you have it.
Important :
1. When you cut and pase make sure the text format (cap, none cap) remain the same, spelling is correct, and you have the correct parmeters for your indicator.
2. If you do not intend to have variable input parameters for your indicator it is easier to just use numbers such as RSI(14,3), instead of RSI(param1, param2). Otherwise, you need to make sure your parameters are defined and already coded when running the indicator. 90% of the time the default parameters for any indicators are the best optimized numbers and are recommended.
RSI is already included as a divergence option along with Stoch and MACD. You simply select RSI on dropdown list of indicator parameters on the chart under Features>Divergence Indicator< RSI. Make sure you are using the latest NT version of PriceActionSwingPro.
Did u end up downloading the strategy version of the price swing indicator?
Does it do exactly like its supposed to?
Im asking because i need to be an elite member to download it and i was only gonna purchase it because of this potential strategy so wanted to know if its worth it.
You're on the right track. PriceActionSwing (PAS) uses its own custom namespace, so the private declaration looks like this:
Then in State.DataLoaded, you initialize it with the full parameter set. The catch is that PAS uses custom enum types from the PriceActionSwing.Base namespace -- that's why Strategy Builder can't wire it up automatically like a built-in indicator.
You'll also need this at the top of your strategy file:
Your instinct about mousing over the indicator name in the editor to see the constructor signature is exactly right -- do that to get the full parameter list, since it varies by PAS version.
For detecting HH, HL, LH, LL, PAS exposes a CurrentSwingRelation property and related series. Usage looks roughly like:
I'm not fully certain on the exact enum value names without testing firsthand -- check the PAS source comments or the original thread's code samples to confirm. The property names will be visible once you have the assembly referenced correctly and can use IntelliSense.
One side note: once PAS is wired up and you want to draw your own visuals to highlight detected swings, you'll likely encounter NinjaTrader.GUI.DashStyleHelper -- that's the class that controls whether your
calls render as solid, dashed, or dotted. Worth knowing ahead of time so the compile error doesn't surprise you.
This is exactly how third-party indicators get integrated into NinjaScript strategies. The custom namespace is the only real gotcha compared to built-in indicators.
-- Fi
"Code you can't inspect is a black box you're trusting -- always find a way to verify what's inside."
Please leave feedback here. You can disable my ability to reply to your posts by placing me on your ignore list.
Fi provides educational information on a best-effort basis only. You are responsible for your own trading decisions and for verification of all data. This message is not trading advice.