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




 
Search this Thread

PriceActionSwing discussion

  #211 (permalink)
 dorschden 
Germany
 
Experience: Master
Platform: NinjaTrader
Posts: 112 since Jun 2009
Thanks Given: 59
Thanks Received: 1,143


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

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #212 (permalink)
 buylosellhi 
new york
 
Experience: None
Platform: SierraChart
Posts: 77 since Dec 2010
Thanks Given: 4
Thanks Received: 44

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
  #213 (permalink)
 nmk85roll 
chicago, il
 
Experience: Beginner
Platform: ninja Trader
Posts: 28 since Mar 2010
Thanks Given: 3
Thanks Received: 8


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
  #214 (permalink)
 
djkiwi's Avatar
 djkiwi 
Mercer Island WA
 
Experience: Advanced
Platform: Ninjatrader/Strategy Desk
Broker: Various
Trading: TF/NQ/ES/Stocks
Posts: 561 since May 2010
Thanks Given: 981
Thanks Received: 1,558

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
Click image for larger version

Name:	price action swing.PNG
Views:	873
Size:	243.7 KB
ID:	38231  
Reply With Quote
  #215 (permalink)
 dorschden 
Germany
 
Experience: Master
Platform: NinjaTrader
Posts: 112 since Jun 2009
Thanks Given: 59
Thanks Received: 1,143


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

Started this thread Reply With Quote
Thanked by:
  #216 (permalink)
 dorschden 
Germany
 
Experience: Master
Platform: NinjaTrader
Posts: 112 since Jun 2009
Thanks Given: 59
Thanks Received: 1,143


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

Started this thread Reply With Quote
  #217 (permalink)
 Felix trader 
California - USA/Rio grande do sul-Brasil.
 
Experience: Intermediate
Platform: tradestation, ninja trader
Trading: Futuros
Posts: 88 since Apr 2011
Thanks Given: 851
Thanks Received: 23


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
  #218 (permalink)
sudhir12192
lucknow India
 
Posts: 3 since Dec 2010
Thanks Given: 0
Thanks Received: 0

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

Reply With Quote
  #219 (permalink)
 ap29680 
Simpsonville
 
Experience: Intermediate
Platform: NinjaTrade
Trading: ES, TF
Posts: 4 since Oct 2010
Thanks Given: 2
Thanks Received: 2

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
  #220 (permalink)
inmax
Poland
 
Posts: 16 since Oct 2010
Thanks Given: 11
Thanks Received: 2


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




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