TradingView
ChrisMoody
17 de Jun de 2014 17:39

CM_Pivot Points_Custom 

S&P 500 index of US listed sharesFXCM

Descrição

Custom Pivots Indicator - Plots Yearly, Quarterly, Monthly, Weekly, and Daily Levels.

I created this indicator because when you have multiple Pivots on one chart (For Example The Monthly, Weekly, And Daily Pivots), the only way to know exactly what pivot level your looking at is to color ALL S1 Pivots the same color, but create the plot types to look different. For example S1 = Bright Green with Daily being small circles, weekly being bigger circles, and monthly being even bigger crosses for example. This allows you to visually know exactly what pivot levels your looking at…Instantly without thinking. This indicator allows you to Choose any clor you want for any Pivot Level, and Choose The Plot Type.
Comentários
ravindraverma1988
Namaste Sir, Sir this is Ravindra Verma. Sir kindly provide the Pine Script Code for the following Indicator.

in.tradingview.com/script/d56Dtx3i-pivots-high-low-line/

I will be greatfull to you for the kind help.

Thanks & Regards,
Ravindra Verma
NarendranR
Hi Chris Moody ! Excellent piece of work and Hats Off to you.... Would please help me for the correct script for Pivot studies / calculation for -- Monthly, Quarterly, Half Yearly & Annual (R1,R2,R3 & P & S1,S2,S3). Eagerly looking for your reply.
C-Stax
how can we modify this so that past pivot points disappear? I'm only concerned with the previous and current set,
rodnaaaaay
Hi Chris,

you dont happen to know how i could get the daily pivots to span the entire session only, with a text label - much like the Pivot Point standard indicator in TV's public library ?

Much appreciated
mca12345
Great work Chris, there is a way to see only the last set of pivots? For ex Quarterly, only last quarter. thanks
dmirk90
Nice Scipt! I use to use this when it worked during Replay mode for Back-testing. Any idea why it recently stopped? It now just continues to draw the last line and doesn't stop to create the next Pivot..... :(
aliasnoa
Hey sorry i'm relatively new, but I was wondering how can I get a pivot value and modify it? Lets say I want to get the last 3 pivot values and find the average, or find the highest or something like that, is that possible to do in pine script? I know they don't have arrays but even if I could just store the last 3 in variables: pivot1, pivot2, pivot3 being the last 3...anyone know how to do this? Thank you in advance!
tmyerskerry
@aliasnoa,

You can reference the previous pivots as follows...

//@version=3
study("Average Pivot", overlay=true)
pivot = (high + low + close ) / 3.0
week1_pivot = security(tickerid, 'W', pivot[1])
week2_pivot = security(tickerid, 'W', pivot[2])
week3_pivot = security(tickerid, 'W', pivot[3])
avg = (week1_pivot + week2_pivot + week3_pivot) / 3
plot(avg, color=#FF0099)
tmyerskerry
@tmyerskerry,

2nd attempt...


//@version=3
study("Average Pivot", overlay=true)
pivot = (high + low + close ) / 3.0
week1_pivot = security(tickerid, 'W', pivot[1])
week2_pivot = security(tickerid, 'W', pivot[2])
week3_pivot = security(tickerid, 'W', pivot[3])
avg = (week1_pivot + week2_pivot + week3_pivot) / 3
plot(avg, color=#FF0099)
Mais