NexusFi: Find Your Edge


Home Menu

 





PriceActionSwing discussion


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Silvester17 with 177 posts (570 thanks)
    2. looks_two dorschden with 99 posts (1,124 thanks)
    3. looks_3 Big Mike with 52 posts (90 thanks)
    4. looks_4 jmont1 with 51 posts (23 thanks)
      Best Posters
    1. looks_one dorschden with 11.4 thanks per post
    2. looks_two Silvester17 with 3.2 thanks per post
    3. looks_3 Big Mike with 1.7 thanks per post
    4. looks_4 sudhirc with 1.7 thanks per post
    1. trending_up 974,387 views
    2. thumb_up 2,947 thanks given
    3. group 613 followers
    1. forum 2,093 posts
    2. attach_file 615 attachments




 
Search this Thread

PriceActionSwing discussion

  #631 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394


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. ))




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
Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Increase in trading performance by 75%
The Elite Circle
Exit Strategy
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
27 thanks
Diary of a simple price action trader
26 thanks
Tao te Trade: way of the WLD
23 thanks
My NQ Trading Journal
14 thanks
HumbleTraders next chapter
9 thanks
  #632 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,527


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.

Reply With Quote
  #633 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394



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
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #634 (permalink)
 resist 
Berlin Germany /Alicante Spain
 
Experience: Intermediate
Platform: NinjaTrader
Broker: DDT/Rithmic, Global/CQG, IB, Mirus(Ninja)/MarketDelta
Trading: Futures
Posts: 141 since Jan 2010
Thanks Given: 362
Thanks Received: 67

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.

Reply With Quote
Thanked by:
  #635 (permalink)
 dorschden 
Germany
 
Experience: Master
Platform: NinjaTrader
Posts: 112 since Jun 2009
Thanks Given: 59
Thanks Received: 1,143

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.

Started this thread Reply With Quote
  #636 (permalink)
 SuperSaan 
Amsterdam, The Netherlands
 
Experience: Intermediate
Platform: Ninjatrader
Broker: IB
Trading: EUR/USD
Posts: 20 since Oct 2011
Thanks Given: 17
Thanks Received: 23


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
Elite Membership required to download: DTDB.cs
Reply With Quote
Thanked by:
  #637 (permalink)
 
prisonbreaker82's Avatar
 prisonbreaker82 
Rio de Janeiro
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire, IB
Trading: Equity & Futures
Posts: 312 since Jun 2010
Thanks Given: 58
Thanks Received: 141

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
Elite Membership required to download: PriceActionSwingPro_added_custom_divergence_indicator_rvaluechart.zip
Elite Membership required to download: StrategyDivergence.cs
Elite Membership required to download: sounds.zip
Visit my NexusFi Trade Journal Reply With Quote
  #638 (permalink)
 
Nowshad's Avatar
 Nowshad 
Los Angeles, California
 
Experience: Intermediate
Platform: Tradestation Ninja TOS
Broker: AMP Tradestation TOS
Trading: ES NQ CL 6E
Posts: 46 since May 2010
Thanks Given: 15
Thanks Received: 14

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
Thanked by:
  #639 (permalink)
 
djkiwi's Avatar
 djkiwi 
Mercer Island WA
 
Experience: Advanced
Platform: Ninjatrader/Strategy Desk
Broker: Various
Trading: TF/NQ/ES/Stocks
Posts: 561 since May 2010
Thanks Given: 981
Thanks Received: 1,558

@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
Elite Membership required to download: SwingTrendX1.cs
Reply With Quote
  #640 (permalink)
 
prisonbreaker82's Avatar
 prisonbreaker82 
Rio de Janeiro
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire, IB
Trading: Equity & Futures
Posts: 312 since Jun 2010
Thanks Given: 58
Thanks Received: 141



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
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on January 7, 2024


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts