PriceActionSwing discussion (Page 70) - 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,100 / 1,345
Last Reply:Yesterday (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 March 20th, 2013, 10:11 PM   #691 (permalink)
Market Wizard
Columbus, OH
 
Futures Experience: None
Platform: NT-9G, TOS
Favorite Futures: ES
 
Silvester17's Avatar
 
Posts: 3,229 since Aug 2009
Thanks: 4,424 given, 9,889 received


djkiwi View Post
Thanks @Silvester17. I stripped down one so it just includes this line. If you uncomment line 129 and try and compile it you will see what I mean. If it compiles for you then I have another problem. There appears to be a change to the syntax between the new version and old version I can't quite figure out.



Cheers
DJ

@djkiwi,

I'm sorry, but when it comes to that kind of stuff, I really stink.

the new pas version doesn't have a swing relation data series. still trying to find a way, but hopefully someone else will come to the rescue.

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

Old March 21st, 2013, 01:06 AM   #692 (permalink)
Banned: Piracy
Magadan Russia
 
Futures Experience: Master
Platform: NT
Favorite Futures: FDAX
 
Posts: 79 since Nov 2010
Thanks: 17 given, 14 received


tst1 View Post
Hi folks!

Does anyone have an idea how to add an audible alert for each new swing?

Thanks in advance!



Bump...

Reply With Quote
     

Old March 24th, 2013, 06:13 PM   #693 (permalink)
Elite Member
london united kingdom
 
Futures Experience: None
Platform: Sierra Chart, S5T
Favorite Futures: ES
 
para6ut's Avatar
 
Posts: 58 since Jun 2012
Thanks: 1,219 given, 87 received

Opening swing


Hi,

Was wondering if there is something like an opening swing indicator for ninja?

On FT71's charts there is an opening swing determined by the first peak and valley on his RTH ES 2500 volume chart?

Or is there a way to use the PAS indicator to be used for that purpose?

If not, would using a 1 minute Opening range indi be close?

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


Thanks

Reply With Quote
     

Old March 24th, 2013, 06:25 PM   #694 (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

That is not an automatic indicator on FT's charts, he uses discretion to determine the OS - it may correspond to the first swing you see on that chart, it may not.

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

Old March 27th, 2013, 12:53 AM   #695 (permalink)
Elite Member
Pittsburgh, Pennsylvania
 
Futures Experience: Advanced
Platform: Ninja Trader
Favorite Futures: 6E, CL, Anything that moves
 
Posts: 314 since Jun 2012
Thanks: 321 given, 88 received

Futures Edge on FIO
Guys ---

I posted this on the "Want your Ninja trader Indicator coded for free" thread - but maybe I should have posted it here...

~~~

I think I saw someone have a GOM CD on their chart -- but -- with the PRICE ACTION SWING "historical Swing" lines on it so that you could see if it had reached the high of the swing or crossed it.

I tried puting Price Action Swing on the GOM CD but it did not work.

Is there a way to get those horizontal lines running to the right from all the swings in the GOM CD...?

I really think I already saw someone have it on their charts - and it makes seeing double tops or divergence on the GomCD SO much easier.

I have searched all over the forum but I don't think it was an attachment in a post - it was a screenshot that I saw and I still haven't found it.

Would adding these lines going to the right add to much more work to the CPU ?

~THANKS~

Reply With Quote
     

Old March 28th, 2013, 11:51 PM   #696 (permalink)
Market Wizard
Columbus, OH
 
Futures Experience: None
Platform: NT-9G, TOS
Favorite Futures: ES
 
Silvester17's Avatar
 
Posts: 3,229 since Aug 2009
Thanks: 4,424 given, 9,889 received


Silvester17 View Post
@djkiwi,

I'm sorry, but when it comes to that kind of stuff, I really stink.

the new pas version doesn't have a swing relation data series. still trying to find a way, but hopefully someone else will come to the rescue.

@djkiwi,

I completely forgot about this. my apologies.

made some changes, hopefully it's working now.

 
Code
#region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
using PriceActionSwingOscillator.Utility;
#endregion

// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
    /// <summary>
    /// Enter the description of your new custom indicator here
    /// </summary>
    [Description("Enter the description of your new custom indicator here")]
    public class djmainsignals3 : Indicator
    {
        #region Variables
        private int myInput0 = 1; // Default setting for MyInput0
        private TextPosition bPosition = TextPosition.BottomRight;
			private TextPosition tPosition = TextPosition.TopLeft;
			private TextPosition trPosition = TextPosition.TopRight;
			private TextPosition blPosition = TextPosition.BottomLeft;	
			private TextPosition center = TextPosition.Center;
		
			private Font textFontLarge		= new Font("Arial", 24, FontStyle.Bold);	
			private Font textFontMed		= new Font("Arial", 14, FontStyle.Bold);
			private Font textFontSmall		= new Font("Arial", 9, FontStyle.Bold);
		
			private string longsignal1	= "TFlongsignal.wav";
			private string shortsignal1	= "TFshortsignal.wav";
		
			private bool 		gomsingle = false;
			private bool		gomoneperday = true;
		
			private bool 		showinternals = true;			
		
			private double pullback =.05;
			private int neutralbar =10;
			private double taillength = 0.8;
			private int tickfactor =18;
		
			private double longmin = 0.12;
			private double longmax = 0.36;
			private double shortmin = 0.12;
			private double shortmax = 0.34;
		
			private double emashortlow = 5.5;
			private double emapriorshorthigh = 5.5;
		
			private string higherframe	= "TF 06-11";
			private int higherperiod = 20;
			
		
			private bool buyarrow = true;
		
			private int deltahigh = 200;			
			//private int deltahighest = deltahigh*2;
		
			private int deltalow = 200;
			//private int deltalowest = deltalow*2;
		
			private bool		deltasignals = false;
		
			private int alertduration =60;
		
			private int poc =150000;
		
		
		
		private int Variable0 = 0;
		
			

		
		
		// 	GomCD gcd;
		//	GomCD gcdc;
		//	GomCD gcdfile;
	//		GomDeltaVolume gvol;
		
			private int deltamax =200;
			private int deltamin =200;
			
		// PRICE ACTION SWING
		
			private int swingSize = 7;
			private SwingTypes swingType = SwingTypes.Standard;
			private int dtbStrength = 15;
			private DataSeries swingTrend;
		
			private int sessionstart = 630000;
			private int sessionend = 130000;
		
        #endregion

        /// <summary>
        /// This method is used to configure the indicator and is called once before any bar data is loaded.
        /// </summary>
        protected override void Initialize()
        {
			Overlay = true; 
			CalculateOnBarClose = false;
			Add("^VIX", PeriodType.Minute,2);
			Add("^ADD", PeriodType.Minute,2);
			Add("^TICK", PeriodType.Minute,2);
			AddRenko(higherframe, higherperiod, MarketDataType.Last);
			BarsRequired = 3;
			swingTrend = new DataSeries(this);
		
			
        }

		protected override void OnStartUp()
        
		{
           
	if (gomoneperday)
	{							
//	gcd=GomCD(GomCDCalculationModeType.BidAsk, GomCDChartType.NonCumulativeChart, "Binary",Gom.FileModeType.OnePerDay, GomFilterModeType.None, 1, false); 
//	gcdc=GomCD(GomCDCalculationModeType.BidAsk, GomCDChartType.CumulativeChart, "Binary",Gom.FileModeType.OnePerDay, GomFilterModeType.None, 1, false); 
		
	 // Set the PriceActionSwingRelation value to to the   priceSwingRel series

   	swingTrend = PriceActionSwingOscillator(Input, dtbStrength, swingSize, swingType).SwingTrend;
	
		
		
	}	
			
			
        }
        protected override void OnBarUpdate()
    {
			
				{if (CurrentBar < 3)
		return;}	
			
	
			
			
			
	
		
				
        }

        #region Properties
        [Browsable(false)]	// this line prevents the data series from being displayed in the indicator properties dialog, do not remove
        [XmlIgnore()]		// this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
        public DataSeries Plot0
        {
            get { return Values[0]; }
        }

        [Description("")]
        [GridCategory("Parameters")]
        public int MyInput0
        {
            get { return myInput0; }
            set { myInput0 = Math.Max(1, value); }
        }
		
		 [Description("")]
        [GridCategory("Parameters")]
        public int Poc
        {
            get { return poc; }
            set { poc = Math.Max(1, value); }
        }
		
	
		
		[Description("deltasignals")]
        [Category("Drawing Objects")]
        public bool Deltasignals
        {
            get { return deltasignals; }
            set { deltasignals = value; }
        }
		
		
		[Description("Show_Internals")]
        [Category("Drawing Objects")]
        public bool Showinternals
        {
            get { return showinternals; }
            set { showinternals = value; }
        }
		
		
		
		[Description("Sound file to play for long alert.")]
		[Category("Longer Timeframe")]
		public string Higherframe
		{
			get { return higherframe; }
			set { higherframe = value; }
		}
		
		[Description("Sound file to play for long alert.")]
        [Category("Longer Timeframe")]
        public int Higherperiod
        {
            get { return higherperiod; }
            set { higherperiod = Math.Max(1, value); }
        }				
		
		
		[Description("Sound file to play for long alert.")]
		[Category("Delta Percent Change")]
		public string Longsignal1
		{
			get { return longsignal1; }
			set { longsignal1 = value; }
		}
		
		[Description("Sound file to play for long alert.")]
		[Category("Delta Percent Change")]
		public string Shortsignal1
		{
			get { return shortsignal1; }
			set { shortsignal1 = value; }
		}
        #endregion
    }
}

#region NinjaScript generated code. Neither change nor remove.
// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
    public partial class Indicator : IndicatorBase
    {
        private djmainsignals3[] cachedjmainsignals3 = null;

        private static djmainsignals3 checkdjmainsignals3 = new djmainsignals3();

        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        public djmainsignals3 djmainsignals3(int myInput0, int poc)
        {
            return djmainsignals3(Input, myInput0, poc);
        }

        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        public djmainsignals3 djmainsignals3(Data.IDataSeries input, int myInput0, int poc)
        {
            if (cachedjmainsignals3 != null)
                for (int idx = 0; idx < cachedjmainsignals3.Length; idx++)
                    if (cachedjmainsignals3[idx].MyInput0 == myInput0 && cachedjmainsignals3[idx].Poc == poc && cachedjmainsignals3[idx].EqualsInput(input))
                        return cachedjmainsignals3[idx];

            lock (checkdjmainsignals3)
            {
                checkdjmainsignals3.MyInput0 = myInput0;
                myInput0 = checkdjmainsignals3.MyInput0;
                checkdjmainsignals3.Poc = poc;
                poc = checkdjmainsignals3.Poc;

                if (cachedjmainsignals3 != null)
                    for (int idx = 0; idx < cachedjmainsignals3.Length; idx++)
                        if (cachedjmainsignals3[idx].MyInput0 == myInput0 && cachedjmainsignals3[idx].Poc == poc && cachedjmainsignals3[idx].EqualsInput(input))
                            return cachedjmainsignals3[idx];

                djmainsignals3 indicator = new djmainsignals3();
                indicator.BarsRequired = BarsRequired;
                indicator.CalculateOnBarClose = CalculateOnBarClose;
#if NT7
                indicator.ForceMaximumBarsLookBack256 = ForceMaximumBarsLookBack256;
                indicator.MaximumBarsLookBack = MaximumBarsLookBack;
#endif
                indicator.Input = input;
                indicator.MyInput0 = myInput0;
                indicator.Poc = poc;
                Indicators.Add(indicator);
                indicator.SetUp();

                djmainsignals3[] tmp = new djmainsignals3[cachedjmainsignals3 == null ? 1 : cachedjmainsignals3.Length + 1];
                if (cachedjmainsignals3 != null)
                    cachedjmainsignals3.CopyTo(tmp, 0);
                tmp[tmp.Length - 1] = indicator;
                cachedjmainsignals3 = tmp;
                return indicator;
            }
        }
    }
}

// This namespace holds all market analyzer column definitions and is required. Do not change it.
namespace NinjaTrader.MarketAnalyzer
{
    public partial class Column : ColumnBase
    {
        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        [Gui.Design.WizardCondition("Indicator")]
        public Indicator.djmainsignals3 djmainsignals3(int myInput0, int poc)
        {
            return _indicator.djmainsignals3(Input, myInput0, poc);
        }

        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        public Indicator.djmainsignals3 djmainsignals3(Data.IDataSeries input, int myInput0, int poc)
        {
            return _indicator.djmainsignals3(input, myInput0, poc);
        }
    }
}

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    public partial class Strategy : StrategyBase
    {
        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        [Gui.Design.WizardCondition("Indicator")]
        public Indicator.djmainsignals3 djmainsignals3(int myInput0, int poc)
        {
            return _indicator.djmainsignals3(Input, myInput0, poc);
        }

        /// <summary>
        /// Enter the description of your new custom indicator here
        /// </summary>
        /// <returns></returns>
        public Indicator.djmainsignals3 djmainsignals3(Data.IDataSeries input, int myInput0, int poc)
        {
            if (InInitialize && input == null)
                throw new ArgumentException("You only can access an indicator with the default input/bar series from within the 'Initialize()' method");

            return _indicator.djmainsignals3(input, myInput0, poc);
        }
    }
}
#endregion

I highlighted the changes I made.

Attached Files
Register to download File Type: cs djmainsignals3.cs (10.9 KB, 73 views)

Last edited by Silvester17; March 29th, 2013 at 12:12 AM.
Reply With Quote
     
The following 2 users say Thank You to Silvester17 for this post:
     

Old March 29th, 2013, 12:47 AM   #697 (permalink)
Market Wizard
Columbus, OH
 
Futures Experience: None
Platform: NT-9G, TOS
Favorite Futures: ES
 
Silvester17's Avatar
 
Posts: 3,229 since Aug 2009
Thanks: 4,424 given, 9,889 received


OpalDragon View Post
Guys ---

I posted this on the "Want your Ninja trader Indicator coded for free" thread - but maybe I should have posted it here...

~~~

I think I saw someone have a GOM CD on their chart -- but -- with the PRICE ACTION SWING "historical Swing" lines on it so that you could see if it had reached the high of the swing or crossed it.

I tried puting Price Action Swing on the GOM CD but it did not work.

Is there a way to get those horizontal lines running to the right from all the swings in the GOM CD...?

I really think I already saw someone have it on their charts - and it makes seeing double tops or divergence on the GomCD SO much easier.

I have searched all over the forum but I don't think it was an attachment in a post - it was a screenshot that I saw and I still haven't found it.

Would adding these lines going to the right add to much more work to the CPU ?

~THANKS~

@OpalDragon,

not an easy task I'm afraid.

I believe it would need to be plotted in the price panel. in a sub panel only the dots will show up.

in my example I put the gom cd indicator in the price panel and made the price bars invisible.

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

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

Old March 29th, 2013, 01:27 AM   #698 (permalink)
Elite Member
Pittsburgh, Pennsylvania
 
Futures Experience: Advanced
Platform: Ninja Trader
Favorite Futures: 6E, CL, Anything that moves
 
Posts: 314 since Jun 2012
Thanks: 321 given, 88 received

Yea your right Silvester---

but yea -- I meant the horizontal lines right on the Panel #2 on the GomCD on the bottom panel...

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




Basically like that is how I saw it... but of course with the horizontal lines sort of like the Price Action Swing indicator...

It would be easier to see the divergences..

Reply With Quote
     

Old March 29th, 2013, 10:55 AM   #699 (permalink)
Market Wizard
Columbus, OH
 
Futures Experience: None
Platform: NT-9G, TOS
Favorite Futures: ES
 
Silvester17's Avatar
 
Posts: 3,229 since Aug 2009
Thanks: 4,424 given, 9,889 received


OpalDragon View Post
Yea your right Silvester---

but yea -- I meant the horizontal lines right on the Panel #2 on the GomCD on the bottom panel...

Basically like that is how I saw it... but of course with the horizontal lines sort of like the Price Action Swing indicator...

It would be easier to see the divergences..

@OpalDragon,

ok. I understand now, I think.

you want the naked swings on cd based on cd itself. and not the swings on cd based on price.

that of course is possible too. but same conditions like explained earlier.

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

Reply With Quote
     
The following 3 users say Thank You to Silvester17 for this post:
     

Old March 29th, 2013, 01:00 PM   #700 (permalink)
Elite Member
Pittsburgh, Pennsylvania
 
Futures Experience: Advanced
Platform: Ninja Trader
Favorite Futures: 6E, CL, Anything that moves
 
Posts: 314 since Jun 2012
Thanks: 321 given, 88 received


Exactly like that! So we have to make Two Price Panels for it to work Silvester?

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 10:54 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-05 in 0.14 seconds with 20 queries on phoenix via your IP 23.23.50.247