Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi guys, I was just reviewing the action from today. Here is interesting stat that puts the monstrous move on oil today in perspective. I've attached an analysis of the swing stats on oil for two years from the beginning of 2010 to end of 2011 using a 20 Better Renko Swing chart.
The arrow is pointing at the 99th percentile for a LL to HH. This is 557 ticks which means the swing of 557 ticks was in the top 1% of swings for this period.
Now check out the swing in the chart below. 806 tick/52 Bar LL to HH. I don't have a data point near this. Note the median/50th percentile in shaded purple for a LL to a HH is 249 ticks. Also in bars in you look at the bottom panel you can see the 99th percentile in bars in 44 whereas this swing was 52.
This is one reason why I believe it is better to use medians in your statistical analyses as extreme outliers like this can skew the results of the data set.
Greetings.
Firstly I would like to thank you for this awesome indicator and for deciding to make it available in the free section.
However, due to lack of any real coding experience, I have been futilely trying to alter the dreaded three lines for several hours now, in order to make PAS display divergences based on NT's default FisherTransform indicator (period 10)
I am stuck in place and in desperate need of help, any help will be greatly appreciated!
Dorschden, this is probably the most valuable indicator I've ever used! Thank you for putting it out here for everyone to use. I've been working on a strategy to automate some of what I'm doing trading manually and it requires me to record off the event (HL,LL,HH,LH,DB,DT) and the price on close. My programming skills are horrible so I can't figure out how to pull the data from the indicator for use in my strat.
Here's the offending code and the subsequent error:
if (PriceActionSwing(15, 7, PriceActionSwing.Utility.SwingTypes.Standard).DoubleBottom[0] > 0)
{
// Do Something
}
else if (PriceActionSwing(15, 7, PriceActionSwing.Utility.SwingTypes.Standard).HigherHigh[0] > 0)
{
// ETC...
}
Error: 'NinjaTrader.Strategy.Strategy.PriceActionSwing(int, int, PriceActionSwing.Utility.SwingTypes)' is a 'method', which is not valid in the given context
Is there a way to get the event and price data from the indicator on each bar update, if there data? Also, there's probably a better way to go about this, any suggestions would be greatly appreciated. Thanks for everything guys!
Just wanted to point out that the divergence indicator for MACD uses the “Diff” plot (histogram) which is the difference between the MACD line and the Average; however, I typically look at divergence on just the MACD line, in which case “Diff” would need to be replaced with “Default” on lines 1455 & 1456. A thousand thanks, dorschden. Attachment 81880
@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 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;
@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.
Set in the PAS indicator menu in the category "Divergence" the property "Div indicator" to MACD.