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,124 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 965,554 views
    2. thumb_up 2,947 thanks given
    3. group 613 followers
    1. forum 2,093 posts
    2. attach_file 615 attachments




 
 

PriceActionSwing discussion

 
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,399 since Jun 2009
Thanks Given: 33,174
Thanks Received: 101,539

I should add that I am not trading the same type of divergence as you. I am more interested in volume vs price relationship over the entirety of a swing level (3%), combined with volume profile.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
Deepmoney LLM
Elite Quantitative GenAI/LLM
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Build trailing stop for micro index(s)
Psychology and Money Management
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
23 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
 
 
wldman's Avatar
 wldman 
Chicago Illinois USA
Legendary Market Wizard
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
Frequency: Several times daily
Duration: Hours
Posts: 3,507 since Aug 2011
Thanks Given: 2,046
Thanks Received: 9,491

I appreciate that @Big Mike .

I have the attention span of a young squirrel so if I don't feel like I am trading or about to trade I get distracted...today it was episode 1 season 1 of Game of Thrones. Saw last night on HBO...now I'm addicted.

I have been working on expanding time frame as I do tend to over trade when things are slow which endears me only to the broker. I am very good at selectivity most of the time. This is residual from a time when we'd kill each other to be first, on every trade, and for as much size as we could get. Those days are LONG GONE, but very difficult for me to adjust to.

Just though if this could give me a visual aid on divergence (price/KVO) that I'd try to add the tool.

Dan

Visit my NexusFi Trade Journal
 
 
Raj1's Avatar
 Raj1 
Toronto
 
Experience: Beginner
Platform: Ninja Trader
Broker: AMP FUTURES/ZENFIRE
Trading: YM
Posts: 130 since Jul 2009
Thanks Given: 253
Thanks Received: 58


@wldman:

% swing size settings helps to print the pivots (HH,HL,LL & LH) and nothing to do with divergence plotting.

Momentum indicators viz., MACD, CCI, anaKVO does the work of plotting divergence lines.

As @Silvester17 expalined in his previous posting , in my opinion, swing size based on Ticks ( say, 13 or 20) gives a reasonable pivots and divergence indications.

Also, I guess , once a divergecne line is printed, the code starts looking for subequent peaks in price action and momentum osillator to print the next divergence line and hence we shouln't look for divergences based on peaks prior to last divergence line.

Appreciate @Silvester17 view on my above understanding.

Request @ silvester17 's help to include CCI and anaKVO indicators in the new version of PASPro just posted by @dorschden

Regards,

Raj1




wldman View Post
@Raj1

You mean @Silvester17 , right?

Yes, I affirm the quandary. Is it better to have anaKVO in there or a % swing? Since I do not know how the % swing will be different, I'm staying with the Silvester17 version that has the anaKVO included.

I know you are swamped @Big Mike , but if you could share on % for the swing divergence setting I would be glad to hear it.

On this chart I have two PAS pro iterations and I still feel like I am missing things...so I will have to figure that out or stay as a manual dee ver gance spotter. ANY educated relevant input appreciated.



Thanked by:
 
 
wldman's Avatar
 wldman 
Chicago Illinois USA
Legendary Market Wizard
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
Frequency: Several times daily
Duration: Hours
Posts: 3,507 since Aug 2011
Thanks Given: 2,046
Thanks Received: 9,491

Raj, when I change the number of ticks that changes the plots for the divergence piece.

Visit my NexusFi Trade Journal
 
 
wldman's Avatar
 wldman 
Chicago Illinois USA
Legendary Market Wizard
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
Frequency: Several times daily
Duration: Hours
Posts: 3,507 since Aug 2011
Thanks Given: 2,046
Thanks Received: 9,491

red/green is a 13 tick setting.

grey/pink is a 5 tick setting.

I guess as a pig, I want to see all the good ones!


Visit my NexusFi Trade Journal
 
 
Raj1's Avatar
 Raj1 
Toronto
 
Experience: Beginner
Platform: Ninja Trader
Broker: AMP FUTURES/ZENFIRE
Trading: YM
Posts: 130 since Jul 2009
Thanks Given: 253
Thanks Received: 58

@wldman:

Have you loaded PASPro indicator twice in this chart?

What momentum indicator setting did you use to get these divergence plots?




wldman View Post
red/green is a 13 tick setting.

grey/pink is a 5 tick setting.

I guess as a pig, I want to see all the good ones!



 
 
wldman's Avatar
 wldman 
Chicago Illinois USA
Legendary Market Wizard
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
Frequency: Several times daily
Duration: Hours
Posts: 3,507 since Aug 2011
Thanks Given: 2,046
Thanks Received: 9,491

Two iterations of PASPro, one swing size 5, one 13.



compare that with a single iteration set to swing size 7.




Essentially the 13 setting in confluence with my "regular" veiw, picked the low and the high today...lol
The point for me is that I want to see all the divergence opportunities and I want to decide which ones are "good". There seems to be no perfect setting for that....so two iterations with different coloring, for now, and that still doesn't "win"....so a work in progress for sure.

Dan

Visit my NexusFi Trade Journal
Thanked by:
 
 
Raj1's Avatar
 Raj1 
Toronto
 
Experience: Beginner
Platform: Ninja Trader
Broker: AMP FUTURES/ZENFIRE
Trading: YM
Posts: 130 since Jul 2009
Thanks Given: 253
Thanks Received: 58

@wldman:

Which version of PASPro are you using?

Is it the new version just downloaded by @Dorschdan?




wldman View Post
Two iterations of PASPro, one swing size 5, one 13.



compare that with a single iteration set to swing size 7.




Essentially the 13 setting in confluence with my "regular" veiw, picked the low and the high today...lol
The point for me is that I want to see all the divergence opportunities and I want to decide which ones are "good". There seems to be no perfect setting for that....so two iterations with different coloring, for now, and that still doesn't "win"....so a work in progress for sure.

Dan


 
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,527


Raj1 View Post
@wldman:

% swing size settings helps to print the pivots (HH,HL,LL & LH) and nothing to do with divergence plotting.

Momentum indicators viz., MACD, CCI, anaKVO does the work of plotting divergence lines.

As @Silvester17 expalined in his previous posting , in my opinion, swing size based on Ticks ( say, 13 or 20) gives a reasonable pivots and divergence indications.

Also, I guess , once a divergecne line is printed, the code starts looking for subequent peaks in price action and momentum osillator to print the next divergence line and hence we shouln't look for divergences based on peaks prior to last divergence line.

Appreciate @Silvester17 view on my above understanding.

Request @ silvester17 's help to include CCI and anaKVO indicators in the new version of PASPro just posted by @dorschden

Regards,

Raj1

@Raj1,

yes, I see it the same way. the pas pro will compare swing highs (lower or higher) and if the divergence indicator shows a divergence, the line gets printed. the same for swing lows:



about adding indicators to the pas pro. I believe I created a huge mess with all the indicators I posted. really confusing.

I was hoping we could make a list with system indicators we want for divergences. and then add all of them in one modified pas pro and base. and the same for custom indicators. I would not mix them or even add a custom indicator to the original. there's always a chance the custom indicator gets changed/modified, meaning someone would have to keep track on any new version. don't think that would be in @dorschden best interest.

maybe @dorschden could tell us how he prefers this matter.

you could also keep your current version and just make a small change for the percent swing < 1. here's what you have to change:

"Math.Max(1, value);" to "Math.Max(Double.MinValue, value);"

 
Code
/// <summary>
        /// Represents the swing size. e.g. 1 = small swings and 5 = bigger swings.
        /// </summary>
        [GridCategory("Parameters")]
        [Description("Represents the swing size. e.g. 1 = small swings and 5 = bigger swings.")]
        [Gui.Design.DisplayName("02. Swing size")]
        public double SwingSize
        {
            get { return swingSize; }
            set { swingSize = Math.Max(Double.MinValue, value); }
        }
the highlighted red is all you have to change.

the location is region properties > region parameters > 02. swing size



if that doesn't work, let me know and we'll find another way

 
 
Raj1's Avatar
 Raj1 
Toronto
 
Experience: Beginner
Platform: Ninja Trader
Broker: AMP FUTURES/ZENFIRE
Trading: YM
Posts: 130 since Jul 2009
Thanks Given: 253
Thanks Received: 58


@Silvester17:

Eventhough, there is a mismatch of line numbers between your example code and mine, I did revise the code exactly as you advised.

It worked.

Thanks a lot.

Raj1


Silvester17 View Post
@Raj1,

yes, I see it the same way. the pas pro will compare swing highs (lower or higher) and if the divergence indicator shows a divergence, the line gets printed. the same for swing lows:



about adding indicators to the pas pro. I believe I created a huge mess with all the indicators I posted. really confusing.

I was hoping we could make a list with system indicators we want for divergences. and then add all of them in one modified pas pro and base. and the same for custom indicators. I would not mix them or even add a custom indicator to the original. there's always a chance the custom indicator gets changed/modified, meaning someone would have to keep track on any new version. don't think that would be in @dorschden best interest.

maybe @dorschden could tell us how he prefers this matter.

you could also keep your current version and just make a small change for the percent swing < 1. here's what you have to change:

"Math.Max(1, value);" to "Math.Max(Double.MinValue, value);"

 
Code
/// <summary>
        /// Represents the swing size. e.g. 1 = small swings and 5 = bigger swings.
        /// </summary>
        [GridCategory("Parameters")]
        [Description("Represents the swing size. e.g. 1 = small swings and 5 = bigger swings.")]
        [Gui.Design.DisplayName("02. Swing size")]
        public double SwingSize
        {
            get { return swingSize; }
            set { swingSize = Math.Max(Double.MinValue, value); }
        }
the highlighted red is all you have to change.

the location is region properties > region parameters > 02. swing size



if that doesn't work, let me know and we'll find another way


Thanked by:

 



Last Updated on January 7, 2024


© 2024 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 - Privacy Policy - Downloads - Top
no new posts