PriceActionSwing discussion (Page 74) - 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,731 / 1,343
Last Reply:December 1st, 2016 (04:53 AM) 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 May 10th, 2013, 05:34 AM   #731 (permalink)
jonica
Reggio Calabria Italia
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: es,stocks,eur/usd
 
Posts: 16 since May 2013
Thanks: 7 given, 2 received

thank you

thanks i did find the download will read see how should i use this


panjm View Post
Please read post #1: PriceActionSwing discussion - NinjaTrader | Big Mike Trading
After the first paragraph there is a link "Download PriceActionSwing".


Reply With Quote
     

Old May 11th, 2013, 04:57 AM   #732 (permalink)
Elite Member
Milan Italy
 
Futures Experience: Intermediate
Platform: Ninjatrader, Sierra Chart
Favorite Futures: ES
 
Posts: 516 since Feb 2010
Thanks: 465 given, 619 received


panjm View Post

"
October 10 2012:
- Fixed volume bug - volume bigger than Int32
"

This bug if not fixed will prevent forex pair (such as EURUSD) from plotting the indicator.

Hope that you can implement the histogram feature on the latest PAS version.

Thank You!


Here you go. I did it this morning so I haven't tried it on a live market, but it should work just like the earlier version.

Attached Files
Register to download File Type: zip bcPriceActionSwingPro.zip (39.4 KB, 276 views)
Reply With Quote
     
The following 10 users say Thank You to futuretrader for this post:
     

Old May 27th, 2013, 08:00 AM   #733 (permalink)
Elite Member
London, UK
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: EUR/USD
 
Posts: 58 since Jul 2012
Thanks: 3 given, 4 received


Hi All,

I just recently started using the PAS indicator, I must say it's amazing. I am using the DivergenceSignals in the PriceAcionSwingPro. I've set the Div indicator to Custom in the properties of now would like to use the DivergenceSignals in a strategy, by reading the past threads I understand this code should work, but I am not an expert and would be very thankful if anybody could tell me if this is correct:

 
Code
using PriceActionSwingPro.Utility;
#endregion

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    [Description("")]
    public class aaaPriceSwingDiv : Strategy
    {
        #region Variables
        
		private int dtbStrength = 15;
		private int swingSize = 7;
		private SwingTypes swingType = SwingTypes.Standard;
		private IDataSeries divSignals;
		
		#endregion


		protected override void Initialize()
		{
			BarsRequired = 0;
			CalculateOnBarClose = true;
			Enabled = false;
			divSignals = new DataSeries(this);
			SetStopLoss(CalculationMode.Ticks,25);
			SetProfitTarget(CalculationMode.Ticks,50 );
		}

		protected override void OnStartUp()
		{
			divSignals = PriceActionSwingPro(Input, dtbStrength, swingSize, swingType).DivergenceSignals;
		}

		protected override void OnBarUpdate()
		{
			if (CurrentBar < 20)
				return;

			if (Position.MarketPosition == MarketPosition.Flat)
			{
				if (divSignals[0] == 3)
					EnterLong();
				
				if (divSignals[0] == -3)
					EnterShort();
			}
		}

        #region Properties
        #endregion
    }
}
I have a few questions:

- How do I know the strategy is refering to the Custom Divergence, rather than the MACD, or others?

- Whats the difference between a Regular Divergence Signal and a Regular Divergence Entry?

- Am I right in saying that the Divergence Signal re-prints, hence making it use in a systematic strategy?

Thanks for your time


Last edited by sburtt; May 27th, 2013 at 08:26 AM.
Reply With Quote
     

Old May 27th, 2013, 03:16 PM   #734 (permalink)
Elite Member
London, UK
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: EUR/USD
 
Posts: 58 since Jul 2012
Thanks: 3 given, 4 received


dorschden View Post
@Nalu, one solution is to change in the source code of the PasPro indicator in the "Properties" region the "Category" names of the certain parameters you want to access or change. E.g. change [Category("Divergence")] to [GridCategory("Parameters")].



@charllie1, in the public version the swing values aren't accessible from within a strategy. You have to make the swing values public in the PAS indicator first.




@Patric and @robinlbird, there isn't a short answer to how to use the PAS indicator. It can be used in 1001 different ways. In the end it is just a tool to mark swings and it is up to the user to make sense of it. There are many trading styles which don't require a swing indicator. If it doesn't make sense for you guys, then you probably don't need it.

There are hundreds of books written about swing and pattern trading and a lot of valuable information can be found on futures.io (formerly BMT). You might want to check out "Suri Duddella"s webinar as well.




@Sunil P and @tst1, the moment when the volume histogram changes is when a new swing is found. To catch this moment you can add in the PasOsc "DrawArrow" or "PlaySound" in the "CalcDnSwing" and the "CalcUpSwing" function within the if-statement that checks for "(!updateLow)".



@renvik, I believe lines don't have an "Opacity" property in NT, only colour, dash style and width can be set. To show naked swings only at the right margin the "plot" function has to be overridden which I don't want to override.

Strategy development

Lately there are coming more and more questions and requests how to use the PAS indicator in a strategy. If there are interesting methods I might be interested to discuss them, but due to several reasons I'll not support any basic coding questions how to use PAS in a strategy like "how to access this value", "what does SwingTrend[0] == 1" mean, "how can I make this value public" and so on.

Keep in mind that asking a question takes only a couple of seconds or minutes, but answering them normally takes longer and the sum of many small questions and free requests stealing a lot of time from people, so please do your homework first and think about whether you can answer your question yourself, then search for the answer and first if you get stuck ask the question. This will help you to trust yourself more and others to save time. I don't mean this personally to anyone, but rather general.

Nevertheless I created a sample code snippet to get people started.

 
Code
#region Using declarations
...
using PriceActionSwingOscillator.Utility;
#endregion

#region Variables
private int swingSize = 7;
private SwingTypes swingType = SwingTypes.Standard;
private int dtbStrength = 15;
private DataSeries swingTrend;
//private Indicator.PriceActionSwingOscillator pasOsc;
#endregion

protected override void Initialize()
{
  BarsRequired = 0;
  CalculateOnBarClose = true;
  Enabled = false;

  swingTrend = new DataSeries(this);
}

protected override void OnStartUp()
{
  //pasOsc = PriceActionSwingOscillator(Input, dtbStrength, swingSize, swingType);
  //swingTrend = pasOsc.SwingTrend;

  swingTrend = PriceActionSwingOscillator(Input, dtbStrength, swingSize, swingType).SwingTrend;
}

protected override void OnBarUpdate()
{
  if (CurrentBar < 20)
    return;

  // For testing only
  //DrawText(CurrentBar + "Tag", swingTrend[0].ToString(), 0, Low[0] - 10 * TickSize, Color.Red);

if (Position.MarketPosition == MarketPosition.Flat)
{
if (swingTrend[0] == 1)
EnterLong();
if (swingTrend[0] == -1)
EnterShort();
}
else if (Position.MarketPosition == MarketPosition.Long)
{
if (swingTrend[0] != 1)
ExitLong();
}
else if (Position.MarketPosition == MarketPosition.Short)
{
if (swingTrend[0] != -1)
ExitShort();
}
}

For the values from the PasPro indicator use an analogous approach. Just make sure if you want to use ABC or divergence signals you have set the variables "abcPattern" and "divergenceMode" in the source code to something else than "False".

Hi dorschden,

first thanks for your impressive job. Do you think it would be possible to get a sample code snippet also for the ABC pattern and/or Divergences? This would really help.

Thanks, John

Reply With Quote
     

Old May 27th, 2013, 03:52 PM   #735 (permalink)
Elite Member
London, UK
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: EUR/USD
 
Posts: 58 since Jul 2012
Thanks: 3 given, 4 received

Futures Edge on FIO

dorschden View Post
Pepperdog,

you have to add this lines in your strategy

 
Code
#region Using declarations
...
using PriceActionSwing.Utility;
#endregion 

#region Variables
...
private SwingMode pAS_SwingMode = SwingMode.Standard; 
private int pAS_DtbStrength = 15; 
private int pAS_Span = 8; 
#endregion

protected override void Initialize()
{
   
   // Add the indicator to the chart - not necessary
   Add(PriceActionSwing(pAS_SwingMode, pAS_DtbStrength, pAS_Span));
}

protected override void OnBarUpdate()
{
   
   // If the last high and  low was higher high and higher low and a short sma cross above the long sma enter long
   if (PriceActionSwing(pAS_SwingMode, pAS_DtbStrength, pAS_Span).PriceSwingRelation[0] == 1 && CrossAbove(SMA(3), SMA(7), 1))
   (
      EnterLong(DefaultQuantity, "");
   )
   ...
}

#region Properties
[Category("Parameters")]
public SwingMode PAS_SwingMode
{
   get { return pAS_SwingMode; }
   set { pAS_SwingMode = value; }
}

[Category("Parameters")]
public int PAS_DtbStrength
{
   get { return pAS_DtbStrength; }
   set { pAS_DtbStrength = Math.Max(1, value); }
}

[Category("Parameters")]
public int PAS_Span
{
   get { return pAS_Span; }
   set { pAS_Span = Math.Max(1, value); }
}
#endregion
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.

Hi there,

would anybody know why when using this code I get the following error:

SwingMode could not be found in the Initialize() field

Thanks, John

Reply With Quote
     

Old June 2nd, 2013, 10:40 PM   #736 (permalink)
Elite Member
New York
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: Futures
 
Posts: 4 since Apr 2013
Thanks: 1 given, 1 received

Can you share this indicator

I'm a Elite member would you mind share with me where is this indicator.
please reply back to me as soon as you have a chance.

Looking forward to your reply
Thanks
Mendes





dorschden View 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.

Attachment 5073

Attachment 5074



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.


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

Old June 2nd, 2013, 10:44 PM   #737 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 45,539 since Jun 2009
Thanks: 28,884 given, 80,125 received


RDMENDES View Post
I'm a Elite member would you mind share with me where is this indicator.
please reply back to me as soon as you have a chance.

Looking forward to your reply
Thanks
Mendes

Post #1 has the link.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
     

Old June 3rd, 2013, 07:36 PM   #738 (permalink)
Elite Member
Mountain View, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: oil
 
Posts: 1 since Apr 2013
Thanks: 0 given, 0 received

Market Analyzer's template

The Market Analyzer's template is in XML format. I am wondering how to open it or how to setup in the market analyzer. Also, I am looking for more applications setup in Market Analyzer. Please help! Thanks a lot!

Reply With Quote
     

Old June 3rd, 2013, 08:13 PM   #739 (permalink)
Elite Member
WA Europe
 
Futures Experience: None
Platform: Various
Favorite Futures: FUTURES
 
Posts: 121 since Mar 2013
Thanks: 46 given, 52 received

Hi,
can someone,please, explain to me how he/she use this indicator to get an edge in his/her trading?

Reply With Quote
     

Old June 3rd, 2013, 08:33 PM   #740 (permalink)
Elite Member
New York
 
Futures Experience: Advanced
Platform: NinjaTrader
Favorite Futures: Futures
 
Posts: 4 since Apr 2013
Thanks: 1 given, 1 received



Big Mike View Post
Post #1 has the link.

Mike

hi Mike

you say that i be able to find in the post, where is that post in, can you just please send me the link.
Thanks
Mendes

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