Anyone have (or know how I can get) the code for the Person's Pivot indicators (PPS) that are free with ThinkOrSwim so I can use them in Ninjatrader? This is the indicator that puts the buy/sell arrows on the price chart, not the one that draws the support and resistance lines. I went to Person's web page and they are no longer offered for Ninjatrader. Any help would be greatly appreciated! See screenshot.
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).
Last edited by Diamond5; September 22nd, 2014 at 01:24 AM.
Reason: Added picture
The following user says Thank You to Diamond5 for this post:
This looks just like two pivot moving averages. A pivot moving average is nothing else than a SMA, which uses the typical price as input series. You can select the input series under indicator settings.
If you need the arrows you would have to code an indicator that has two SMAs and triggers a signal when the price closes first above or first below the moving averages.
Such an indicator is easy to code, maybe you can post your request here:
Thanks FT - I guess maybe I'm over thinking it. I'm not sure what formula is behind the arrows. Would that screenshot be enough for someone to work off of and reverse engineer the indicator? After looking at the description and the indicator options however, I think you are right. I wish I could figure out what the numbers behind it were. If I could, I could probably code it myself.
Here is the description:
Person's Pivot Study (PPS) is a bullish and bearish momentum indicator. In addition, it has two proprietary moving average settings that help visualize either a bullish or bearish market condition. When an arrow points up and prices as defined by the close and/or the open and close relationship of each respective time period is above both moving average values, traders can look to take trades from the long side. Inversely when an arrow is pointing down and the close and/or the open and close relationship of each respective time period is below both moving average values, traders can look to take trades from the short side. This aids in determining the trend as the moving averages in an uptrend will act as support and in a downtrend will act as resistance. When combined with Person's Pivots, the PPS study helps to confirm trades against the predetermined support and resistance target levels.
Maybe I'll just play with some different settings and see what I get.
Amazing. And he charges how much a month for that? I should pay you Trendwaves! Thank you so much.
I spent the weekend coding it (because it takes me 2 days just to get "Hello World" to display in the output box). I compared it to ToS and it's almost spot on. It might be off by a bar or so - most times it fires early which is fine. Makes me think that it might be a 5 SMA. I've attached the code.
BDCEMACrossover.cs will draw a green or red arrow every time the 3 EMA crosses above (green) or below (red). It also plays "Alert2" when the arrow fires so you don't have to babysit it. It will also plot the lines, but the default color is transparent. Enable if you want.
If anyone wants to take a crack at the code to optimize it, I'm sure that there are more efficient ways of doing this.
I also included a Gann study BDCGann.cs that I use as well. These two indicators seem to work pretty good for my trading. My ganns I set for 12 SMA and 5 EMA.
Last edited by Diamond5; September 29th, 2014 at 08:05 PM.
Reason: Wanted to add the comparison to ToS
The following 2 users say Thank You to Diamond5 for this post:
There is something else in PPS calculation besides EMA (3) and EMA (5).
If you look carefully you can see that simple cross over of EMAs give much more wrong signals than PPS.
I'm trying to implement PPS in TradeStation, so if somebody have any ideas?
I just happened to be comparing my ninja indicator against the offical TOS indicator this afternoon and see your point. I was able to match almost every arrow exactly using EMA (5) and EMA (9). Using WMA(5) and WMA(9) improves the timelyness of the arrows in many cases (same signal but one or two candles sooner), but using WMA's does plot a couple extra arrows here and there. In using a faster WMA(3) and WMA(5) I am able to speed up the arrow signal by one more candle. This is a personal preference trade-off : get a faster signal (closer to the actual price turning point) using 3 and 5 but at the expense of having more arrows in a narrow range congested market, or go for the closer match of the official PPS with the slower EMA 5 and 9.
Be Patient and Trade Smart
The following user says Thank You to trendwaves for this post: