SlideShare una empresa de Scribd logo
1 de 8
Technical Analysis using R
Software
Calculating Standard Pivot Points - Support
Resistance Levels using quantmod package
Rajesh Prabhakar Kaila
http://facultyofbusinessanalytics.blogspot.in/
Introduction to Pivot Points
 Technical Analysts often refer to Pivots Points that can be defined as a
point at which a major price movement is expected to occur.
 Pivot Points basically define directional price movement or support and
resistance levels.
 Pivot Points are calculated using the prior period's high, low and close
price of the stock, commodity or currency and based on which a future
support and resistance level is identified.
 Pivot Points can be considered as predictive or leading indicators.
 Pivot points are to be calculated on daily basis.
Pivot Points – Time Frames
 Pivot Points for 1, 5, 10 and 15 minute charts use the prior day's
high, low and close.
 Pivot Points for 30 and 60 minute charts use the prior week's high,
low and close. These calculations are based on calendar weeks.
 Pivot Points for daily charts use the prior month's data. Pivot Points
for current month would be based on the high, low and close for
previous month.
 Once Pivot Points are fixed, they do not change and remain same
during the relevant time frame.
Source: http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:pivot_points
Standard Pivot Points Calculation
 Standard Pivot Points also called the five-point system as it involves five
different points. ( Average Point + S1+S2+R1+R2 ).
 Calculation is based on the simple average of previous day's high, low and
close prices combined with two support levels (S1 & S2) and two
resistance levels (R1 & R2) to derive a pivot point. The equations are as
follows:
R2 = P + (H - L) = P + (R1 - S1)
R1 = (P x 2) - L
P = (H + L + C) / 3
S1 = (P x 2) - H
S2 = P - (H - L) = P - (R1 - S1)
 Here, "S" represents the support levels, "R" the resistance levels and "P"
the pivot point. High, low and close prices are represented by the "H," "L"
and "C," respectively.
R Code for Standard Pivot Points
getSymbols('INFY.BO',src='yahoo') # Data downloaded from January 1st 2007
till the current previous day
INFY=INFY.BO['2015-01-01::2015-05-31'] # Choosing Data from January 1st
2015 till May 31st 2015
head(INFY) # First Six Lines of Data
chartSeries(INFY) # Candlestick Chart of Infosys
center <- xts(rowSums(HLC(INFY))/3,order.by=index(INFY)) # Average of High,
Low & Close Price (H+L+C/3)
head(center) # First Six Lines of Data
R1 <- (2*center)-Lo(INFY) # First Resistance (R1) = (2*P) - Low
S1 <- (2*center)-Hi(INFY) # First Support (S1) = (2*P) - High
R2 <- center + (R1 - S1) # Second Resistance (R2) = P + (R1-S1)
S2 <- center - (R1 - S1) # Second Support (S2) = P - (R1- S1)
ret <- cbind(center,R1,R2,S1,S2) # Combining all Calculations in adjacent
columns
R Code for Standard Pivot Points
colnames(ret) <- c('center','R1','R2','S1','S2') # Column Names
dat = cbind(INFY,ret) # Combining both the sheets or files
head(dat) # First Six Lines of Data
write.csv(dat,"Datasupres.csv") # Saving a copy as CSV file
chartSeries(INFY) # Candlestick Chart of Infosys
addTA(dat$S1, on=1, col='lightblue') # Adding Support1 Line to Candlestick
Chart
addTA(dat$S2, on=1, col='blue') # Adding Support2 Line to Candlestick Chart
addTA(dat$R1, on=1, col='pink') # Adding Resistance1 Line to Candlestick
Chart
addTA(dat$R2, on=1, col='red') # Adding Resistance2 Line to Candlestick
Chart
Infosys Candlestick Chart with
Standard Pivot Points
FOR ANALYSIS & INTERPRETATION OF
STANDARD PIVOT POINTS visit my
blog:
http://facultyofbusinessanalytics.blogspot.in/

Más contenido relacionado

Más de Rajesh Prabhakar

Blue Ocean Strategy Amazon Web Services – Leading the Cloud Computing Red Ocean
Blue Ocean Strategy Amazon Web Services – Leading the Cloud Computing Red OceanBlue Ocean Strategy Amazon Web Services – Leading the Cloud Computing Red Ocean
Blue Ocean Strategy Amazon Web Services – Leading the Cloud Computing Red OceanRajesh Prabhakar
 
Blue Ocean Strategy – Air Asia Innovation & Blue Ocean strategy targeted non ...
Blue Ocean Strategy – Air Asia Innovation & Blue Ocean strategy targeted non ...Blue Ocean Strategy – Air Asia Innovation & Blue Ocean strategy targeted non ...
Blue Ocean Strategy – Air Asia Innovation & Blue Ocean strategy targeted non ...Rajesh Prabhakar
 
Blue Ocean Strategy – Starbucks Mobile Payments Application, Loyalty Rewards ...
Blue Ocean Strategy – Starbucks Mobile Payments Application, Loyalty Rewards ...Blue Ocean Strategy – Starbucks Mobile Payments Application, Loyalty Rewards ...
Blue Ocean Strategy – Starbucks Mobile Payments Application, Loyalty Rewards ...Rajesh Prabhakar
 
Blue Ocean Strategy – Uber (Ridesharing Service) - Disruptive Cab Booking Ser...
Blue Ocean Strategy – Uber (Ridesharing Service) - Disruptive Cab Booking Ser...Blue Ocean Strategy – Uber (Ridesharing Service) - Disruptive Cab Booking Ser...
Blue Ocean Strategy – Uber (Ridesharing Service) - Disruptive Cab Booking Ser...Rajesh Prabhakar
 
Case Study - Walmart Social Media Strategy – Engaging with customers on Twitter
Case Study - Walmart Social Media Strategy – Engaging with customers on TwitterCase Study - Walmart Social Media Strategy – Engaging with customers on Twitter
Case Study - Walmart Social Media Strategy – Engaging with customers on TwitterRajesh Prabhakar
 
Case Study: Social Media Strategy Walmart – Informing Customers and enhancing...
Case Study: Social Media Strategy Walmart – Informing Customers and enhancing...Case Study: Social Media Strategy Walmart – Informing Customers and enhancing...
Case Study: Social Media Strategy Walmart – Informing Customers and enhancing...Rajesh Prabhakar
 
Procurement & Supply Chain Management Software Market 2013- Strategic Importance
Procurement & Supply Chain Management Software Market 2013- Strategic ImportanceProcurement & Supply Chain Management Software Market 2013- Strategic Importance
Procurement & Supply Chain Management Software Market 2013- Strategic ImportanceRajesh Prabhakar
 
Case Study: Social Media Strategy @ Mercedes Benz – Targeting young Customers...
Case Study: Social Media Strategy @ Mercedes Benz – Targeting young Customers...Case Study: Social Media Strategy @ Mercedes Benz – Targeting young Customers...
Case Study: Social Media Strategy @ Mercedes Benz – Targeting young Customers...Rajesh Prabhakar
 
Social Media @ UBS – Social Media Monitoring outsourced to Accenture to hedge...
Social Media @ UBS – Social Media Monitoring outsourced to Accenture to hedge...Social Media @ UBS – Social Media Monitoring outsourced to Accenture to hedge...
Social Media @ UBS – Social Media Monitoring outsourced to Accenture to hedge...Rajesh Prabhakar
 
Case Study: Social Media Marketing Strategy @ JPMorgan Chase – Customer Servi...
Case Study: Social Media Marketing Strategy @ JPMorgan Chase – Customer Servi...Case Study: Social Media Marketing Strategy @ JPMorgan Chase – Customer Servi...
Case Study: Social Media Marketing Strategy @ JPMorgan Chase – Customer Servi...Rajesh Prabhakar
 
Case Study: Social Media @ Wells Fargo – Listening to Customers through Socia...
Case Study: Social Media @ Wells Fargo – Listening to Customers through Socia...Case Study: Social Media @ Wells Fargo – Listening to Customers through Socia...
Case Study: Social Media @ Wells Fargo – Listening to Customers through Socia...Rajesh Prabhakar
 
Oracle Social Media Sales Strategy – Encouraging Sales team to actively engag...
Oracle Social Media Sales Strategy – Encouraging Sales team to actively engag...Oracle Social Media Sales Strategy – Encouraging Sales team to actively engag...
Oracle Social Media Sales Strategy – Encouraging Sales team to actively engag...Rajesh Prabhakar
 
AT&T Social Media Strategy: AT&T Social Circle employees as Social Advocates
AT&T Social Media Strategy: AT&T Social Circle employees as Social AdvocatesAT&T Social Media Strategy: AT&T Social Circle employees as Social Advocates
AT&T Social Media Strategy: AT&T Social Circle employees as Social AdvocatesRajesh Prabhakar
 
General Electric Social Media Strategy – Innovative Technology oriented Content
General Electric Social Media Strategy – Innovative Technology oriented ContentGeneral Electric Social Media Strategy – Innovative Technology oriented Content
General Electric Social Media Strategy – Innovative Technology oriented ContentRajesh Prabhakar
 
Case Study: Social Media Monitoring @ Toyota analyzes social media data for s...
Case Study: Social Media Monitoring @ Toyota analyzes social media data for s...Case Study: Social Media Monitoring @ Toyota analyzes social media data for s...
Case Study: Social Media Monitoring @ Toyota analyzes social media data for s...Rajesh Prabhakar
 
Case Study: Unilever Social Media Strategy – Internal Digital Social Platform...
Case Study: Unilever Social Media Strategy – Internal Digital Social Platform...Case Study: Unilever Social Media Strategy – Internal Digital Social Platform...
Case Study: Unilever Social Media Strategy – Internal Digital Social Platform...Rajesh Prabhakar
 
Blue Ocean Strategy @ IBM – Customer Experience Lab Social Business & Analyti...
Blue Ocean Strategy @ IBM – Customer Experience Lab Social Business & Analyti...Blue Ocean Strategy @ IBM – Customer Experience Lab Social Business & Analyti...
Blue Ocean Strategy @ IBM – Customer Experience Lab Social Business & Analyti...Rajesh Prabhakar
 
Social Media Strategy Case Study @ Nestlé – Digital Acceleration Team key to ...
Social Media Strategy Case Study @ Nestlé – Digital Acceleration Team key to ...Social Media Strategy Case Study @ Nestlé – Digital Acceleration Team key to ...
Social Media Strategy Case Study @ Nestlé – Digital Acceleration Team key to ...Rajesh Prabhakar
 
Global Technology Market 2014 – IT spending worldwide expected to be better
Global Technology Market 2014 – IT spending worldwide expected to be betterGlobal Technology Market 2014 – IT spending worldwide expected to be better
Global Technology Market 2014 – IT spending worldwide expected to be betterRajesh Prabhakar
 
Social Media Sales Strategy @ IBM Listening for Leads & inside sales teams
Social Media Sales Strategy @ IBM Listening for Leads & inside sales teamsSocial Media Sales Strategy @ IBM Listening for Leads & inside sales teams
Social Media Sales Strategy @ IBM Listening for Leads & inside sales teamsRajesh Prabhakar
 

Más de Rajesh Prabhakar (20)

Blue Ocean Strategy Amazon Web Services – Leading the Cloud Computing Red Ocean
Blue Ocean Strategy Amazon Web Services – Leading the Cloud Computing Red OceanBlue Ocean Strategy Amazon Web Services – Leading the Cloud Computing Red Ocean
Blue Ocean Strategy Amazon Web Services – Leading the Cloud Computing Red Ocean
 
Blue Ocean Strategy – Air Asia Innovation & Blue Ocean strategy targeted non ...
Blue Ocean Strategy – Air Asia Innovation & Blue Ocean strategy targeted non ...Blue Ocean Strategy – Air Asia Innovation & Blue Ocean strategy targeted non ...
Blue Ocean Strategy – Air Asia Innovation & Blue Ocean strategy targeted non ...
 
Blue Ocean Strategy – Starbucks Mobile Payments Application, Loyalty Rewards ...
Blue Ocean Strategy – Starbucks Mobile Payments Application, Loyalty Rewards ...Blue Ocean Strategy – Starbucks Mobile Payments Application, Loyalty Rewards ...
Blue Ocean Strategy – Starbucks Mobile Payments Application, Loyalty Rewards ...
 
Blue Ocean Strategy – Uber (Ridesharing Service) - Disruptive Cab Booking Ser...
Blue Ocean Strategy – Uber (Ridesharing Service) - Disruptive Cab Booking Ser...Blue Ocean Strategy – Uber (Ridesharing Service) - Disruptive Cab Booking Ser...
Blue Ocean Strategy – Uber (Ridesharing Service) - Disruptive Cab Booking Ser...
 
Case Study - Walmart Social Media Strategy – Engaging with customers on Twitter
Case Study - Walmart Social Media Strategy – Engaging with customers on TwitterCase Study - Walmart Social Media Strategy – Engaging with customers on Twitter
Case Study - Walmart Social Media Strategy – Engaging with customers on Twitter
 
Case Study: Social Media Strategy Walmart – Informing Customers and enhancing...
Case Study: Social Media Strategy Walmart – Informing Customers and enhancing...Case Study: Social Media Strategy Walmart – Informing Customers and enhancing...
Case Study: Social Media Strategy Walmart – Informing Customers and enhancing...
 
Procurement & Supply Chain Management Software Market 2013- Strategic Importance
Procurement & Supply Chain Management Software Market 2013- Strategic ImportanceProcurement & Supply Chain Management Software Market 2013- Strategic Importance
Procurement & Supply Chain Management Software Market 2013- Strategic Importance
 
Case Study: Social Media Strategy @ Mercedes Benz – Targeting young Customers...
Case Study: Social Media Strategy @ Mercedes Benz – Targeting young Customers...Case Study: Social Media Strategy @ Mercedes Benz – Targeting young Customers...
Case Study: Social Media Strategy @ Mercedes Benz – Targeting young Customers...
 
Social Media @ UBS – Social Media Monitoring outsourced to Accenture to hedge...
Social Media @ UBS – Social Media Monitoring outsourced to Accenture to hedge...Social Media @ UBS – Social Media Monitoring outsourced to Accenture to hedge...
Social Media @ UBS – Social Media Monitoring outsourced to Accenture to hedge...
 
Case Study: Social Media Marketing Strategy @ JPMorgan Chase – Customer Servi...
Case Study: Social Media Marketing Strategy @ JPMorgan Chase – Customer Servi...Case Study: Social Media Marketing Strategy @ JPMorgan Chase – Customer Servi...
Case Study: Social Media Marketing Strategy @ JPMorgan Chase – Customer Servi...
 
Case Study: Social Media @ Wells Fargo – Listening to Customers through Socia...
Case Study: Social Media @ Wells Fargo – Listening to Customers through Socia...Case Study: Social Media @ Wells Fargo – Listening to Customers through Socia...
Case Study: Social Media @ Wells Fargo – Listening to Customers through Socia...
 
Oracle Social Media Sales Strategy – Encouraging Sales team to actively engag...
Oracle Social Media Sales Strategy – Encouraging Sales team to actively engag...Oracle Social Media Sales Strategy – Encouraging Sales team to actively engag...
Oracle Social Media Sales Strategy – Encouraging Sales team to actively engag...
 
AT&T Social Media Strategy: AT&T Social Circle employees as Social Advocates
AT&T Social Media Strategy: AT&T Social Circle employees as Social AdvocatesAT&T Social Media Strategy: AT&T Social Circle employees as Social Advocates
AT&T Social Media Strategy: AT&T Social Circle employees as Social Advocates
 
General Electric Social Media Strategy – Innovative Technology oriented Content
General Electric Social Media Strategy – Innovative Technology oriented ContentGeneral Electric Social Media Strategy – Innovative Technology oriented Content
General Electric Social Media Strategy – Innovative Technology oriented Content
 
Case Study: Social Media Monitoring @ Toyota analyzes social media data for s...
Case Study: Social Media Monitoring @ Toyota analyzes social media data for s...Case Study: Social Media Monitoring @ Toyota analyzes social media data for s...
Case Study: Social Media Monitoring @ Toyota analyzes social media data for s...
 
Case Study: Unilever Social Media Strategy – Internal Digital Social Platform...
Case Study: Unilever Social Media Strategy – Internal Digital Social Platform...Case Study: Unilever Social Media Strategy – Internal Digital Social Platform...
Case Study: Unilever Social Media Strategy – Internal Digital Social Platform...
 
Blue Ocean Strategy @ IBM – Customer Experience Lab Social Business & Analyti...
Blue Ocean Strategy @ IBM – Customer Experience Lab Social Business & Analyti...Blue Ocean Strategy @ IBM – Customer Experience Lab Social Business & Analyti...
Blue Ocean Strategy @ IBM – Customer Experience Lab Social Business & Analyti...
 
Social Media Strategy Case Study @ Nestlé – Digital Acceleration Team key to ...
Social Media Strategy Case Study @ Nestlé – Digital Acceleration Team key to ...Social Media Strategy Case Study @ Nestlé – Digital Acceleration Team key to ...
Social Media Strategy Case Study @ Nestlé – Digital Acceleration Team key to ...
 
Global Technology Market 2014 – IT spending worldwide expected to be better
Global Technology Market 2014 – IT spending worldwide expected to be betterGlobal Technology Market 2014 – IT spending worldwide expected to be better
Global Technology Market 2014 – IT spending worldwide expected to be better
 
Social Media Sales Strategy @ IBM Listening for Leads & inside sales teams
Social Media Sales Strategy @ IBM Listening for Leads & inside sales teamsSocial Media Sales Strategy @ IBM Listening for Leads & inside sales teams
Social Media Sales Strategy @ IBM Listening for Leads & inside sales teams
 

Último

Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...HyderabadDolls
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Klinik kandungan
 
Statistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbersStatistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numberssuginr1
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...Health
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...HyderabadDolls
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...gajnagarg
 
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...HyderabadDolls
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowgargpaaro
 
Kings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about themKings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about themeitharjee
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...nirzagarg
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...kumargunjan9515
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareGraham Ware
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxchadhar227
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabiaahmedjiabur940
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1ranjankumarbehera14
 

Último (20)

Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
Statistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbersStatistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbers
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
 
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 
Kings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about themKings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about them
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 

Technical Analysis using R Software - Calculating Standard Pivot Points - Support Resistance Levels

  • 1. Technical Analysis using R Software Calculating Standard Pivot Points - Support Resistance Levels using quantmod package Rajesh Prabhakar Kaila http://facultyofbusinessanalytics.blogspot.in/
  • 2. Introduction to Pivot Points  Technical Analysts often refer to Pivots Points that can be defined as a point at which a major price movement is expected to occur.  Pivot Points basically define directional price movement or support and resistance levels.  Pivot Points are calculated using the prior period's high, low and close price of the stock, commodity or currency and based on which a future support and resistance level is identified.  Pivot Points can be considered as predictive or leading indicators.  Pivot points are to be calculated on daily basis.
  • 3. Pivot Points – Time Frames  Pivot Points for 1, 5, 10 and 15 minute charts use the prior day's high, low and close.  Pivot Points for 30 and 60 minute charts use the prior week's high, low and close. These calculations are based on calendar weeks.  Pivot Points for daily charts use the prior month's data. Pivot Points for current month would be based on the high, low and close for previous month.  Once Pivot Points are fixed, they do not change and remain same during the relevant time frame. Source: http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:pivot_points
  • 4. Standard Pivot Points Calculation  Standard Pivot Points also called the five-point system as it involves five different points. ( Average Point + S1+S2+R1+R2 ).  Calculation is based on the simple average of previous day's high, low and close prices combined with two support levels (S1 & S2) and two resistance levels (R1 & R2) to derive a pivot point. The equations are as follows: R2 = P + (H - L) = P + (R1 - S1) R1 = (P x 2) - L P = (H + L + C) / 3 S1 = (P x 2) - H S2 = P - (H - L) = P - (R1 - S1)  Here, "S" represents the support levels, "R" the resistance levels and "P" the pivot point. High, low and close prices are represented by the "H," "L" and "C," respectively.
  • 5. R Code for Standard Pivot Points getSymbols('INFY.BO',src='yahoo') # Data downloaded from January 1st 2007 till the current previous day INFY=INFY.BO['2015-01-01::2015-05-31'] # Choosing Data from January 1st 2015 till May 31st 2015 head(INFY) # First Six Lines of Data chartSeries(INFY) # Candlestick Chart of Infosys center <- xts(rowSums(HLC(INFY))/3,order.by=index(INFY)) # Average of High, Low & Close Price (H+L+C/3) head(center) # First Six Lines of Data R1 <- (2*center)-Lo(INFY) # First Resistance (R1) = (2*P) - Low S1 <- (2*center)-Hi(INFY) # First Support (S1) = (2*P) - High R2 <- center + (R1 - S1) # Second Resistance (R2) = P + (R1-S1) S2 <- center - (R1 - S1) # Second Support (S2) = P - (R1- S1) ret <- cbind(center,R1,R2,S1,S2) # Combining all Calculations in adjacent columns
  • 6. R Code for Standard Pivot Points colnames(ret) <- c('center','R1','R2','S1','S2') # Column Names dat = cbind(INFY,ret) # Combining both the sheets or files head(dat) # First Six Lines of Data write.csv(dat,"Datasupres.csv") # Saving a copy as CSV file chartSeries(INFY) # Candlestick Chart of Infosys addTA(dat$S1, on=1, col='lightblue') # Adding Support1 Line to Candlestick Chart addTA(dat$S2, on=1, col='blue') # Adding Support2 Line to Candlestick Chart addTA(dat$R1, on=1, col='pink') # Adding Resistance1 Line to Candlestick Chart addTA(dat$R2, on=1, col='red') # Adding Resistance2 Line to Candlestick Chart
  • 7. Infosys Candlestick Chart with Standard Pivot Points
  • 8. FOR ANALYSIS & INTERPRETATION OF STANDARD PIVOT POINTS visit my blog: http://facultyofbusinessanalytics.blogspot.in/