PriceActionSwing discussion - NinjaTrader | futures io social trading
futures io futures trading


PriceActionSwing discussion
Updated: Views / Replies:434,469 / 1,500
Created: by dorschden Attachments:470

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 470  
 
Thread Tools Search this Thread
 

PriceActionSwing discussion

  #691 (permalink)
Market Wizard
Columbus, OH
 
Futures Experience: None
Platform: NT 8, TOS
Favorite Futures: ES
 
Silvester17's Avatar
 
Posts: 3,314 since Aug 2009
Thanks: 4,551 given, 10,233 received
Forum Reputation: Legendary


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:
 
  #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
 
  #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,222 given, 88 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
 
  #694 (permalink)
Elite Member
Milan Italy
 
Futures Experience: Intermediate
Platform: Ninjatrader, Sierra Chart
Favorite Futures: ES
 
Posts: 522 since Feb 2010
Thanks: 469 given, 622 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:
 
  #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, 89 received

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
 
  #696 (permalink)
Market Wizard
Columbus, OH
 
Futures Experience: None
Platform: NT 8, TOS
Favorite Futures: ES
 
Silvester17's Avatar
 
Posts: 3,314 since Aug 2009
Thanks: 4,551 given, 10,233 received
Forum Reputation: Legendary


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, 74 views)

Last edited by Silvester17; March 28th, 2013 at 11:12 PM.
Reply With Quote
The following 2 users say Thank You to Silvester17 for this post:
 
  #697 (permalink)
Market Wizard
Columbus, OH
 
Futures Experience: None
Platform: NT 8, TOS
Favorite Futures: ES
 
Silvester17's Avatar
 
Posts: 3,314 since Aug 2009
Thanks: 4,551 given, 10,233 received
Forum Reputation: Legendary


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:
 
  #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, 89 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
 
  #699 (permalink)
Market Wizard
Columbus, OH
 
Futures Experience: None
Platform: NT 8, TOS
Favorite Futures: ES
 
Silvester17's Avatar
 
Posts: 3,314 since Aug 2009
Thanks: 4,551 given, 10,233 received
Forum Reputation: Legendary


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:
 
  #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, 89 received


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

Reply With Quote

Reply



futures io > > > > PriceActionSwing discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

July Journal Challenge w/$1100 in prizes from TopstepTrader

July

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Murray Math Discussion? jwhtrades Traders Hideout 5 July 27th, 2011 09:06 PM
Looking for general discussion thread. jctrader Traders Hideout 2 May 2nd, 2011 02:23 PM
PriceActionSwing jeff92887 NinjaTrader 2 March 1st, 2011 06:15 AM


All times are GMT -4. The time now is 03:02 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@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 2017-06-26 in 0.15 seconds with 21 queries on phoenix via your IP 54.196.17.157