Person Pivots, PPS and PMC indicators

chenthy

New member
2019 Donor
Hi,
Is there anyone out there using these Person indicators in ToS? If yes, do you find them useful?
 

markos

Well-known member
VIP
Hi,
Is there anyone out there using these Person indicators in ToS? If yes, do you find them useful?
Hi @chenthy in case no one answers. I don't know of anyone that 'regularly' uses Persons stuff. Neither good nor bad, just so many to choose from.
Have you looked at the code to see what they do? That's how I try to see where something might suit me. Put them on a chart and live with them for a while and use the lower indicator boxes with something you're familiar with to compare. Hope that helps, Markos
Also, Google is your friend. If it was first published in TASC, the Universe of Thinkscript in Tutorials has all of them, dating back many years.
 

dougn

Member
2019 Donor
May be quite late but I do happen to have PPS/PMC built into a study that also can be used as a scan. I tried to install it as a watchlist column but lack the skill to eliminate "Nan's" ...
Code:
input xDays = 1;
def ppsBuy = PPS().BuySignal;
def ppsSell = PPS().SellSignal;
def buy = !IsNaN(ppsBuy);
def sell = !IsNaN(ppsSell);
def pmcDiff = PMC().Diff;
def pmcMA = PMC().DiffMA;
def lightBlue = pmcDiff > 0 and pmcDiff > pmcMA;
def darkBlue = pmcDiff > 0 and pmcDiff < pmcMA; def red = pmcDiff < 0 and pmcDiff < pmcMA; def magenta = pmcDiff < 0 and pmcDiff > pmcMA;
def confirmDaysBullish = (Sum(lightBlue, xDays) + Sum(magenta, xDays)) >= xDays;
def confirmDaysBearish = (Sum(red, xDays) + Sum(darkBlue, xDays)) >= xDays;
def confirmedBuy = buy and confirmDaysBullish;
def confirmedSell = sell and confirmDaysBearish;
def buyWithReversal = magenta[1] and lightBlue and Highest(buy, xDays) > 0;
def sellWithReversal = lightBlue[1] and red and Highest(sell, xDays) > 0;
# use this to scan for PPS buy signals that follow bullish PMC
plot scan = confirmedBuy;
# use this to scan for PPS sell signals that follow bearish PMC
#plot scan = confirmedSell;
# use this to scan for bullish PMC reversals that follow a PPS buy
#plot scan = buyWithReversal;
# use this to scan for bearish PMC reversals that follow a PPS sell
#plot scan = sellWithReversal;
 

skynetgen

Well-known member
I am using "Pivot Points" from TOS. its some fort of HL/2 fib of previous day levels(reverse engineered it once) . Its works reasonable well as additional R/S level check but not by itself (basically I use it as excuse to take profit nearby and it works well)
 

dougn

Member
2019 Donor
I have since acquired a column that seems to work fine. PPS may not be the holy grail but it sure can help alert you to potential reversals in any time frame.

Code:
###### PPS ###############################
def xDays = 1;
def ppsBuy = PPS().BuySignal;
def buy = !IsNaN(ppsBuy);
def ppsSell = PPS().SellSignal;
def sell = !IsNaN(ppsSell);

plot value =
         if buy then 4
    else if sell then 1
    else 0;
value.assignValueColor(
         if value == 4 then color.light_green
    else if value == 1 then color.dark_red
    else color.black);
assignBackgroundColor(
         if value == 4 then color.light_green
    else if value == 1 then color.dark_red
    else color.black);
##########################################
 

Rebels

New member
Does anyone have code for PPS? It works like this for the SPY: When price of that bar (prefer 60min) closes above simple moving average (High, 4) it gives a buy signal arrow. If the next bar exceeds the high of the signal bar by 2 ticks then a buy order is entered. Sell arrow is given when crosses below SMA (High,14). TOS uses a different SMA setting and isn't true to what Person's really uses. He uses different SMA settings for other indexes.
 

juan david

New member
VIP
is it possible to create a PMC label, I know this code is protected by tos just wondering if anybody know a way that im not famiar with. thx
 

Sree

Member
Does anyone have code for PPS? It works like this for the SPY: When price of that bar (prefer 60min) closes above simple moving average (High, 4) it gives a buy signal arrow. If the next bar exceeds the high of the signal bar by 2 ticks then a buy order is entered. Sell arrow is given when crosses below SMA (High,14). TOS uses a different SMA setting and isn't true to what Person's really uses. He uses different SMA settings for other indexes.

Here is my finding on it when I was using it...if you can get someone to plot arrows, you are set...

Fast average: SMA(HLC3, 4, 0)
Slow average: SMA(Close, 7, 0)

I remember seeing a Mobius version of the PPS code as well some where in this site.

Good luck
 

I_make_no_cents

New member
As others have tried, I am trying to find something close to whatever formula weights the crossing SMA's to give the buy / sell signals with the PPS. If anyone has any input besides the composition of the averages, please do share. And for anyone that wants the PPS as a color coded column for a watchlist or in a scan, please see the code below. It really helps for confirmation on entry / exit. I've had it for a few years and most of the credit goes out to Pete Han and probably some other sources...I just remember finding some code, tweaking it and asking for some help. Its just to use as a column code, so you can adjust the timeframes in the "create custom code" window and save it as such. I don't think it is able to be adjusted to give exact prices at the time of the signal execution, just the close of the particular candle. If that is possible it would be a great addition. Enjoy.

Code:
#################################################
def buy = !IsNaN(PPS().”buySignal”);
def sell = !IsNaN(PPS().”SellSignal”);
rec closeAtBuy = if buy then close else closeAtBuy[1];
rec closeAtSell = if sell then close else closeAtSell[1];
rec state = if buy then 1 else if sell then -1 else state[1];
plot data = if state == 1 then closeAtBuy else closeAtSell;
data.AssignValueColor(if state == 1 then Color.BLACK else if state == -1 then Color.WHITE else Color.BLACK);
AssignBackGroundColor(if state == 1 then Color.GREEN else if state == -1 then Color.RED else Color.CURRENT);
##################################################



If the mods can grab that pic an attach it to this post, I'd appreciate it.
 

Similar threads

Top