PriceActionSwing discussion (Page 121) - 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 May 18th, 2015, 02:40 PM   #1201 (permalink)
Elite Member
Pune India
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: Stocks
 
Elite Trader's Avatar
 
Posts: 28 since Apr 2015
Thanks: 56 given, 14 received

Hi @sudhirc, @Silvester17, @dorschden and all...

If time permits please can you see my request in the above post #1197 and please see whether you guys can help me.

Thanks
Elite Trader.


Last edited by Elite Trader; May 18th, 2015 at 10:31 PM.
Reply With Quote
     

Old May 22nd, 2015, 03:51 PM   #1202 (permalink)
Elite Member
San Fransisco Ca
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: IB
Favorite Futures: forex
 
Posts: 16 since Jan 2014
Thanks: 5 given, 1 received

Words cannot explain the benefits of being able to discuss an indicator like this.

Unfortunately I ran into some inconsistencies Using the RSI(14) divergence using the recent eurgbp daily chart.

setting: 04 Use close values = true
gives correct divergence see picture below

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



setting: 04 Use close values = false
gives incorrect divergence see picture below

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



Am i missing something or is this an error in the code?

kindly your response

Reply With Quote
     
The following 2 users say Thank You to yeshe for this post:
     

Old May 22nd, 2015, 04:13 PM   #1203 (permalink)
Elite Member
San Fransisco Ca
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: IB
Favorite Futures: forex
 
Posts: 16 since Jan 2014
Thanks: 5 given, 1 received


wow you did a great job in making the code structured and accessible.

I have a general question:
Is there a (free) small editor for c# available that i can run on my standalone laptop (no ninjatrader installed)
Want to study the code while i am traveling.

Before i was copying the code into a word document but the open and closing of regions is not possible then.


like to know how you do this

Reply With Quote
     

Old May 23rd, 2015, 10:07 AM   #1204 (permalink)
Elite Member
toronto, ontario
 
Futures Experience: Intermediate
Platform: ninja trader
Broker/Data: sterling, iqfeed
Favorite Futures: es, nq, 6e
 
bizman70's Avatar
 
Posts: 363 since May 2010
Thanks: 41 given, 139 received

swing size and calculation

Could be a simple answer just want to make sure - based on the strength of the swing - IE - 5 to plot a HH, does the indicator need to have a prior 5 bar's high lower then the current bar AND the next 5 bars after to have a lower high ?

so the plot is there after the initial 5 bars and it waits for 5 bars after the HH to confirm that its going to be the HH , if anywhere after the HH there is a higher bar then the HH will move and recalculate?

in simple terms for my understanding we need 5 bars before and 5 bars after to confirm a HH ?

please explain or confirm

thanks

Reply With Quote
     

Old May 31st, 2015, 11:16 PM   #1205 (permalink)
Trading Apprentice
Miami, Florida
 
Futures Experience: Advanced
Platform: NT, SmartQuant, TradeStation
Favorite Futures: Futures
 
Posts: 2 since Sep 2013
Thanks: 2 given, 0 received

Accessing Indicator Properties

Futures Edge on FIO
Hello,

I am having a similar problem accessing values from the indicator and wondered if someone could provide some guidance.

In my declarations I use:
 
Code
using pasb = PriceActionSwing.Base;
I then declare the variable:

 
Code
private Indicator.PriceActionSwing pas;
and define it as:

 
Code
pas = PriceActionSwing(10, 5, pasb.SwingStyle.Standard, false);
from which I am able to access the HH/HL/LH/LL values by using:

 
Code
double hh = pas.HigherHigh[0]; 
double hl = pas.HigherLow[0]; 
double lh = pas.LowerHigh[0]; 
double ll = pas.LowerLow[0];
This all works fine and the local variables (hh/hl/lh/ll) all return the values I would expect.

My problem arises when attempting to access the properties of PriceActionSwing.Base. In particular, I would like to access the values of the boolean variable New and the integer variable Counter of the Swings class and the integer variable NewSwing of the SwingCurrent class. I have created an instance of the 2 relevant classes using:

 
Code
private pasb.SwingCurrent sc = new pasb.SwingCurrent(); 
private pasb.Swings swings = new pasb.Swings();
and sought to retrieve the variable values using:

 
Code
  
bool isNew      = swings.New; 
int  newSwing = sc.NewSwing;
int swingCnt   = swings.Counter;
I do get values for the variables, but in every case, the values are False, 0, 0. This is not what I would expect as it is clear from the chart that new swings are occurring at various points. The swings are confirmed by both the hh/hl/lh/ll variable values and the labels placed on the chart by indicator.

Can someone please advise how I may properly access the values from PriceActionSwing.Base in order to retrieve the variable values I expect?

Thank you.

Isaac


Elite Trader View Post
Hi @sudhirc, @Silvester17, @dorschden


I would like to access the PriceActionSwingPro Indicator values in Strategies, like series of swing highs and swing lows values and the series of the Absolute volume in the Strategies, Actually I want to capture Swing high and Swing low values (Prices). I see the Indicators coding but I am not able to understand. So Would you please be kind and show me an example of the public variables to access in Strategies. I have attached the picture for understanding what I am try to telling.

I am using these variables for understanding....


e.g : if (SwingLow[0] < SwingLow[1] && SwingVol[0] > SwingVol[1])
EnterLong();

if (SwingHigh[0] > SwingHigh[1] && SwingVol[0] < SwingVol[1])
EnterShort();


Thanks
Elite Trader.


Reply With Quote
     

Old June 1st, 2015, 06:28 PM   #1206 (permalink)
Elite Member
Pune India
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: Stocks
 
Elite Trader's Avatar
 
Posts: 28 since Apr 2015
Thanks: 56 given, 14 received

Hi Isaac,

If you want to access swing change alert in the strategy...you can write the code in the PriceActionSwingPro Indicator.

1. Define the BoolSeries variable in the variable section.

private BoolSeries sC; // Swing Change

2. Write the code in the OnBrUpdate method.

if (((swingHigh.New == true && swingHigh.Update == false)
|| (swingLow.New == true && swingLow.Update == false)))
{
sC.Set(true);
}
else
sC.Set(false);


3. Declare the BoolSeries variable as a public variable in Properties section.

[Browsable(false)]
public BoolSeries SC
{
get { return sC; }
}



4. Create the instance variable in the Strategies variable section.

PriceActionSwingPro PASpro;

5. Finally call the values.

if (PASpro.SC[0] == true)
{
Print("\n\n Swing Change Alert "+" Time : "+Time[0]);
}



Thanks
Elite Trader.


Last edited by Elite Trader; June 1st, 2015 at 06:39 PM.
Reply With Quote
     
The following 3 users say Thank You to Elite Trader for this post:
     

Old June 2nd, 2015, 09:13 AM   #1207 (permalink)
Trading Apprentice
Miami, Florida
 
Futures Experience: Advanced
Platform: NT, SmartQuant, TradeStation
Favorite Futures: Futures
 
Posts: 2 since Sep 2013
Thanks: 2 given, 0 received

Elite Trader,

Thank you for the great suggestions. Your approach will certainly remedy my issue. I wonder if you could take a moment to explain why I unable to get proper values for:
  1. The New and Counter methods of the Swings class
  2. The NewSwing method of the SwingsCurrent class

Am I referencing the methods improperly? Or perhaps I am misunderstanding what these methods are intended to do?

I just want to get a thorough understanding of what PriceActionPro.Base is able to do.

Thank you.

Isaac

Reply With Quote
     

Old June 2nd, 2015, 03:26 PM   #1208 (permalink)
Elite Member
Pune India
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: Stocks
 
Elite Trader's Avatar
 
Posts: 28 since Apr 2015
Thanks: 56 given, 14 received


isaacbabani View Post
Elite Trader,

Thank you for the great suggestions. Your approach will certainly remedy my issue. I wonder if you could take a moment to explain why I unable to get proper values for:
  1. The New and Counter methods of the Swings class
  2. The NewSwing method of the SwingsCurrent class

Am I referencing the methods improperly? Or perhaps I am misunderstanding what these methods are intended to do?

I just want to get a thorough understanding of what PriceActionPro.Base is able to do.

Thank you.

Isaac


Hi Isaac

Actually I am also new for this Indicator and try to understand the code. And the swing calculations are done in the PriceActionSwing.Base Indicator.
When will I know that I will tell you.

Thanks
Elite Trader.

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

Old June 14th, 2015, 08:00 AM   #1209 (permalink)
Trading Apprentice
Dalls + United States
 
Futures Experience: Advanced
Platform: oanda
Favorite Futures: forex
 
Posts: 10 since Nov 2012
Thanks: 3 given, 0 received


Silvester17 View Post
@tellytub,

when you download the newest version here:

Downloads - Free Section - Big Mike's Trading Forum

the file will include the following 3 indicators:

- price action swing
- price action swing pro
- price action swing oscillator

May i know if the PA swing oscillator repaints?, is it possible to build a strategy to enter and exit on the color change ? ( i am not sure if it repaints , thats why i wanted some advise) and also if anyone can build a strategy for me

Regards
V

Reply With Quote
     

Old June 14th, 2015, 12:43 PM   #1210 (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



forexcasted View Post
May i know if the PA swing oscillator repaints?, is it possible to build a strategy to enter and exit on the color change ? ( i am not sure if it repaints , thats why i wanted some advise) and also if anyone can build a strategy for me

Regards
V

the pas indicators do not repaint. it has been explained multiple times in this thread. here's a quote from @dorschden:


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

here, I tried to explain the difference between repainting and updating:


Silvester17 View Post
maybe a little example will clear up a few misunderstandings. I'm using a swing size of 8 ticks. that means as soon as the market moves 8 ticks from the last swing high/low, a new swing high/low will be shown.

example:

a new swing high (HH) is made at 2075.75. if the market would move up to 2077, this HH will also be moved to 2077 (btw that has nothing to do with repainting. that's called adjusting the current swing). if the market would move down, it needs to go at least (minimum) 8 ticks for a new swing low. that would be 2073.75

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


now the market moved down 7 ticks. nothing happened yet. remember we need to go at least 8 ticks lower for a new swing low

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


now the market moved finally down 8 ticks. that means a new swing low (HL) will be drawn

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


the market continues to go lower. the new HL will be adjusted

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


after reaching a new swing low of 2072.75, the market starts to move up again. no new swing high will be shown until we move at least 8 ticks from the last swing low. that would be 2074.75. if we would go to 2074.50, nothing would happen. we still would only see the swing low of 2072.75. and if we don't reach 2074.75 and instead start moving lower again, lets say to 2071, then the last swing low from 2072.75 will be moved to 2071. but in our example the market moved up to 2074.75 and therefore we made a new sing high (LH). and now the same game starts over again

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


those are the very basic functions of this great indicator.


edit:

also worth mentioning is that new feature in pas pro. it's called swing switch. if enabled, it will draw a triangle on the chart, meaning a new swing has been established. this feature will not get adjusted/moved. so you can always see where exactly the swing change occurred

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


with the last update, building strategies has been made even easier. there're also several examples in this thread.

Reply With Quote
     
The following 9 users say Thank You to Silvester17 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:16 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.15 seconds with 20 queries on phoenix via your IP 54.163.159.27