PriceActionSwing discussion (Page 49) - 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,319 / 1,346
Last Reply:2 Hours Ago (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 July 19th, 2012, 11:24 AM   #481 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received

Here is the market analyzer template with ABC signals, swing trend and the divergence signals. The settings are for daily bars. You have to change them to your preferred time frames. The underlying divergence indicator and it's settings can be changed under the property "Div indicator" and "Paremeter 1,2,3".

I already sent a new PriceActionSwing version to @Big Mike and first after he uploads the updated version and you downloaded the new one from the download section this template will work. He probably will write a post in this thread when he did it.

Save the file under ...\Documents\NinjaTrader 7\templates\MarketAnalyzer and then load it in a market analyzer.

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

Attached Files
Register to download File Type: xml PasMa2.xml (59.3 KB, 243 views)
Reply With Quote
     
The following 21 users say Thank You to dorschden for this post:
     

Old July 19th, 2012, 04:59 PM   #482 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 45,543 since Jun 2009
Thanks: 28,886 given, 80,134 received


dorschden View Post
Here is the market analyzer template with ABC signals, swing trend and the divergence signals. The settings are for daily bars. You have to change them to your preferred time frames. The underlying divergence indicator and it's settings can be changed under the property "Div indicator" and "Paremeter 1,2,3".

I already sent a new PriceActionSwing version to @Big Mike and first after he uploads the updated version and you downloaded the new one from the download section this template will work. He probably will write a post in this thread when he did it.

Save the file under ...\Documents\NinjaTrader 7\templates\MarketAnalyzer and then load it in a market analyzer.

Done, and Notifications sent.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

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

Old July 19th, 2012, 05:07 PM   #483 (permalink)
Elite Member
Columbus
 
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: Es, forex, stocks
 
Posts: 22 since Oct 2011
Thanks: 7 given, 17 received


Thanks guys, this is great!!

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

Old July 21st, 2012, 12:25 AM   #484 (permalink)
Elite Member
Indianapolis, IN
 
Futures Experience: Advanced
Platform: NinjaTrader, MT4
Favorite Futures: Currency FUtures
 
Posts: 11 since Aug 2011
Thanks: 20 given, 4 received

DIVERGENCE

^Thanks everyone for making this thread so successful so far!

But my question is 2 fold. 1) Can we change the divergence indicators from the standard ones (Sto, MACD, etc) to something else? ANd if so, how? and 2) What is everyones favorite divergence indicator to use and what settings?

Thanks in advance,
bubbadirect

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

Old July 21st, 2012, 12:53 PM   #485 (permalink)
Elite Member
cordoba spain
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: 6E
 
dee50's Avatar
 
Posts: 72 since Feb 2011
Thanks: 77 given, 38 received

Better Late than Never

Futures Edge on FIO

Are you a NinjaTrader user?

 

mystiq View Post
I use a setting of 10....for all timeframes....it catches most (a) (b)and (c) swings...just have to watch out for false patterns before swing (c) occurs...then just reverse the trade

Thanks for your response, sorry I am so late in coming back, but as I asked the question in February and had no response I gave up watching. A lot of water has flowed under the bridge since then, I have this on all my charts and I have been using the setting 3, Swing Size on 1hr and 15 min and 5 min charts, it picks up all the HH, HL, LL, LH you just get the occasional false signal but now I am better able to judge them for myself. I used the indi to train my eye for the swings, now I really do not need it anymore. ABC/ 123 Patterns are obvious now too. So I turned off everything bar the HH , HL, LH, LL markers because otherwise the chart is too cluttered and I couldn,t see the price action for all the trees.

Fanatastic Indi, I am grateful for it, it has helped train my eye, but now I do not need the training wheels anymore.

Just added a chart to show how I use this Indi.

Attached Thumbnails
PriceActionSwing discussion-6e-tdi-16-20-07-2012.png  

Last edited by dee50; July 22nd, 2012 at 12:08 PM.
Reply With Quote
     
The following 2 users say Thank You to dee50 for this post:
     

Old July 21st, 2012, 01:34 PM   #486 (permalink)
Elite Member
Indianapolis, IN
 
Futures Experience: Advanced
Platform: NinjaTrader, MT4
Favorite Futures: Currency FUtures
 
Posts: 11 since Aug 2011
Thanks: 20 given, 4 received


dorschden View Post
@bomberone1 and @yiman unfortunately there is no Multicharts version.



@Vajce18 add the following bold lines to the code, change line 138 to custom and compile it. In the "param1" parameter you can set the period, e.g. 10. Now it should work.

Line 138:
private DivergenceMode divergenceMode = DivergenceMode.Custom;

Line 162:
private Stochastics stochastics;
private MACD macd;
private FisherTransform fisherTransform;

Line 670:
case DivergenceMode.Custom:
fisherTransform = FisherTransform(param1);
// Add custom divergence indicator here
break;

Line 1440:
case DivergenceMode.Custom:
divergenceDataHigh = fisherTransform.Value;
divergenceDataLow = fisherTransform.Value;

// Add custom divergence indicator here
break;

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




@NathanExplosion, unfortunately this isn't possible. You have to change the code to accomplish this. There are several ways to do this. Because of your moderate coding skills I suggest that you create some variables to save the certain swing relations and make them public. E.g. create a variable called lastLowRelation2 in which you save the 3rd last swing low relation (swing low relation = LL, HL, DB) and in line 2582 you write "lastLowRelation2 = lastLowRelation;" Then you have in the variables curLowRelation, lastLowRelation, lastLowRelation2 the swing low relations. Now you have to make this variables accessible. In "Region Properties" in "Region Dataseries" you add following line for each variable (same for the long values). Now you should be able to access the values from within a strategy. I didn't test this, but it should work.
 
Code
[Browsable(false)]
public Relation CurLowRelation
{
  get { return curLowRelation; }
}


Set in the PAS indicator menu in the category "Divergence" the property "Div indicator" to MACD.

DORSCHDEN++++I have a question for you. What are the DIVERGENCE settings in the parameter 1 parameter2 parameter3 stand for in the CUSTOM FisherTransform? What timeframes are they measuring from? The reason that I ask is that I would like to see if there is a way that I could measure the DIVERGENCE on a bigger set of prices (From one swing low to the next swing low, etc) for my fib calculations. I believe that if I could see the hDIV print when I see the FIB confluence, this would add strength to the trade!!!!!!!!

Thank you in advance, bubbadirect

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

Old July 23rd, 2012, 11:22 AM   #487 (permalink)
Elite Member
cordoba spain
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: 6E
 
dee50's Avatar
 
Posts: 72 since Feb 2011
Thanks: 77 given, 38 received

This is simple for some, gobbledeegook for others!!

I too am trying to set up the divergence feature with a custom indicator that I use all the time anaTradersDynamicIndexColour but I have no coding skills at all, following your advice

Divergence:

Here you can set all settings to display divergence in the chart.

Div indicator:
Represents the indicator for the divergence calculations. You can add one or more indicators in the source code under the value "custom". You just have create an instance of you indicator in the "Divergence" region in the OnStartUp() function (Line 670 in the source code) which is only is one line and in the OnBarUpdate() function in the "Initialize variables" region in the "Divergence" region (Line 1440) you have to assign the indicator values to the data series which are only two lines and than you're done. The PAS makes the rest.

Param1, Param2, Param3
Represents the first parameter for the indicator you choose. E.g. the standard MACD(12,26,9) would be
Param1 = 12
Param2 = 26
Param3 = 9.

I have got this.

LINE 670. case DivergenceMode.Custom:
anaTradersDynamicIndexColour = anaTradersDynamicIndexColour (param1, param2, param3);

I do not know what to put in LINE 1440.

These are the variables from the custom INDI

private int rsiPeriod = 13;
private int pricePeriod = 2;
private int signalPeriod = 7;
private int bandPeriod = 34;
private double stdDevNumber = 1.62;

I am guessing that for divergence you only need 2 data sets 1 for high and 1 for low, but which do I use? and what syntax do I use.

Can anyone help. Much appreciated if you can. Attached is a chart with said INDI at the bottom.

Attached Thumbnails
PriceActionSwing discussion-divergence.png  
Reply With Quote
     

Old July 23rd, 2012, 11:44 AM   #488 (permalink)
Elite Member
Boston
 
Futures Experience: Advanced
Platform: Ninja Trader
Favorite Futures: TF,CL
 
Posts: 33 since Apr 2011
Thanks: 27 given, 2 received

Hi, the swing pro indicator is very nice, I would like to use it on a stochastic indicator, can this be done or only on price bars?

Reply With Quote
     

Old July 24th, 2012, 07:22 AM   #489 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received

Create divergence signals based on a freely chosen indicator

To answer the divergence questions I wrote some instructions.

With the PriceActionSwingPro we can very easily create divergence signals based on any indicator or oscillator with a few tweaks in the code. The only requirement is that the base indicator has a plot or a public data series output to access the base indicator values within the PriceActionSwingPro.

To get the names of the data series that save the base indicator values you can look in the base indicators source code in the "properties" region for the words "public dataseries" and the word after this two words is the data series name.

E.g. the MACD has three different values where we can calculate the divergence on.
1. macd value (Plot name: "Macd" = DataSeries name: "Default" = "Value")
2. average value (Plot name = DataSeries name: "Avg")
3. difference value (Plot name = DataSeries name: "Diff")

If the indicator has no public data series but plots values like the FisherTransformation than the name of the public data series is "Value".

Now we have the name of the data series where all the values from the base indicator are saved and which one we want to compare against the swings to calculate the divergence.

The next step is to change the source code of the PriceActionSwingPro. NT's standard FisherTransformation will be used as example.

1. Create a variable of the base indicator in the region "Variables" in line 52.

private FisherTransform fisherTransform;

2. Change the "divergenceMode" to custom in the region "Variables" in line 138.

private DivergenceMode divergenceMode = DivergenceMode.Custom;

3. Set the parameter of the base indicator in the param1, param2, parem3 variables in line 159. If the base indicator has only one variable use param1. Param2 and param3 are ignored. If the base indicator has more than 3 parameters create another parameter e.g. "param4" and make it public in the "properties" region.

private int param1 = 10;

4. Create the base indicator values. In the region "Create forms" in the region "Divergence" in the "case DivergenceMode.Custom" call the base indicator with the set parameters in line 675.

case DivergenceMode.Custom:
fisherTransform = FisherTransform(param1);
// Add custom divergence indicator here
break;

5. Access the base indicator values. In the "OnBarUpdate" function in the region "Initializes Variables" in the region "Divergence" in the "case DivergenceMode.Custom" access the base indicator values in line 1457.

case DivergenceMode.Custom:
divergenceDataHigh = fisherTransform.Value;
divergenceDataLow = fisherTransform.Value;

// Add custom divergence indicator here
break;

There is a high and a low series two to accomplish divergence calculation where the base indicator values (or another instrument) have a high and a low. e.g. candlesticks. With this solution you can also calculate divergence based on a different instrument, e.g. you have a FDAX chart and calculate divergence on the FESX.

6. And now we are already done! The PriceActionSwingPro indicator will do the rest. Just compile it and load it on a chart or in the market analyzer.

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

Old July 24th, 2012, 09:35 AM   #490 (permalink)
Elite Member
Boston
 
Futures Experience: Advanced
Platform: Ninja Trader
Favorite Futures: TF,CL
 
Posts: 33 since Apr 2011
Thanks: 27 given, 2 received



dorschden View Post
To answer the divergence questions I wrote some instructions.

With the PriceActionSwingPro we can very easily create divergence signals based on any indicator or oscillator with a few tweaks in the code. The only requirement is that the base indicator has a plot or a public data series output to access the base indicator values within the PriceActionSwingPro.

To get the names of the data series that save the base indicator values you can look in the base indicators source code in the "properties" region for the words "public dataseries" and the word after this two words is the data series name.

E.g. the MACD has three different values where we can calculate the divergence on.
1. macd value (Plot name: "Macd" = DataSeries name: "Default" = "Value")
2. average value (Plot name = DataSeries name: "Avg")
3. difference value (Plot name = DataSeries name: "Diff")

If the indicator has no public data series but plots values like the FisherTransformation than the name of the public data series is "Value".

Now we have the name of the data series where all the values from the base indicator are saved and which one we want to compare against the swings to calculate the divergence.

The next step is to change the source code of the PriceActionSwingPro. NT's standard FisherTransformation will be used as example.

1. Create a variable of the base indicator in the region "Variables" in line 52.

private FisherTransform fisherTransform;

2. Change the "divergenceMode" to custom in the region "Variables" in line 138.

private DivergenceMode divergenceMode = DivergenceMode.Custom;

3. Set the parameter of the base indicator in the param1, param2, parem3 variables in line 159. If the base indicator has only one variable use param1. Param2 and param3 are ignored. If the base indicator has more than 3 parameters create another parameter e.g. "param4" and make it public in the "properties" region.

private int param1 = 10;

4. Create the base indicator values. In the region "Create forms" in the region "Divergence" in the "case DivergenceMode.Custom" call the base indicator with the set parameters in line 675.

case DivergenceMode.Custom:
fisherTransform = FisherTransform(param1);
// Add custom divergence indicator here
break;

5. Access the base indicator values. In the "OnBarUpdate" function in the region "Initializes Variables" in the region "Divergence" in the "case DivergenceMode.Custom" access the base indicator values in line 1457.

case DivergenceMode.Custom:
divergenceDataHigh = fisherTransform.Value;
divergenceDataLow = fisherTransform.Value;

// Add custom divergence indicator here
break;

There is a high and a low series two to accomplish divergence calculation where the base indicator values (or another instrument) have a high and a low. e.g. candlesticks. With this solution you can also calculate divergence based on a different instrument, e.g. you have a FDAX chart and calculate divergence on the FESX.

6. And now we are already done! The PriceActionSwingPro indicator will do the rest. Just compile it and load it on a chart or in the market analyzer.

dorschden, thank you very much for the reply, I am not a programmer, much too difficult for me.

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 12:19 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-07 in 0.18 seconds with 20 queries on phoenix via your IP 54.197.90.95