PriceActionSwing discussion (Page 22) - 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:392,211 / 1,345
Last Reply:December 4th, 2016 (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 April 26th, 2011, 06:36 AM   #211 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received


djkiwi View Post
When I set the statistic to "bottom" or anything else, the statistics box is not showing up like it did with version 1. I am using the latest .4 version. I notice the priceactionswingrelation file is no longer used so not sure and has been updated with the new priceactionswingtrend indicator.

Hey DJ,

On my end the statistic works fine. The statistic is default set to hide, so you have to push the "Show Statistic" button once. Maybe this was the problem?

The PriceActionSwingRelation indicator is replaced by the PriceActionSwingTrend indicator, with the same and more functionality

dorschden

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

Old April 28th, 2011, 08:55 AM   #212 (permalink)
Elite Member
new york
 
Futures Experience: Beginner
Platform: Ninjatrader
Favorite Futures: ES
 
Posts: 41 since Dec 2010
Thanks: 1 given, 5 received

hi,

is it possible to use the swing calculations from your indicator in another indicator - to access the series of swing highs/lows ?

thanks much for your help

Reply With Quote
     

Old May 4th, 2011, 02:28 PM   #213 (permalink)
Elite Member
chicago, il
 
Futures Experience: Beginner
Platform: ninja Trader
 
Posts: 9 since Mar 2010
Thanks: 0 given, 0 received


Hey everyone,

Working on a strategy with this indicator.

Basically, I'm trying to call the status of the indicator, whether its a HL, HH, LL, LH, etc... The swing relation variable groups HL and HH togeter as +1 and LL and LH as -1. Anyway idea on how I can differentiate between the different swings individually?

For example...
DT = +3
HH = +2
HL = +1
LH = -1
LL = -2
DB = -3

Reply With Quote
     

Old May 8th, 2011, 01:25 AM   #214 (permalink)
Identify Evaluate Execute
Mercer Island WA
 
Futures Experience: Advanced
Platform: Ninjatrader/Strategy Desk
Broker/Data: Various
Favorite Futures: TF/NQ/ES/Stocks
 
djkiwi's Avatar
 
Posts: 561 since May 2010
Thanks: 980 given, 1,515 received

Price Action Swing

Hi Dorschden.

Thanks again for the PAS indicator. It continues to be an invaluable addition to trading price action. One item of difference between the old version and this one is the absence of sound alerts which I'm trying to rectify using your suggested inclusions in the code in Post 210. The old sound alerts were very useful as I have 8 instruments firing off new swing sound alerts.

The problem I'm finding with these changes/suggested code however it is firing a sound alert/drawing an arrow (I've substituted the sound alert for a yellow arrow) at any swing position rather than HH/HL then HH etc (please see attached chart). You can see some arrows are HL/LH then an arrow. What I'd like to do is draw the arrow based on HH/HL above HH and LL LH below LL line it did before.

Aggressive v Conservative swing entries

A suggestion to the indicator which would be useful is the inclusion of an aggressive swing signal option. The attached chart is based on a 3 bar Gann drawing a new swing after 3 bars. The problem I'm finding with this signal is it is drawing the swing arrow after the last swing has been violated.

For example in the attached chart we see on the bottom statistic panel the LH followed by LL is 67.3% which is quite favorable. Now the average number of bars in the swing length section is 10 bars. If you look at the chart at 8.17 am it draws a down yellow arrow 8 bars down as soon as the last swing has been violated. This is good for conservative entries but can be a problem as the average swing length is 10 bars so you don't leave much to play with. It would be useful to have this draw the arrow after 3 bars as soon as the swing is formed leaving 7 bars to play with a risk of a 3 bars stop of 15 ticks . This also lines up perfectly with the 5 EMA delta in the chart below moving into negative territory right after the 3 bar swing is formed. By the time the old swing has been formed 8 bars down the average delta is around -150 which is a little late as well.

So I guess the question is how would one incorporate into your indicator a signal after 3 bars in on a LL/LH and HL and HH? In conjunction with delta you could then evaluate the strength of the swing and make a judgement call on whether order flow is supporting the likelihood of a swing violation.

Keep up the good work

Thanks
DJ

Attached Thumbnails
PriceActionSwing discussion-price-action-swing.png  
Reply With Quote
     

Old May 16th, 2011, 08:54 AM   #215 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received

Futures Edge on FIO

buylosellhi View Post
is it possible to use the swing calculations from your indicator in another indicator - to access the series of swing highs/lows ?

Hi buylosellhi,

This isn't possible with this version. You have to add public data series for the swing highs/lows in the PriceActionSwing indicator to get access of this series in other indicators/strategies.


nmk85roll View Post
Working on a strategy with this indicator.

Basically, I'm trying to call the status of the indicator, whether its a HL, HH, LL, LH, etc... The swing relation variable groups HL and HH togeter as +1 and LL and LH as -1. Anyway idea on how I can differentiate between the different swings individually?

Hey nmk85roll,

You can change the code of the swing relation in the "Swing trend/- relation" region of the PriceActionSwing indicator. But I suggest that you add two data series each for highs and lows. As example you can use the swingRelation series.
High example:

 
Code
			
// Higher high

if (curHighRelation == Relation.Higher)
  
swingHighRelation.Set(2);
// Lower High
else if (curHighRelation == Relation.Lower)
  
swingHighRelation.Set(1);
// Double top
else
  
swingHighRelation.Set(3); 
dorschden

Reply With Quote
     
The following 4 users say Thank You to dorschden for this post:
     

Old May 16th, 2011, 09:06 AM   #216 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received


djkiwi View Post
One item of difference between the old version and this one is the absence of sound alerts which I'm trying to rectify using your suggested inclusions in the code in Post 210.

Hi DJ,

The suggested code was only for double tops and bottoms, so it's normal that every arrow is in the region of the last swing. To play a sound every time a new swing is found you have to add the following line in the CalcDnSwing/CalcUpSwing region within the if (!updateLow)/if (!updateHigh) block under the statistic statement.
 
Code
			
...

if (
statisticPosition != StatisticPositions.FalseupStatistic();
// New swing low is found - we're in a down slope
PlaySound("Enter file name here");
... 
Or in your case change the PlaySound statement to a drawArrow statement. If you want only an arrow after a specific swing sequence you have to check for this sequence first at this place and draw an arrow then.




djkiwi View Post
Aggressive v Conservative swing entries

A suggestion to the indicator which would be useful is the inclusion of an aggressive swing signal option.

...This is good for conservative entries but can be a problem as the average swing length is 10 bars so you don't leave much to play with. It would be useful to have this draw the arrow after 3 bars as soon as the swing is formed leaving 7 bars to play with a risk of a 3 bars stop of 15 ticks...

So I guess the question is how would one incorporate into your indicator a signal after 3 bars in on a LL/LH and HL and HH? In conjunction with delta you could then evaluate the strength of the swing and make a judgement call on whether order flow is supporting the likelihood of a swing violation.

The conservative swing is when the swing rules are all true. For standard swings the first point we know that it is a new down swing is when the low of the current bar is smaller than the last 6 bars (or whatever number you set swing size) or the last down swing is broken. To get an aggressive entry you can check for example whether the current bar is smaller than the last 4 bars. By the Gann calculation you can check whether 4 consecutive bars are down bars. Or to make it dynamic for every swing size you can use percent values for example if the 66% of the swing calculation is true, then enter.

To check for a conservative entry you can simple check after the swing calculation region the newLow and newHigh variables whether they are true. For aggressive entries with the Gann swing calculations you can compare the consecutiveBars value with the swingSize minus 33% of the swingSize.
 
Code
			
if (consecutiveBars == (swingSize Math.Round(swingSize 0,330MidpointRounding.AwayFromZero)))

{
    
// Aggressive entry

And with the standard swing calculation you can check for aggressive entries with a simple for-loop. There are ways to increase the performance but this is the simplest way and normally you'll never notice any performance differences.
 
Code
			
bool aggressiveLongEntry true;

int swingSizeTmp swingSize Math.Round(swingSize 0,330MidpointRounding.AwayFromZero);
for (
int i 1swingSizeTmp 1i++)
{
  if (
High[0] <= High[i])
  {
    
aggressiveLongEntry false;
    break;
  }

I didn't test any of this code snippets, but they should work, maybe you have to change them a little bit. There are other ways to get an aggressive entry, but this is a simple one and in most cases a useful one.

I hope this helps a little bit.

dorschden

Reply With Quote
     
The following 7 users say Thank You to dorschden for this post:
     

Old May 27th, 2011, 01:17 PM   #217 (permalink)
Elite Member
California - USA/Rio grande do sul-Brasil.
 
Futures Experience: Intermediate
Platform: tradestation, ninja trader
Favorite Futures: Futuros
 
Posts: 88 since Apr 2011
Thanks: 851 given, 23 received


dorschden View Post
Hi DJ,

The suggested code was only for double tops and bottoms, so it's normal that every arrow is in the region of the last swing. To play a sound every time a new swing is found you have to add the following line in the CalcDnSwing/CalcUpSwing region within the if (!updateLow)/if (!updateHigh) block under the statistic statement.
 
Code
			
...
if (
statisticPosition != StatisticPositions.FalseupStatistic();
// New swing low is found - we're in a down slope
PlaySound("Enter file name here");
... 
Or in your case change the PlaySound statement to a drawArrow statement. If you want only an arrow after a specific swing sequence you have to check for this sequence first at this place and draw an arrow then.





The conservative swing is when the swing rules are all true. For standard swings the first point we know that it is a new down swing is when the low of the current bar is smaller than the last 6 bars (or whatever number you set swing size) or the last down swing is broken. To get an aggressive entry you can check for example whether the current bar is smaller than the last 4 bars. By the Gann calculation you can check whether 4 consecutive bars are down bars. Or to make it dynamic for every swing size you can use percent values for example if the 66% of the swing calculation is true, then enter.

To check for a conservative entry you can simple check after the swing calculation region the newLow and newHigh variables whether they are true. For aggressive entries with the Gann swing calculations you can compare the consecutiveBars value with the swingSize minus 33% of the swingSize.
 
Code
			
if (consecutiveBars == (swingSize Math.Round(swingSize 0,330MidpointRounding.AwayFromZero)))
{
    
// Aggressive entry

And with the standard swing calculation you can check for aggressive entries with a simple for-loop. There are ways to increase the performance but this is the simplest way and normally you'll never notice any performance differences.
 
Code
			
bool aggressiveLongEntry true;
int swingSizeTmp swingSize Math.Round(swingSize 0,330MidpointRounding.AwayFromZero);
for (
int i 1swingSizeTmp 1i++)
{
  if (
High[0] <= High[i])
  {
    
aggressiveLongEntry false;
    break;
  }

I didn't test any of this code snippets, but they should work, maybe you have to change them a little bit. There are other ways to get an aggressive entry, but this is a simple one and in most cases a useful one.

I hope this helps a little bit.

dorschden

Thank you Dorscheden for all your work.
Felix Trader

Reply With Quote
     

Old May 28th, 2011, 02:37 AM   #218 (permalink)
Trading Apprentice
lucknow India
 
Futures Experience: Intermediate
Platform: esignal,tradestation
Favorite Futures: gold
 
Posts: 3 since Dec 2010
Thanks: 0 given, 0 received

CONVERSION OR THIS INDICATOR TO MT4

DEAR
CAN THIS PRICE ACTION INDICATOR BE CONVERTED TO MT4 I SHALL BE OBLIGED FOR THE SAME

Reply With Quote
     

Old May 31st, 2011, 07:55 AM   #219 (permalink)
Elite Member
Simpsonville
 
Futures Experience: Intermediate
Platform: NinjaTrade
Favorite Futures: ES, TF
 
Posts: 3 since Oct 2010
Thanks: 2 given, 2 received

Well Done

This is a great price action indicator. It allows you to trade based upon true price action as the market makes it highs and lows. A great big thanks goes to the developer.

Reply With Quote
     

Old June 3rd, 2011, 10:13 AM   #220 (permalink)
Trading Apprentice
Poland
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: futures
 
Posts: 16 since Oct 2010
Thanks: 11 given, 2 received

The method to determine the swings.


Hi,
Is there a chance to this indicator to identify swings of at least "x" pips ?
The bar colors (trend) would be determined by swings of X pips or more....
Is there any indicator to the NT which determine the swings by number of pips?

Reply With Quote
     

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 03:47 PM.

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-06 in 0.17 seconds with 20 queries on phoenix via your IP 54.161.157.73