NexusFi: Find Your Edge


Home Menu

 





PriceActionSwing discussion


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Silvester17 with 177 posts (570 thanks)
    2. looks_two dorschden with 99 posts (1,128 thanks)
    3. looks_3 Big Mike with 52 posts (90 thanks)
    4. looks_4 jmont1 with 51 posts (23 thanks)
      Best Posters
    1. looks_one dorschden with 11.4 thanks per post
    2. looks_two Silvester17 with 3.2 thanks per post
    3. looks_3 Big Mike with 1.7 thanks per post
    4. looks_4 sudhirc with 1.7 thanks per post
    1. trending_up 1,999,247 views
    2. thumb_up 2,963 thanks given
    3. group 625 followers
    1. forum 2,106 posts
    2. attach_file 616 attachments




 
Search this Thread
  #2101 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,777 since Aug 2010
Thanks Given: 1,103
Thanks Received: 6,181


notenufftime View Post
Pardon my inexperience, I am learning.

Are these instructions for the old PAS or NT7?

I cannot find the quoted lines of code in my PAS but am very anxious to implement some other indicators for divergence purposes.

If so, is there a new guide?

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.

You are done and ready to go!

Cheers!


Visit my NexusFi Trade Journal Reply With Quote
  #2102 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,777 since Aug 2010
Thanks Given: 1,103
Thanks Received: 6,181


diegomezhur View Post
Hello Everyone,

Can someone tell me how to add RSI divergence to the indicator? I tried but I don't know the script to add it DataLoaded section.

Thanks in advance!

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.


Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #2103 (permalink)
diegomezhur
VALLE/COLOMBIA
 
Posts: 2 since Apr 2024
Thanks Given: 0
Thanks Received: 0


aligator View Post
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.

Hello Aligator,

The indicator doesn't include the Rsi divergence that is found on the free section.

Do you have a newer version of the Indicator?


Reply With Quote
  #2104 (permalink)
 David1405 
Montreal Canada
 
Experience: Intermediate
Platform: Ninjatrader
Trading: Futures & Options
Frequency: Several times daily
Duration: Minutes
Posts: 1 since Nov 2024
Thanks Given: 0
Thanks Received: 0


TraderCornel View Post
Does anyone here know if Price Action Swing strategy NT8 works with the latest version of PriceActionSwingPro?

found here:

Thanks in advance.

Hey TraderCornel,

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.

Thanks in advance

David


Reply With Quote
  #2105 (permalink)
 LowYield42 
 
Posts: 1 since Nov 2024

nice indicator but it is missing some important swings with long tails no matter how i setup it


Reply With Quote
  #2106 (permalink)
 
xplorer's Avatar
 xplorer 
London UK
Site Moderator
 
Experience: Beginner
Platform: CQG
Broker: S5
Trading: Futures
Posts: 6,233 since Sep 2015
Thanks Given: 15,885
Thanks Received: 16,118


luo363 View Post
nice indicator but it is missing some important swings with long tails no matter how i setup it

Moderator Notice
Moderator Notice


Reply With Quote
  #2107 (permalink)
 
Fi's Avatar
 Fi 
NexusFi
 


Bluebeep View Post
What is the 'indicator' value to add to the private statement above?

@Bluebeep,

You're on the right track. PriceActionSwing (PAS) uses its own custom namespace, so the private declaration looks like this:

 
Code
private PriceActionSwingPro _pas;
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:
 
Code
using PriceActionSwing.Base;
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:

 
Code
if (_pas.CurrentSwingRelation == SwingRelation.HigherHigh) { ... }
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
 
Code
Draw.Line()
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."


Learn more about Fi AI trading companion
IMPORTANT: I can make mistakes! Always verify data before relying on it.

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.
Reply With Quote




Last Updated on May 3, 2026


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts