Please discuss the PriceActionSwing (PAS) indicator in this thread. Any comments or suggestions are more than welcome here. If you have a more private issue send me a PM or better an Email (you'll find the address in the top of the PriceActionSwing.cs script). Discussion about the newest version started here (last update 05.06.2014).
Market analyzer template
You can download a market analyzer template in this post. It contains ABC signals, swing trend direction and divergence signals.
Strategy development
In this post you find a strategy sample code snippet which shows how to use the swing trend in a strategy. Start reading at "strategy development".
Versions
The PriceActionSwing calculates swings in different ways and displays all kind of information about the swings above and below them. If you just want to visualize swings then you should use this version.
There is also a PriceActionSwingPro version that contains in addition to the normal version some features which are all off at default. The features are:
- Draw automatically Fibonacci extensions and retracements
- Calculate a swing statistic
- Calculate and visualize ABC patterns
- Risk management (automatically for ABC patterns)
- Calculate and visualize divergence based on an indicator
- Use @gomi's most outstanding cumulative delta work for swings
Settings
Every setting in the NinjaTrades's indicator menu has a short description. Here is a short list of the more important ones.
Parameter:
Double top/-bottom strength:
Represents the double top/-bottom strength. Increase the value to get more double tops and -bottoms.
Swing size:
Represents the swing size. e.g. 1 = small swings and 5 = bigger swings. Which size you use depends on your trading style. There is no best setting for everybody.
Swing type:
Represents the swing type. In the "Standard" swing type a new swing is found when price is above or below the high or low of the last N bars and N = Swing size. The "Gann" type is calculated based on Gann's rules for swings.
Swing values:
Here you can choose which information the swings should display.
Information:
- Duration (in bars)
- Labels (HH, HL,…)
- Length (in ticks, points,…)
- Percentage (in relation to the last swing. e.g. 100% = DT/DB)
- Time
- Volume (Absolute and relative. Relative is the average volume per bar)
Swing visualization type:
Represents the swing visualization type. Dots | Zig-Zag lines | Dots and lines | Gann style. E.g. if you want only dots to visualize the swings choose "Dots".
Visualize swings/patterns:
Here you can choose your own look and feel for the visualization of the swings and the patterns.
Swing features:
Here you can turn the features on and off.
Statistics:
Swing Length shows the up and down swing length in ticks. The "Last Length" column is the average of the last N swings and N = "Statistic number of swings".
Swing relation for a specific swing (first column) the percentage amount of swings that follow this specific swing. E.g. the values of the first row (Higher High) are:
Swing Count Higher High Lower High Higher Low Lower Low
48 47,9% 52,1% 72,9% 22,9
Then you can interpret this as a Higher High is followed in 72,9% of all cases by a Higher Low and only in 22,9% by a Lower Low. 72,9% + 22,9 % = 95,8%. The remaining amount is for a double bottom.
Risk management:
You can use this feature for to calculate the your trade quantity and see the risk reward ratio and/or you can use it to trade the ABC pattern. Set your trading capital in "Account size" and your risk in "Account risk per trade".
Divergence:
Here you can set all settings to display a divergence in the chart.
Div indicator:
Represents the indicator for the divergence calculations. You can add one or more indicators in the source code under the value "custom". Here you find instructions how to create divergence signals based on a freely chosen indicator.
Param1, Param2, Param3
Represents the first parameter for the indicator you choose. E.g. the standard MACD(12,26,9) would be
Param1 = 12
Param2 = 26
Param3 = 9.
GomCD:
To use cumulative delta for the swings or divergence you have to uncomment all GomCD regions in the source code. Press "ctrl + F" or the "Find/Replace" button and search for "region GomCD" and uncomment all the regions and compile it. Of course you have to install the Gom package before.
The PAS indicator is very useful to see and trade pure price action with HH, HL in up trends and LL, LH in down trends and you can easily identify swing patterns like M, W, wedged, HS,…
New NT7 statistic panel
Swing labels
Any comments and suggestions are welcome!
dorschden
Tip
BEST OF TRADING 2011 AWARD
PriceActionSwing was nominated for the Best Indicator Of The Year for 2011, and won 1st place (Gold).
Tip
BEST OF TRADING 2010 AWARD
PriceActionSwing was nominated for the Best Indicator Of The Year for 2010, and won 3rd place (Bronze).
Very nice! I have been trying to program an improved swing indicator myself, but this one looks great! How have you been using this in your trading strategy?
The following user says Thank You to Dusty909 for this post:
I uploaded a new version in the download section with Fibonacci retracements, Fibonacci extensions and an visual entry area for the AB=CD pattern.
With NinjaTrader 7 it's easy to set draw objects in the future and with this feature it's possible to visualize the AB=CD pattern in a better way. But for now the Fibonacci tools must reach.
I'm not an elite member. When I should add some stuff to PriceActionSwing write this in this thread and I'll see what I can do. Otherwise you can use my code (many comments, I think easy to read) and add some snippets in the other swing indicator.
For my trading style a good swing indicator is essential. Because I often trade price pattern. Next step is to automate the pattern recognition.
I also create a strategy that trades double bottoms/tops with this indicator. As entry trigger you can use almost everthiny: a stochastic cross, MA cross, 3 bar reversal,... the stop is 2 ticks below the double bottom and profit target is the last swing high or let it run with an atr stop, PSAR, TSSuperTrend. Short vice versa. The results are good, but not extraordinary.
The following 5 users say Thank You to dorschden for this post:
First off, thanks for this wonderful indicator. I've been working with ZigZagUTC to use in my strategies with little luck (due to my poor c# skills). Your indicator would seem to do exactly what I need with the PriceSwingRelation dataseries.
This is probably a very basic C# question, so pardon my lack of coding knowledge. Can you provide an example of calling this indicator by a strategy to determine the values held in the PriceSwingRelation dataseries?
i.e. if (PriceActionSwing(SwingMode, dtbStrength, span).PriceSwingRelation == #
&& ...
&& ... )
{ do something }
What is the required syntax for the "SwingMode" variable when calling the indicator? I've tried many variations such as "SwingMode.Standard", but no luck yet.
Thanks!
The following 3 users say Thank You to Pepperdog for this post:
For the 1 in "PriceSwingRelation[0] == 1" you can set the following values
-2 for double top
-1 for lower high and lower low
0 nothing
1 for higher high and higher low
2 for double bottom
Hope this helps.
The following 11 users say Thank You to dorschden for this post:
wouldn't it be nice to be able to keep a running average of upswings and downswings and either simply print that out in a stats panel or actually project it onto the chart once a new swing has formed. It would also be nice to keep track of the av number of bars and project the same - esp. good with minute charts.
A further embellishment to the above would be to track upswings in bull markets, downswings in bull mkts, downswings in bear, downswings in bull to better hone the anticipated swings. When the market falls short of a projection it indicates weakness, when greatly exceeds indicates strength, but also helps to provide context of what is likely once a new swing has formed.
Only problem is that with this method of calculating swings there might often be considerable 'lag' between when the swing/high/low formed and the code recognises it as such. But I for one would love to be able to see this on a chart and I think you are more than halfway there with the underlying code.
The following 4 users say Thank You to cclsys for this post:
Good suggestions and I'm already working on a statistic add on with almost the same stuff you mention. There is the average up-/down swing length and duration in bars and the same for the last x swings. Furthermore I differ this in up trends with higher high/low and down trends. An with this values I plan to visualize an exit area, so it should be possible to enhance the exits.
It is not so much work, but at this moment I'm very busy and next week I'm on vacation. So I can release the statistic primary in some days.
The following 3 users say Thank You to dorschden for this post:
Thank you very much for the code snippet. I am working on a strategy/dot/bar painter very similar to what you have in your code. It is basically a combination of the triple EMA dots along with PriceSwingRelation from your indicator to further qualify the MA signals (although I have been moving towards using a Jurik MA versus the triple EMA). Only paint/draw a "long" signal after a HH/HL or DB, and "short" signal after LH/LL or DT when the MA changes slope in the direction of PriceSwingRelation. But I have run into an issue, in that sometimes it will paint, sometimes it does not. Attached is a quick example from today's YM. It most certainly could be a problem with my "dots" code, and I will be working with it tonight to try and sort it out. Any suggestions? (I will run some replays and have my code Print the PriceSwingRelation dataseries as the bars and swings form.)
My basic code logic for longs is (opposite for shorts):
if (MA slope changes from falling to rising)
and (PriceSwingRelation > 0)
{ Paint blue Dot / Go Long }
Also, I see an isTrend() around line 426 of your indicator. Can you shed some light on this?
The following 5 users say Thank You to Pepperdog for this post:
Thanks for checking into it. After playing back some replays and Printing PriceSwingRelation [0], [1], [2], etc. I saw that using [0] was causing some problems for my if statement logic, so I first changed it to [1] which appears to have corrected the problem. Next I decided to code a temp variable in my strategy/indicator which tracks only when PriceSwingRelation changes from + to - or vice-versa, which also appears to correct the issue. But I look forward to any future versions!
I'd also like to add, your planned statistic add-on and cclsys' suggestions would be wonderful to see sometime in the future. While I am no great coder, I would offer to lend any help that I am able to.
I'm glad that you resolved this issue for yourself, because I haven't found any time today to program the new logic. The next version comes in two weeks when I'm back at home.
The following user says Thank You to dorschden for this post:
Thanks you very much for this tool. It looks like a nice one. There are some things that I wanted to ask you about though. Would you please be kind and show me an example of an AB=CD plotted on the chart. I really can't find one.
And, would it be possible to only implement these four fib numbers:
0,618
0,786
1,270
1,168
(+ additional 0,38 and 0,85) These numbers are needed in case a swing only retraces 0,38 meaning that the move was fast, and 0,85 which can be used as the last retracement point, in order to validate if we're still in a retracement of the former move or, if we're on our way to change trend of the former swing.
I'll show you a picture of a nice AB = CD with these numbers:
So, in order to get a valid AB = CD, then the rules would be like this. (I lack programing knowledges, so I'll write it like an if and then rule)
If retracement of former swing = 0,618
then
Plot extension of 1,618
and the same would go for 0,786
If retracement of former swing = 0,786
then
Plot extension of 1,270
Now when I observe this indicator, while I'm writing these lines, (which is quite nice, because it has a very valuable ground to built further on) I see that the ABCD entry is based on plotting the retracement of the former Swing. I just came up with one idea, in case it woun't be possible to make it plot ABCD the correct way. Maybe if the plot would remain on the chart, then it would function as an visual aid, so that one can count the ABCD's manually. Meaning that it will be easier because we get to know the value of BC. That by itself means that we know what to expect from D.
Anyhow, this are just my thoughts on this indicator, in order to get it closer to Harmonic Trading.
Oh and one more thing, would it be possible to make the fib colors changeable?
Thank you!
/George
The following 5 users say Thank You to George for this post:
the Fibonacci retracement/extension and the AB=CD entry area are only plotted for the last swing. Here is an example for the AB=CD pattern. You can see the Fibonacci Retracement and the entry area for AB=CD.
And here you see the target zone which is visualize with the Fibonacci extension.
In the next version I will add the letters above the swings and the retracement value. Furthermore I'll see whether I can visualize the AB=CD rules you mention. BTW thank you for the Harmonic Trading rules!
The Fibonacci tools have the default settings from your NinjaTrader and for the entry area you can change the color in the Xtras category.
The following user says Thank You to dorschden for this post:
Thank you very much for the explanations, and the examples. The more I play with it, the more beautiful the tool gets. I like it very much! And thank you for the great work you've done with it.
If there's anything ragarding to HR, please let me know, I'll be happy to contribute within the content of my knowledges.
I look forward to the next version of this tool.
Happy Trading!
/George
PS: Regarding to the fib numbers, (,786 etc) I guess it's impossible to edit the defaults then, right?
you must double click on a Fibonacci retracement then you get the "Fibonacci Retracement Properties" window and there you can set your personal settings for the retracement. After that you must push the "Set Default" button and then all your Fibonacci retracement have your personal settings. You can do the same with the Fibonacci extension.
The following user says Thank You to dorschden for this post:
Thanks a lot. I did that, but unfortunately it doesn't keep the changes to the next plot. I guess it's because NT, doesn't keep the changes as default, making the indicator keep on plotting the NT default fibs each time it plots a new swing.
Can you explain to me how/when the swing becomes "fixed" at its location. i.e. if you want to link the swing indicator into a strategy, it becomes difficult as it can continue to move lower/higher after painting an initial marker - any thoughts on how this can be handled at a automated level or any indications in the values etc?
I've been having the indicator under observation for a while now. My impression of it is that it's a great tool. I would though like to ask you if it would be possible to make it plot the fib retracement as soon as the dot is plotted at the end of the swing.
The way it works now is by plotting the FIB retracement when the new swing is plotted. So, would it be possible to make it plot the FIB as soon as the swing is finished and the dot appears instead of waiting for the next swing to be plotted.
The advantages of this is that, you filter away a lot of clutter when the market is moving fast, and you get the FIB retracement on every swing.
Thank you in advance!
/George
The following user says Thank You to George for this post:
I asked Cory who was kind enough to do that for me! He implemented into his indicator (created and developed in the Elite Circle forum) FIB retracements in progress, which is exactly the solution I was looking for. His indicator also draws upper and lower lines connecting the dots together.
I like your AB-CD solution a lot, because it plots the square (it gives less clutter).
Now, Cory was kind and posted that Elite Circle indicator in the Download area in order to have his code used, in order to get that if needed.
Would you please have a look, and implement the ABCD square in progression.
Here's the link :
This is ZigZag UTC with trend lines and fib tools. It counts number of bars of each swing. It also shows bar count in progress and fib retracement in progress.
COMPATIBILITY:
NinjaTrader 6.5: YES
NinjaTrader 7.0: NO (Tested by sam028)
I'm assuming the square being plotted is the projected target area. If so, is the top of the square one of the pre-defined percentages while the bottom is another?
quick question...wonderful indicator! it does seem to be repainting itself (when bar move progressively higher/lower). is there anyway to prevent this? any insight would be appreciated!
happy 2010 everyone!
regards
quasar
It takes a long time for the new version, but I was in the vacation and after this I was very busy. But now the new version is ready. I uploaded it to the download section. (here).
I fixed some bugs in the standard version, now it works fine. For this reason I'll not support the ZigZag version any more. The new version have a nice statistic.
The following 6 users say Thank You to dorschden for this post:
the PriceSwingRelation data series with the information where price is in relation to the swings now works like it should and I add the statistic.
dnof ,
the swings become fix after the next low/high swing. The swing high is not fixed until the next swing low is find, because it is possible that the swing high rise higher.
George,
I added a fast Fibonacci retracement.
The following 3 users say Thank You to dorschden for this post:
the square is one of the possible entry areas for the AB=CD pattern. The targets can be set with the Fibonacci extensions.
pravadacorp,
it is not necessary that you are an elite member. You can download the indicator with Fibonacci retracements in the download section, a link to this is in the first post of this thread. In the Xtras section of the indicator you have to set Fib retracement to true.
quasar,
I fixed the repainting in the new version. Thanks for reporting. I mainly use range bars and this problem never happen with range bars, because it is not possible with them to get a new high and low within one bar.
bsargent,
a swing high is found, when the last x bars (Span parameter) are lower then the current bars high and for a swing low vice versa.
The following user says Thank You to dorschden for this post:
Great work, especially the statistical stuff. Me myself I'm not going to get any use of this version because I'm using the zigzag version of it. But I just wanted to tell you that your work is impressive.
We all struggle to make tomorrow look like yesterday!
Get rid of your past and let the future unfold from the now. Past performance is not indicative of future results.
/George
Thank you very much, Dorschden. This is the first visual tool I have added to my existing chart setup. I can see that it has already helped me a lot. I now have to maximize its potential use in my trading. I love zigzag based indicators and you have done a fantastic job with this PriceActionSwing.
Thanks for an interesting indicator. The statistics are especially interesting.. I think there could be some useful no-trade rules for stategies derived from them.
A question about the statistics... each type of HH, LH, etc is followed by a 4 statistics, which add up to more than 100% in total. How does this work exactly? Is it showing statistics for how likely that type is to be found in the next two swings?
Also would like to clarify what happens when the indicator repaints... what do the statistics show when a zig zig point is repainted and becomes part of a larger zig zag. Do the stats include these cases or are they only calculated from finished swings that are past the point of being repainted.
Can you explain to me what the 'DtbStrength' and 'Span' parameter settings do for the DT's and DB's?
I have tried playing around with them, but I am not sure which one is adjusting the changes on the chart.
I assume one of them is the minimum number of bars that have to occur between the two DT's or DB's - which parameter is doing this? And what does the other parameter do?
I'll upload in two or three weeks a new version with some new features and I'll re-add the ZigZagUTC version and a third mode to calculate the swings.
The new version should not add the statistics up to more than 100%. I think this happen now only when you add the indicator on a new empty chart. Press F5 to reload the indicator and than the statistic should work fine.
The 4 values after the HH, LH, etc show which swing is followed expressed in percentage.
The statistic only calculate from finished swings.
The 'Span' parameter represent how big the swings are and how often they occurred and the 'DtbStrength' property is for the DT's and DB's. With a smaller value it shows only swings as DT's or DB's that have the same swing price and with a greater value it shows swings as DT's or DB's also when the price is further away from the last swing.
The following 2 users say Thank You to dorschden for this post:
Hello Dorschden,
Thank you for a lovely indicator. Unfortunately the Fib values on my chart seem to be be giving me the wrong values i.e. from top to bottom and I am also not getting values of extension of 1.27 or 1.618. I have tried all the alternatives of the Fib values in the indicator, but it does not show up correctly on the chart. What are your standard values
Hey perryg,
The Fib value parameters are only to visualize the AB=CD entry area which is normally between 61.8% and 76.4%. It represent the entry area from the last swing and not from the current swing. The Fib extension is the standard Ninjatrader drawing tool. To change the standard values of the fib extension see this post:
I have a suggestion for this fantastic indicator that you have created. Can you add volume count to the swings. For example: Up swing A = 3000 contracts/shares / Downswing B = 1000 contracts/shares. ?
I think the volume of swings can be used as a great measure of the strength of the swing. And warn us of potential trend reversals or pauses.
Here is a link to Ord Volume charts. That shows you sample charts of volume swings. You can also see how he uses this volume swing information in his trading. You might be able to implement some of these ideas in the NT7 version.
Here some additional information to help explain the concept of measuring volume in swings. And how one can use it to make trading decisions.
A trader can add up the volume between the swing high and low and divide by the number of days in that swing to determine the average daily volume in that swing to determine the force in that swing. Then one would have to repeat that process with other swings and make a comparience to the other swings to determine which way the force is pushing.
To pick the strongest stock (in up-trend), average daily volume should shrink near 50% on correction phase compared to the rally phase.
To pick the weakest stocks (in downtrend) average daily volume should shrink near 50% on up phase compared to the declining phase.
A buy signal is triggered when a stock closes above a previous important low, where the current "AVG Volume" low shrinks near 50% or greater against the first important low. An "important Low" is when that low marks a bottom where the equity starts a sideways consolidation.
A sell signal is triggered when a stock closes below a previous important high where the current "AVG Volume" high shrinks near 50% or greater against the Important High. An Important High" is when that high marks a top where the equity starts a sideways consolidation.
Target price Projections:
An upside target for a buy signal will be the previous "Swing High". If volume is equal or great on the test of the previous high then the next higher swing high will be the target and so on.
A downside target after a sell signal will be the previous "Swing Low". If volume is equal or greater then the previous "Swing Low" then the next lower swing will be the target and so on.
The following 6 users say Thank You to FR5050 for this post:
I uploaded a new version (here). The ZigZagUTC mode is included again and a new mode that based on the parabolic stop and reverse (PSAR) indicator also included.
Now it's possible to show the complete volume of the swing and the duration.
I also added a second indicator called PriceActionSwingRelation. It shows the relation between price and swings. You can use it for other indicators or strategies. If PriceActionSwingRelation value is above 0 look for long entries because price made higher highs and higher lows or a double bottom - short vice versa.
PriceActionSwingRelation values:
-2 = DT
-1 = LL and LH
0 = price is nowhere
1 = HH and HL
2 = DB
The following 18 users say Thank You to dorschden for this post:
WOW! the upgrades you made are just fantastic. Thank you very much for doing them. Thank you especially for including the volume swing. I also love the new swing relation indicator.
Hallo Doschden
First of all a great compliment to your indicator.
Where can I find a detailled explanation for the Xtras Statistic Explanation on the TopLeft? Also how can I hidden it?
Further how can I change the colors and numbers for the Fibs? Your indicator don't take my default settings from my NT chart.
You can explain it also in German, I live in Switzerland.
Thanks
Heinz
I updated the first post of this thread there are some information about the indicator and an explanation of the statistic. You can hidden the statistic in the parameter list in the category "Xtras" and set the statistic entry to false.
All Fibonacci retracements and extensions should have the settings of your default ones from Ninjatrader. Make sure you save your settings after you change them in the NT retracement/extension window. Works fine by me in NT 6.5 and 7. See attached screenshot.
The following 2 users say Thank You to dorschden for this post:
yeah, that's pretty sweet, i like it. the thing with this is that there will be a natural tendency to have lower volume with fewer bars, so I wonder what the implications are if it takes 15 bars with total volume of 1500 to create a swing high, but 25 bars with total volume of 2000 bars to return to the swing high when the price is in a horizontal channel. total volume is higher, but average volume is lower, so is a breakout more or less likely? or maybe an ema volume with the period set at the number of bars in the current swing would be more informative. or an sma volume based upon the range of movement regardless of the number of bars for when it is not moving in a nice channel. hmmm, lots to think about.
Thanks man! I have been using it today with pretty good results. Until I have more practice reading it I have only been using it to determine when not to trade as opposed to using it as an entry signal, but so far it has kept me out of 2 bad trades. Good work.
The following 2 users say Thank You to vegasfoster for this post:
Excellent information and indicator!! thanks for the suggestion. I'm not a programmer myself but I know of a few that I can use to play around with this idea. Great to run into this!
The average volume function is interesting... seems to sometimes work well for identifying low volume retracements. Similar concept to VSA but using swings instead of bars.
Looking back at a charts, low volume retracements seem to be worth noting, but since I'm looking at completed swings with 20/20 hindsight, I may be overestimating their usefulness.
A signal might go something like this:
1) a just-completed swing has a lower average volume than either of the previous 2 swings, and at least 30% less volume than the most recent swing in that same direction
2) the current unfinished swing has a higher average volume than the just-completed low volome swing
3) generate continuation signal in direction of current unfinished swing
Anyone else have thoughts or ideas about this?
The following user says Thank You to GoldStandard for this post:
I think sometimes you may get a clue about the potential trend reversal if you monitor volume at high nodes in uptrend (and vice versa for downtrend) ...... in the middle of your chart you have several highs with ~vol=4500 and the last high had 2800 .... at this point you may want to reconsider long trades until you get confirmation that uptrend is still live and kickin' .....
Hi FR5050 - thanks for the reminder. Yes, Ord appears to be one of the first to talk about relative volume on swings. He doesn't seem to do a lot with the concept any more though, at least not in his recently posted charts and articles.
His criteria of re-testing an important hi/lo on less than 50% average volume seems to produce some OK setups according to the limited amount eyeball backtesting I have done reviewing charts, but it happens very infrequently.
I think measuring relative volume on swings could be useful in more situations, and on smaller timescales than Ord uses. Maybe not as a setup by itself, but perhaps as a filter in combination with other factors to identify good candidates for pullback trades.
I suspect that a low volume pullback swing followed by higher volume move in the trend direction would offer a measurable advantage, but it would take some coding to find out.
I was actually hoping I could entice Dorschden or another reader of this thread into adding this to PriceActionSwing so we could do some visual backtesting with it.
In any event, the volumes by themselves are useful. An extremely weak or strong average volume swing is definitely worth paying attention to.
Site Administrator Swing Trader Data Scientist & DevOps
Manta, Ecuador
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
Posts: 49,355 since Jun 2009
Thanks: 32,036 given,
96,599
received
Is each file less than 20MB? Is the extension .pdf? On the pop-up attachment box, it should either give you an error message when it's done --- which in that case we need that error msg --- or it will show the attached files and the file sizes next to them, underlined in blue. This means it worked. It's just like attaching a picture.
I can only assume:
1) The file isn't an allowed extension. All the allowed extensions are listed.
2) The file is bigger than what is allowed, although we have very generous limits so this probably isn't the case.
3) You didn't let it finish uploading.
Site Administrator Swing Trader Data Scientist & DevOps
Manta, Ecuador
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
Posts: 49,355 since Jun 2009
Thanks: 32,036 given,
96,599
received
After we split the Downloads section into NT 6.5 and NT7 sections, it unfortunately means old links to NT 6.5 indicators are broken. Sorry. I did everything I could think of to avoid it, but couldn't. You can find it using search.
do you have some specific rules in mind for this? Or do you only mean if price makes HH and HL and the swing low have in comparison to the last swing low(s) a low volume then a signal should occur for a possible long entry?
If you have some rules then I maybe can implement them.
Thank you so much for sharing this amazing indicator. Ive just started playing around with it. really enjoying it especially the fibo expansions and retracement.
Just a suggestion, is it possible to have on "Swing Length" price/ticks/and bar count.
the right number beside the swing length is the bar count. You can switch on/off bar count ("Swing duration") in the visualize category. If you only want the bar count then set "Swing length" to "Nothing".
The following user says Thank You to dorschden for this post:
I'm thrilled to find your thread tonight. Went through it once and will certainly read it again over the weekend. I started learning Price Action (incl labelling my charts) weeks ago. Your amazing indicators will certainly speed up my learning path! Thank You!
I will try to automate the PriceActionSwingRelation indicator .. seems do-able. Will knock at your door if I encounter any technical issues. My trillion thanks again for sharing your wisdom and trading tools with us.
I followed Post #7 and tried to add your PA indicator to my strategy as Exit. Got an error message "No overload for method 'PriceActionSwing' takes '3' arguments" when I tried to compile. Appreciate your kind suggestion on how to fix my code (as follows) and what I did wrong. Thank you.
the old code snippet isn't fully correct because I change the parameter number.
Try the following code (NT7 only). I didn't test it, but it should work. Don't hesitate to ask if you encounter some issues. I'll try to help if I can.
For you automatization you can also use the new UpFlip[0] series to get the information when the swing is change from low to high (DownFlip vice versa). For access use the same code and replace PriceSwingRelation with UpFlip.
dorschden
The following user says Thank You to dorschden for this post:
Your prompt response has made my weekend. Thank you!
I tried the suggested code and did compile the strategy successfully. Unfortunately the revised strategy does not trigger any trades. FYI: Without the PA Swing code, the strategy does trigger trades. Well, I must have done something wrong ..
I will do some investigation first before bothering you again. For sure, you will hear from me if I have a big head after hours of getting no-where ...
if you use NT7 then you can use the edited code above. You have to use the OnStartUp() method to initialize the priceSwingRel series. If you use NT6.5 then the following code works. It's not the best performance solution but it works.
The following user says Thank You to dorschden for this post:
Need to pick your brains please. How can I add text label (HH/HL/LL/LH/DB/DT) in addition to the dots? Is it easy to learn how to code it? Appreciate your guidance. Thank you.
FYI: I succeeded in adding an Exit condition (PA Swing Rel = 1 or -1 and SMA crossover) to an existing strategy that I have been sim-trading. It really helps! My heartfelt thanks again for your sharing and assistance.
I'm playing with it to create a DT/DB strategy, ie replacing the suggested code "PriceSwingRelation" with "DoubleBottom" and "DoubleTop". Instead of triggering minimal trades based on DoubleBottom and DoubleTop, lots of other trades were triggered!? Guess I must have coded it wrong and appreciate your guidance. Thank you.
it's almost a perfect gartley, but I think the first swing low have to be lower as the second one. Anyway you make some $ with it
I automate some pattern recognition with the PAS indicator. I really like to trade pattern like this one. Maybe I make the pattern recognition public, but for now I'm not sure about this.
you must agian use the "PriceSwingRelation" and test if the value is "2" for a double bottom. You can then immediately enter the trade or you can wait until the double bottom is finished. For this you have to check for an upflip. Double top: "PriceSwingRelation[0] == -2" and "DnFlip[0] == true".
See the following code for a double bottom (not tested, but should work).
dorschden
The following 2 users say Thank You to dorschden for this post:
Thanks Dorschden! I tried PriceSwingRelation[0] == -2/2 before the DoubleTop/DoubleBottom attempt. Did not work the way I wanted. Maybe the UpFlip/DnFlip will do the trick. I will try again. My trilion .. trillion .. thanks again for your super-mega prompt response.