PriceActionSwing discussion (Page 87) - NinjaTrader | futures.io
futures.io futures trading
 

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader


PriceActionSwing discussion
Started:November 23rd, 2009 (11:23 AM) by dorschden Views / Replies:391,999 / 1,345
Last Reply:12 Hours Ago (10:10 PM) Attachments:423

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike
     

Reply
 423  
 
Thread Tools Search this Thread

PriceActionSwing discussion

Old December 22nd, 2013, 10:02 PM   #861 (permalink)
Elite Member
Greensboro NC
 
Futures Experience: None
Platform: TOS/ NT Dorman
Favorite Futures: ES TF CL
 
Rad4633's Avatar
 
Posts: 1,352 since Sep 2011
Thanks: 2,651 given, 876 received

@dorschden

Can anyone explain how to only plot (x) numbers for the swing percentage settings.....As a example only plot 38-80...and make all other numbers not selected be transparent. Im Trying to keep a cleaner chart and I dont understand the logic to make this happen

thx in advance...this is bugging me and I cant find a solution
R

Reply With Quote
     

Old December 23rd, 2013, 10:36 AM   #862 (permalink)
Elite Member
Cedar Rapids, iowa
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Ninjatrader - Continuum
Favorite Futures: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 626 since Aug 2009
Thanks: 424 given, 1,118 received


Rad4633 View Post
@dorschden

Can anyone explain how to only plot (x) numbers for the swing percentage settings.....As a example only plot 38-80...and make all other numbers not selected be transparent. Im Trying to keep a cleaner chart and I dont understand the logic to make this happen

thx in advance...this is bugging me and I cant find a solution
R

So what you want to do is to evaluate the value of swing percent against a high and low number and if the percent is outside the low - high range then do not print the swing percentage or if it is inside your high and low then do print. You are also implying that the low and high values are adjustable by the user so user input will be needed.


Taking a quick look at the beauty of PriceActionswingPro code, here (I think) is the existing section of interest (under Region Swing value output)

if (showSwingPercent && curHighPercent != 0)
{
DrawText("UpPerc" + swingCounterUp, AutoScale, curHighPercent.ToString() + "%",
CurrentBar - curHighBar, curHigh, textOffsetPercent, textColor, textFont,
StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
}

There is of course more than one way to do this so here is but one suggestion.

It would appear that the above section is selected by user (with the bool showSwingPercent) to display the swing percentage variable curHighPercent

If you added 3 variables (in the variable declaration section):

private bool percentInRange = false ;// Flag to say percent in user selected range to print
private double percentLow = 38 ; // Holds the user select min value for printing
private double percentHigh = 80 ; // Holds the user selected max value for printing


And then you would modify Dorchen's code to:

if (curHighPerecent >= percentLow && curHighPerecent <= percentHigh) percentInRange = true ; // okay to print

if (showSwingPercent && curHighPercent != 0 && percentInRange)
{
DrawText("UpPerc" + swingCounterUp, AutoScale, curHighPercent.ToString() + "%",
CurrentBar - curHighBar, curHigh, textOffsetPercent, textColor, textFont,
StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
percentInRange = false ; // Reset flag
}

Then in the region "Properties" you would need to add two sections for the user input of percentLow and percentHigh.

Again that is one way to do it. In the interest of full disclosure I have not tried this or tested it so proceed with that in mind.

Hope this helps


EDIT: I hope I didn't misunderstand, I offered help based on that you did not want to display the percentage.

2nd Edit: You would need to do the same thing for the other side as well.

"Money is better than poverty, if only for financial reasons." - Woody Allen

Last edited by Tasker_182; December 23rd, 2013 at 10:13 PM.
Reply With Quote
     
The following 6 users say Thank You to Tasker_182 for this post:
     

Old December 24th, 2013, 06:54 PM   #863 (permalink)
Elite Member
Cedar Rapids, iowa
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Ninjatrader - Continuum
Favorite Futures: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 626 since Aug 2009
Thanks: 424 given, 1,118 received



Tasker_182 View Post
So what you want to do is to evaluate the value of swing percent against a high and low number and if the percent is outside the low - high range then do not print the swing percentage or if it is inside your high and low then do print. You are also implying that the low and high values are adjustable by the user so user input will be needed.


Taking a quick look at the beauty of PriceActionswingPro code, here (I think) is the existing section of interest (under Region Swing value output)

if (showSwingPercent && curHighPercent != 0)
{
DrawText("UpPerc" + swingCounterUp, AutoScale, curHighPercent.ToString() + "%",
CurrentBar - curHighBar, curHigh, textOffsetPercent, textColor, textFont,
StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
}

There is of course more than one way to do this so here is but one suggestion.

It would appear that the above section is selected by user (with the bool showSwingPercent) to display the swing percentage variable curHighPercent

If you added 3 variables (in the variable declaration section):

private bool percentInRange = false ;// Flag to say percent in user selected range to print
private double percentLow = 38 ; // Holds the user select min value for printing
private double percentHigh = 80 ; // Holds the user selected max value for printing


And then you would modify Dorchen's code to:

if (curHighPerecent >= percentLow && curHighPerecent <= percentHigh) percentInRange = true ; // okay to print

if (showSwingPercent && curHighPercent != 0 && percentInRange)
{
DrawText("UpPerc" + swingCounterUp, AutoScale, curHighPercent.ToString() + "%",
CurrentBar - curHighBar, curHigh, textOffsetPercent, textColor, textFont,
StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
percentInRange = false ; // Reset flag
}

Then in the region "Properties" you would need to add two sections for the user input of percentLow and percentHigh.

Again that is one way to do it. In the interest of full disclosure I have not tried this or tested it so proceed with that in mind.

Hope this helps


EDIT: I hope I didn't misunderstand, I offered help based on that you did not want to display the percentage.

2nd Edit: You would need to do the same thing for the other side as well.


At the risk of quoting myself, I have quoted myself...

After reviewing the modifications it became apparent that the changes I recommended would not work as originally requested. Briefly, I had forgotten that as the swing developed all of the swing info is readjusted and shifted to match up with the latest high or low which could be the next bar or several more bars. With the code I provided what would happen is that as long as the swing percentage was within the specified limits it would print but as soon as it went out of the limits it would no longer print and while that sounds like what was requested in reality is that the last percentage that was within the limit would stay on the chart but it might be in the middle of the swing!! Again the reason for that is that was the last place (within the swing) it was within limits.

But that is not how the requestor wanted it to work. He clearly only wanted to see the final swing percentages within his limit specification. So here is the original code and the modifications to make it work, shown in RED

Original code in BLUE

if (showSwingPercent && curLowPercent != 0)
{
DrawText("DnPerc" + swingCounterDn, AutoScale, curLowPercent.ToString() + "%",
CurrentBar - curLowBar, curLow, -textOffsetPercent, textColor, textFont,
StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
}


//Again original in blue and modified/added in RED

if (showSwingPercent && curLowPercent != 0)
{

if (curLowPercent >= limitPercentageLow && curLowPercent <= limitPercentageHigh) // Only print when in range
{

DrawText("DnPerc" + swingCounterDn, AutoScale, curLowPercent.ToString() + "%",
CurrentBar - curLowBar, curLow, -textOffsetPercent, textColor, textFont,
StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
}

else
{
RemoveDrawObject("DnPerc" + swingCounterDn) ;
}



So be aware that as the swing is developing, if the percentage falls outside of the user defined limits/range, the percentage will disappear.

NOTE: 1 - The added variables limitPercentageLow and limitPercentageHigh would be identified in the variable section as Double.

Note: 2 - This example covers only the downswing, similar code is needed in the upswing section

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

"Money is better than poverty, if only for financial reasons." - Woody Allen
Reply With Quote
     
The following 6 users say Thank You to Tasker_182 for this post:
     

Old December 27th, 2013, 09:19 PM   #864 (permalink)
Elite Member
New York, NY
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: CL, 6E, ES and Maybe DX for smaller tick value
 
Posts: 688 since May 2011
Thanks: 1,204 given, 438 received

PA Swing Strategy

This request is originally posted in the "free incicator" thread.

@traderpards helped by fixing the specific strategy. But it would be much better if the fix was in the PASwingPro indicator so it could easily be plugged into multiple strategies without the editing.

Wizard generated strategies cannot be manually edited and then continued with the wizard. So once the stratgy is fixed it cannot be modified by Wizard.

May I request someone take a look at the previous post referenced below that includes the attachments? It would be a great help. THANK YOU!


jmont1 View Post
Trying to use PriceActionSwingPro in a strategy (generated by Wizard) but the strategy will not compile due to what appears to be a naming convention in PASwingPro. Can someone review this strategy to see the error? Then look at PAS to see how it could be modified?

Attaching the Strategy PASwingProNo and the PASwingPro CS files I am using because I am not sure if it is at all different from the standard posting.

P.S. Since the strategy fails - you will need to delete it before being able to import other indicators or you will continue to get failures on compiling.

THANK YOU!


Reply With Quote
     
The following user says Thank You to jmont1 for this post:
     

Old December 31st, 2013, 08:40 PM   #865 (permalink)
Trading for Profit
new york
 
Futures Experience: Intermediate
Platform: X Trader, Sierra Charts, Multicharts
Broker/Data: AMP/TT, Vision/Rithmic, AMP/CQG
Favorite Futures: CL, NG, gold
 
Posts: 355 since Mar 2012
Thanks: 665 given, 567 received

Futures Edge on FIO

Are you a NinjaTrader user?

 
I stumbled upon this while looking around for a wyckoff wave volume type of indicator.
I must say this is a fabulous piece of work.
My hat is off to you.

Thank you for your hard work and sharing. It is excellent.

thanks
Shane

Reply With Quote
     

Old January 14th, 2014, 03:17 PM   #866 (permalink)
Trading Apprentice
Dallas
 
Futures Experience: Advanced
Platform: Tradestation, Ensign
Favorite Futures: ES
 
Posts: 11 since Jul 2011
Thanks: 2 given, 3 received

Is there anyway PASPro can duplicate what is in this chart (it's zigzag, but swing highs to swing highs and swing lows to swing lows) ?

Attached Thumbnails
PriceActionSwing discussion-es08.jpg  
Reply With Quote
     
The following user says Thank You to stok for this post:
     

Old January 17th, 2014, 12:02 PM   #867 (permalink)
Elite Member
Naperville IL
 
Futures Experience: Intermediate
Platform: ninjatrader
Broker/Data: NT broker
Favorite Futures: NQ ES 6E GC CL
 
Posts: 951 since Feb 2010
Thanks: 1,184 given, 641 received

can anyone add the function of calculating swing time/points by close? currently the indicator calculates swing time/points by High and Low. thanks

Reply With Quote
     

Old January 29th, 2014, 10:51 AM   #868 (permalink)
Elite Member
israel
 
Futures Experience: Beginner
Platform: ninjatrader
Broker/Data: zen fire
Favorite Futures: NQ
 
Posts: 8 since Sep 2010
Thanks: 9 given, 1 received

sound

can a sound file be added for db and dt ?

Reply With Quote
     

Old January 29th, 2014, 11:51 AM   #869 (permalink)
Elite Member
San Diego
 
Futures Experience: Advanced
Platform: Private
Broker/Data: private
Favorite Futures: CL future
 
Rachel's Avatar
 
Posts: 1,380 since Mar 2012
Thanks: 935 given, 1,947 received

Also


motyalt View Post
can a sound file be added for db and dt ?

LH and HL?

Pretty Please,

Rachel

Reply With Quote
     
The following 2 users say Thank You to Rachel for this post:
     

Old January 29th, 2014, 05:10 PM   #870 (permalink)
Elite Member
Cedar Rapids, iowa
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Ninjatrader - Continuum
Favorite Futures: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 626 since Aug 2009
Thanks: 424 given, 1,118 received



Tasker_182 View Post
At the risk of confusion, I will copy my post and files from the elite indicator thread to here for reference.

"In @dorschden priceaction swing thread, Nicetrade wrote: My previous request for adding audio alert in divergence may be too much since the divergence signal keeps moving till fixed so that might be too many alerts. Then please just add an audio alert for DT/DB with sound file selectable from my hard drive since


Dorschden replied: @nicetrade, I can't promise anything, but maybe in October I'll add the option to use alerts for different things. Until then maybe somebody else can help you.

With apologies to @dorschden (beautiful code bludgeoned by my intrusion) I have modified PriceActionSwingPro. I added one bool to turn on voice alerts for DT/DB, I added two inputs for two separate sound files, I added the simple Playsound in the area when the labels are, so as a result DB/DT labels must be turned on as well. I also created two voice alerts which can be placed anywhere or if you prefer you can use your own sounds. Whichever you use, you will need to input the complete path and filename, for each sound.

With apologies to @jmont1, exposure is something with which i am unfamiliar, thus not my paygrade.

I'm not sure how this will install with the existing PriceactionSwingPro. It is possible that you may have to remove the .CS file and replace it with the one in the attached zip and then recompile."

Regards.


motyalt View Post
can a sound file be added for db and dt ?

I've already done this. Click on the Tasker_182 blue quote button above and it will take you to the quoted post with the indicator and even sound files. Sorry does not include LH or LL or HH or HL

"Money is better than poverty, if only for financial reasons." - Woody Allen
Reply With Quote
     
The following 5 users say Thank You to Tasker_182 for this post:
     

Reply



futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > PriceActionSwing discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

NinjaTrader 8: Features and Enhancements, Tips and Tricks

Dec 6
 

Al Brooks: Stop Losing when a Good Trade goes Bad, Correcting Mistakes

Elite only
 

Trading Technologies: Algo Design Lab hands-on

Dec 13
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Murray Math Discussion? jwhtrades Traders Hideout 5 July 27th, 2011 10:06 PM
Looking for general discussion thread. jctrader Traders Hideout 2 May 2nd, 2011 03:23 PM
PriceActionSwing jeff92887 NinjaTrader 2 March 1st, 2011 07:15 AM


All times are GMT -4. The time now is 10:36 AM.

Copyright © 2016 by futures.io. 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.
 
no new posts

Page generated 2016-12-05 in 0.15 seconds with 20 queries on phoenix via your IP 23.23.54.109