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.Hi,
Is there anyone out there using these Person indicators in ToS? If yes, do you find them useful?
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;
###### 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);
##########################################
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.
#################################################
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);
##################################################
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
S | Multi-Timeframe Person's Pivot Study (PPS) for ThinkorSwim | Questions | 2 | |
R | First person shooter game trading concept? | Questions | 2 | |
H | Help with extending Pivots to the right indefinitely | Questions | 0 | |
S | Convert Expanded Floor Pivots to thinkscript? | Questions | 4 | |
M | Laguerre Pivots Indicator for ThinkorSwim | Indicators | 11 |