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,125 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 979,173 views
    2. thumb_up 2,948 thanks given
    3. group 613 followers
    1. forum 2,093 posts
    2. attach_file 615 attachments




 
Search this Thread

PriceActionSwing discussion

  #1941 (permalink)
 
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


Big Mike View Post
If there is indeed an official new one, please get my attention so I can update the downloads section and send out notices.

Sent using the NexusFi mobile app

@Big Mike, I believe there's an updated version somewhere that never made it to the download section:





dorschden View Post
I'll fixed the code in a way that the divergence should work no matter how many bars are loaded. I have sent @Big Mike the updated version almost two weeks ago, but he didn't came around to upload it here in the forum until now. I can't upload a new version myself to the Free Section in the download area.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
About a successful futures trader who didnt know anythin …
Psychology and Money Management
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
 
  #1942 (permalink)
 
makhmout's Avatar
 makhmout 
Russia, Kazan
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES
Posts: 9 since Feb 2012
Thanks Given: 4
Thanks Received: 1

Hello all!

Please explain how to get from Priceactionswing indicator by the request from another indicator:
1. Most recent trough/peak value
2. Number of bars since it
3. 2nd most recent trough/peak value
2. Number of bars since it

Thank you!

Sent using the NexusFi mobile app

Reply With Quote
  #1943 (permalink)
 DMK10001 
McDonough + GA/USA
 
Experience: None
Platform: NinjaTrader
Trading: Emini ES + RTY
Posts: 1 since Jan 2021
Thanks Given: 0
Thanks Received: 0


Thank you for this great tool. I am attempting to install in NT8, fresh install, but getting an error on the SimpleFont textFont = new SimpleFont("Courier", 15);

Where can I get this to successfully compile?

Reply With Quote
  #1944 (permalink)
 
lolu's Avatar
 lolu 
Lagos, Nigeria
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader, SierraChart
Trading: Euro Currency & Oil
Frequency: Daily
Duration: Hours
Posts: 2,552 since Jun 2009
Thanks Given: 1,049
Thanks Received: 1,678

@dorschden

Do we have the new version now ? Is it in the Download section ? Please, confirm.

Lolu

Visit my NexusFi Trade Journal Reply With Quote
  #1945 (permalink)
 rickr 
Waynesville, NC USA
 
Experience: Intermediate
Platform: NT8 & Jigsaw
Broker: NT Clearing
Trading: NQ, ES
Posts: 111 since Mar 2010
Thanks Given: 4,120
Thanks Received: 73


Big Mike View Post
If there is indeed an official new one, please get my attention so I can update the downloads section and send out notices.

Sent using the NexusFi mobile app

It has been a month now . . . since requested . . . please post latest version in downloads and this thread . . .

Thank you sincerely.

rickr
Follow me on Twitter Reply With Quote
  #1946 (permalink)
OAlejandro314159
Las Vegas, Nevada
 
Posts: 16 since Jan 2021
Thanks Given: 2
Thanks Received: 4

YOU KNOW WHAT WOULD BE AN AWESOME FEATURE for the Price Action Swing indicator?

If it would count ALL the swing lengths of that day >>> and then give the total amount of TICKS in swings that the instrument traveled or moved that day.

That way we can compare the amount of ticks that you got at the end of the day >>> with the total amount of ticks that the market moved for that day or trading session.


for example let's just say hypothetically >>> a market is sideways >>> and also hypothetically >>> it only moved 3 'swings'.

It moved up 15 ticks.... down 20.... then up 15 again >>>> just throwing completely random numbers out there.

So this market moved 50 ticks total >>> 15 + 20 + 15 = 50 ticks.


Lets say you are a starting trader >>> and you were able to get the UP swings >>> then you have 30 ticks ( minus spread in real life... etc. )

So you got 30 ticks / 50 ticks = 60 % of the trading range / volume


if you are more professional then you would have also gotten the other direction and been closer to the 50 ticks.


So basically the goal is to keep getting higher and higher in percentage of ticks of the day.... or trading session. Like you trade only the U.S. Open Session

Reply With Quote
  #1947 (permalink)
 
AlexSobol's Avatar
 AlexSobol 
Sumy, Ukraine
 
Experience: Beginner
Platform: NinjaTrader
Posts: 59 since Apr 2019
Thanks Given: 113
Thanks Received: 105


makhmout View Post
Hello all!

Please explain how to get from Priceactionswing indicator by the request from another indicator:
1. Most recent trough/peak value
2. Number of bars since it
3. 2nd most recent trough/peak value
2. Number of bars since it

Thank you!

Sent using the NexusFi mobile app

You need to make your own Series<T> within Priceactionswing. Are you using NT8?

Reply With Quote
Thanked by:
  #1948 (permalink)
 
makhmout's Avatar
 makhmout 
Russia, Kazan
 
Experience: Advanced
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: CL, ES
Posts: 9 since Feb 2012
Thanks Given: 4
Thanks Received: 1


AlexSobol View Post
You need to make your own Series<T> within Priceactionswing. Are you using NT8?

Thanks for reply.
Yes, NT8.

Can you show some example to do that please?

Thanks in advance

Reply With Quote
  #1949 (permalink)
 jmont1 
New York, NY
 
Experience: Intermediate
Platform: NinjaTrader8
Broker: Data = Rithmic -- Gives 70 Level II Data
Trading: 6C (Low Margin,) 6E, CL, GC, ES and Maybe DX for smaller tick value
Posts: 1,394 since May 2011
Thanks Given: 1,719
Thanks Received: 1,020


OAlejandro314159 View Post
YOU KNOW WHAT WOULD BE AN AWESOME FEATURE for the Price Action Swing indicator?

If it would count ALL the swing lengths of that day >>> and then give the total amount of TICKS in swings that the instrument traveled or moved that day.

That way we can compare the amount of ticks that you got at the end of the day >>> with the total amount of ticks that the market moved for that day or trading session.


for example let's just say hypothetically >>> a market is sideways >>> and also hypothetically >>> it only moved 3 'swings'.

It moved up 15 ticks.... down 20.... then up 15 again >>>> just throwing completely random numbers out there.

So this market moved 50 ticks total >>> 15 + 20 + 15 = 50 ticks.


Lets say you are a starting trader >>> and you were able to get the UP swings >>> then you have 30 ticks ( minus spread in real life... etc. )

So you got 30 ticks / 50 ticks = 60 % of the trading range / volume


if you are more professional then you would have also gotten the other direction and been closer to the 50 ticks.


So basically the goal is to keep getting higher and higher in percentage of ticks of the day.... or trading session. Like you trade only the U.S. Open Session

@OAlejandro314159, I think that might have been a capability in NT7 version as statistics. It could estimate average swing sizes for a period. Unfortunately it was not carried over to NT8 version.
Run NT7 and see if it is what you are looking for. IF so then maybe someone could either add it to PAS or create it as a new separate indicator which I would prefer.

Reply With Quote
  #1950 (permalink)
 
AlexSobol's Avatar
 AlexSobol 
Sumy, Ukraine
 
Experience: Beginner
Platform: NinjaTrader
Posts: 59 since Apr 2019
Thanks Given: 113
Thanks Received: 105



makhmout View Post
Thanks for reply.
Yes, NT8.

Can you show some example to do that please?

Thanks in advance

I share my edition bc it'll take eternity to explain this. I use this in my strategies. Code is pretty simple really. Everything that marked as "garbage" is my code so you can compare to original.

Add this to your indicator/strategy:

 
Code
using PriceActionSwing.Base;  // declaration

        private NinjaTrader.NinjaScript.Indicators.PriceActionSwing.PriceActionSwing PriceActionSwing1; // variable 
        private SimpleFont textFont = new SimpleFont("Courier", 8); //font

            else if (State == State.DataLoaded)
            {
                PriceActionSwing1 = PriceActionSwing
    (Close, SwingStyle.Standard, 7, 1, false, SwingLengthStyle.Points, SwingDurationStyle.False, true, false, false, SwingTimeStyle.False, SwingVolumeStyle.False, VisualizationStyle.Dots_ZigZag, textFont, 15, 30, 45, 60, 75, 90, NinjaTrader.Gui.DashStyleHelper.Solid, 1, true, true); // change it depending on your needs
                AddChartIndicator(PriceActionSwing1); //only for strategies 
}

Make own variables to call values like this:

 
Code
//1. Most recent trough/peak value
            UpPrice   =  PriceActionSwing1.SwingHighPrice[0];
            DownPrice = PriceActionSwing1.SwingLowPrice[0];

//2. Number of bars since it Calculate it like this CurrentBar-UpBar
            UpBar = PriceActionSwing1.SwingHighBar[0];
            DownBar = PriceActionSwing1.SwingLowBar[0];

//Swings length
            UpLength = PriceActionSwing1.SwingHighLength[0];
            DownLength = PriceActionSwing1.SwingLowLength[0];

//3. 2nd most recent trough/peak value
//2. Number of bars since it
You should use UpFlip and DownFlip.


 
Code
PriceActionSwing1.UpFlip[0]; //up swing starts, bool series, true if it's first bar of new up swing
PriceActionSwing1.DownFlip[0]; // down swing starts, bool series, true if it's first bar of new down swing

Store your current swing low price/length/bar in another variable so when DownFlip == true it becomes your old swing low.
I think it's possible to access to historical swings high/low within PAS but honestly I don't know how. I use UpFlip/DownFlip and it's works like a song.

He is a pic of showing those flips. Red arrows are first bars of swing down. Green - swing up. Swing size == 7.



I hope it helps.

Attached Files
Elite Membership required to download: PriceActionSwing.cs
Reply With Quote
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