PriceActionSwing discussion (Page 64) - 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,625 / 1,346
Last Reply:December 7th, 2016 (10:04 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 November 29th, 2012, 09:32 AM   #631 (permalink)
Elite Member
Atkinson, NH USA
 
Futures Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker/Data: NinjaTrader Brokerage
Favorite Futures: Futures, CL, ES, ZB
 
NJAMC's Avatar
 
Posts: 1,882 since Dec 2010
Thanks: 2,934 given, 2,240 received


resist View Post
I take the PriceActionSwingOscillator with all standard settings as it comes in last download, settings choose indication = trend, trend change = true or fals (trying both). Can anyone kindly help me to put it in a strategy? Or has anyone created a strategy with and could give me samples I can learn from? I will take any help I can get. ))



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

Hi @resist,

UPDATE: This comment is about the PriceActionSwing indicator, I suspect if the oscillator is based upon it, the same would apply but I am not sure.

As much as this indicator looks like a great core for a strategy, you need to understand there is re-painting that goes on under the hood. That is, as your strategy is processing bars, this indicator is change prior bars (which your strategy will miss). I use this indicator for training of Machine Learning concepts as I am training off-line and the re-painting doesn't affect me that much.

If you can describe what you want to do, I might be able to tell you if it is possible from what I know about this indicator.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Reply With Quote
     
The following 2 users say Thank You to NJAMC for this post:
     

Old November 29th, 2012, 09:55 AM   #632 (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,429 given, 9,899 received


NJAMC View Post
Hi @resist,

UPDATE: This comment is about the PriceActionSwing indicator, I suspect if the oscillator is based upon it, the same would apply but I am not sure.

As much as this indicator looks like a great core for a strategy, you need to understand there is re-painting that goes on under the hood. That is, as your strategy is processing bars, this indicator is change prior bars (which your strategy will miss). I use this indicator for training of Machine Learning concepts as I am training off-line and the re-painting doesn't affect me that much.

If you can describe what you want to do, I might be able to tell you if it is possible from what I know about this indicator.

@NJAMC,

as far as I understand, the only thing that repaints is the volume part. the trend (from oscillator) is not repainting.


Last edited by Silvester17; November 29th, 2012 at 10:06 AM.
Reply With Quote
     
The following 3 users say Thank You to Silvester17 for this post:
     

Old November 29th, 2012, 10:51 AM   #633 (permalink)
Elite Member
Atkinson, NH USA
 
Futures Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker/Data: NinjaTrader Brokerage
Favorite Futures: Futures, CL, ES, ZB
 
NJAMC's Avatar
 
Posts: 1,882 since Dec 2010
Thanks: 2,934 given, 2,240 received



Silvester17 View Post
@NJAMC,

as far as I understand, the only thing that repaints is the volume part. the trend (from oscillator) is not repainting.

@Silvester17,

Thanks, that may be the case for the oscillator, but the non-oscillator definitely moves the last swing point as time progresses. Not sure if the oscillator uses this information or not.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Reply With Quote
     
The following 2 users say Thank You to NJAMC for this post:
     

Old November 29th, 2012, 11:34 AM   #634 (permalink)
Elite Member
Berlin Germany /Alicante Spain
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: DDT/Rithmic, Global/CQG, IB, Mirus(Ninja)/MarketDelta
Favorite Futures: Futures
 
Posts: 148 since Jan 2010
Thanks: 362 given, 66 received

Thanks for your thinking about. I think the oscillator exactly shows the trends in the way the dow theory is teaching it (or in Germany we have a well known trader (Michael Voigt) who is teaching all aspects market technics in this "dow" way). The market technic followers teach to watch the middle trend if you trade the small trend (e.g. 10min if you trade Tick or to watch 60min if you trade the 10 min time frame).
Back to my question. It would be fantastic if I could put the red or green oscillator bar into a strategie as a basic rule alowing only long or short automated trades on a smaller timeframe. It is possible to put it in the market analyzer but I didnīt find any way how to put it in a strategy.

Of course I respect the problems about repainting. This is the same to discretional trading, often the situation changes in seconds with new bars suddenly and the only way to handle this is to take the loose or to take to a reentry if stopped out by unexpected events, e.g. market corralations. I knows that there are not only speculators, but there are fundamental, abitrage traders and hedgers at the 4side trading desk, too ))
Does anyone a way to take the main trend out of the trend oscillator?
Itīs not only to have it more simple, also, in my opinion, itīs the only possibility to trade a bigger quantity of equieties if you automate it a litte bit so of yourse it would be really great to automate the pushing up a stop to the next Swing level (bottom) if market creates a new high. I cannot mention it often enough, this indicator seems to be fantastic.


Last edited by resist; November 29th, 2012 at 11:46 AM.
Reply With Quote
     
The following user says Thank You to resist for this post:
     

Old November 29th, 2012, 11:58 AM   #635 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 935 received

Futures Edge on FIO

Are you a NinjaTrader user?

 
The PAS indicator is a real time indicator. I doesn't repaint, but of course it updates the swing values every time the swing gets higher or lower. And if a swing high moves from a lower high to a higher high the plot dot colour will change to the HH colour.

The only thing that is re-painting is the PasOsc volume part. Because every time we get a new bar that doesn't make a new swing high/low we don't know whether this bar belongs to the current swing or to the next swing that will come in the future. To highlight this situation the PasOsc volume draws the volume histogram according to the current swing direction and the plot line draws the volume to what the swing volume will change if the bars belong to the next swing which will change the swing direction.

The PasOsc trend will not re-paint. To see how it is used in a strategy you can look at the code in this post. To use it in a multi-time frame environment add another bar series and check in this bar series (barsInProgress == x) for the PasOsc swingTrend[0] == -1/0/1.

Reply With Quote
     
The following 8 users say Thank You to dorschden for this post:
     

Old November 29th, 2012, 12:04 PM   #636 (permalink)
Elite Member
Amsterdam, The Netherlands
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: IB
Favorite Futures: EUR/USD
 
Posts: 19 since Oct 2011
Thanks: 17 given, 23 received


SuperSaan View Post
First of all, thanks for your reply.

Please correct me if I'm wrong, but the # of bars lookback you mention here is the amount of bars that the script wil look back and calculate if there has been HH/HL/DT/Etc within that range. So if the 'first Top' will fall out of that range, then it will not show a DT later on.

What I really mean is: if the DT for instace happened more then 3 bars ago, then I don't want to see it in my MA.

Any help will be greatly appreciated.

Hi,

I came across a solution myself and created a custom indicator which will do the job for me. I will share it for anyone who likes it. It works with this code:

 
Code
        #region Variables
            private int dTDBstrenght = 15; // Default setting for DTDBstrenght
            private int swingsize = 7; // Default setting for Swingsize
        #endregion

        protected override void Initialize()
        {
          	Add(new Plot(new Pen(Color.LimeGreen, 2), PlotStyle.Bar, "Trigger"));
			CalculateOnBarClose	= false;
        }

        protected override void OnBarUpdate()
        {

			if (PriceActionSwingOscillator(High, dTDBstrenght, swingsize,SwingTypes.Standard).SwingRelation[0] == -2)
				Value.Set(-2);
			
			if (PriceActionSwingOscillator(High, dTDBstrenght, swingsize,SwingTypes.Standard).SwingRelation[0] == -1)
				Value.Set(-1);
			
			if (PriceActionSwingOscillator(dTDBstrenght, swingsize,SwingTypes.Standard).SwingRelation[0] == 0)
				Value.Set(0);
			
			if (PriceActionSwingOscillator(Low, dTDBstrenght, swingsize,SwingTypes.Standard).SwingRelation[0] == 1)
				Value.Set(1);
			
			if (PriceActionSwingOscillator(Low, dTDBstrenght, swingsize,SwingTypes.Standard).SwingRelation[0] == 2)
				Value.Set(2);
        }
It is important to change the standard setting for calculateonbarclose to False in PriceActionSwingOscilator.cs otherwise it will not work on the current bar in progress.
This indicator shows in the MA if the current bar is a DT,HH,DB,etc. For me this is helpful on the daily charts.

Attached Files
Register to download File Type: cs DTDB.cs (7.3 KB, 56 views)

Last edited by SuperSaan; November 29th, 2012 at 01:29 PM.
Reply With Quote
     
The following user says Thank You to SuperSaan for this post:
     

Old December 12th, 2012, 11:04 PM   #637 (permalink)
Elite Member
Rio de Janeiro
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire, IB
Favorite Futures: Equity & Futures
 
prisonbreaker82's Avatar
 
Posts: 312 since Jun 2010
Thanks: 57 given, 140 received

Divergence in Strategy

Hello,

I have been modifying this amazing indicator to fit my personal style.

* added a custom indicator (RValueChart)
* added sound alerts for divergence signals

These settings gives me very good signals with a filter for long and short trades.

Now my next step is to create a strategy and add the divergence part plus one other filter I have found which is very very powerful which I use in my discretionary trading today.

I need help to create the strategy. Is there anyone who can help me who has good skills in NinjaScript/C++?

Please find attached modified indicator with RValueChart indie included I also add the sound files which you have to put inside there
C:\Program Files (x86)\NinjaTrader 7\sounds

If you already have PriceActionSwingPro installed you have to rename the file and replace the filename inside the script as well.

"insanity is doing the same thing over and over again and expecting different results." - Albert Einstein
Attached Files
Register to download File Type: zip PriceActionSwingPro_added_custom_divergence_indicator_rvaluechart.zip (29.8 KB, 279 views)
Register to download File Type: cs StrategyDivergence.cs (183.4 KB, 167 views)
Register to download File Type: zip sounds.zip (67.0 KB, 144 views)
Reply With Quote
     
The following 9 users say Thank You to prisonbreaker82 for this post:
     

Old December 13th, 2012, 12:55 PM   #638 (permalink)
Elite Member
Los Angeles, California
 
Futures Experience: Intermediate
Platform: Tradestation Ninja TOS
Broker/Data: AMP Tradestation TOS
Favorite Futures: ES NQ CL 6E
 
Nowshad's Avatar
 
Posts: 46 since May 2010
Thanks: 15 given, 14 received

PriceAction modified

Hi, a few questions: what is Rvalue? Can you post a chart example? Do we have to delete the PriceActionPro and install your version? Did you get the GOM CD to work as a divergence indicator option within the PriceACtionPro?...Thanks.

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

Old December 13th, 2012, 03:28 PM   #639 (permalink)
Identify Evaluate Execute
Mercer Island WA
 
Futures Experience: Advanced
Platform: Ninjatrader/Strategy Desk
Broker/Data: Various
Favorite Futures: TF/NQ/ES/Stocks
 
djkiwi's Avatar
 
Posts: 561 since May 2010
Thanks: 980 given, 1,515 received

@dorschden

Thanks for posting that and continuing to support the thread. One thing I've never succeeded is to get PAS working in a strategy despite all of the snippets of various code posted here in the forum by you and other people. For example, these are key items I'd like to reference in a separate strategy and any additional "hand holding" would be appreciated.

 
Code
			
if (
                
curHighRelation == Relation.Higher
                
&&(curLowRelation == Relation.Higher
                
||curLowRelation == Relation.Double)                            
                &&
curLowBar<4    
                
&&trendDir == 
I'm not looking to take the whole PAS indicator and put it into a strategy but extract the key parts above. The closest thing I've got so far is the SwinTrendX1 indicator written by another member (please see attached) and I've been trying to modify it for months unsuccessfully. I've never been able to get the arrows to appear historically on the chart. In fact now I cannot get the arrows to appear at all. In addition, is it possible to reference curLowBar and trendDir?

Cheers
DJ

Attached Files
Register to download File Type: cs SwingTrendX1.cs (5.7 KB, 74 views)
Reply With Quote
     

Old December 14th, 2012, 12:18 PM   #640 (permalink)
Elite Member
Rio de Janeiro
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire, IB
Favorite Futures: Equity & Futures
 
prisonbreaker82's Avatar
 
Posts: 312 since Jun 2010
Thanks: 57 given, 140 received



Nowshad View Post
Hi, a few questions: what is Rvalue? Can you post a chart example? Do we have to delete the PriceActionPro and install your version? Did you get the GOM CD to work as a divergence indicator option within the PriceACtionPro?...Thanks.

@Nowshad,

Open the .cs file and rename the filenames and indciator name and put it in
C:\Users\XXXXX\Documents\NinjaTrader 7\bin\Custom\Indicator

and compile the indicator and you will see.

"insanity is doing the same thing over and over again and expecting different results." - Albert Einstein
Reply With Quote
     
The following user says Thank You to prisonbreaker82 for this post:
     

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)
 

Trading Technologies: ADL hands-on

Dec 13

Normal webinar schedule resumes after the holidays

January

Ernie Chan: Risk Management

Elite only

Dedicated Trading Servers: Advantages/Disadvantages w/sam028

Elite only

An Afternoon with FIO member Massive I

Elite only

Leo Murphy: TBA

Elite only
     

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 03:13 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-09 in 0.17 seconds with 20 queries on phoenix via your IP 54.163.159.27