SlideShare une entreprise Scribd logo
1  sur  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/

Contenu connexe

Plus 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
 

Plus 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
 

Dernier

原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Cathrine Wilhelmsen
 
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesConf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesTimothy Spann
 
LLMs, LMMs, their Improvement Suggestions and the Path towards AGI
LLMs, LMMs, their Improvement Suggestions and the Path towards AGILLMs, LMMs, their Improvement Suggestions and the Path towards AGI
LLMs, LMMs, their Improvement Suggestions and the Path towards AGIThomas Poetter
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPTBoston Institute of Analytics
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfchwongval
 
Vision, Mission, Goals and Objectives ppt..pptx
Vision, Mission, Goals and Objectives ppt..pptxVision, Mission, Goals and Objectives ppt..pptx
Vision, Mission, Goals and Objectives ppt..pptxellehsormae
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Thomas Poetter
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理e4aez8ss
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.natarajan8993
 
Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Seán Kennedy
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Colleen Farrelly
 
Real-Time AI Streaming - AI Max Princeton
Real-Time AI  Streaming - AI Max PrincetonReal-Time AI  Streaming - AI Max Princeton
Real-Time AI Streaming - AI Max PrincetonTimothy Spann
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxaleedritatuxx
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 

Dernier (20)

原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)
 
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming PipelinesConf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
Conf42-LLM_Adding Generative AI to Real-Time Streaming Pipelines
 
LLMs, LMMs, their Improvement Suggestions and the Path towards AGI
LLMs, LMMs, their Improvement Suggestions and the Path towards AGILLMs, LMMs, their Improvement Suggestions and the Path towards AGI
LLMs, LMMs, their Improvement Suggestions and the Path towards AGI
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdf
 
Vision, Mission, Goals and Objectives ppt..pptx
Vision, Mission, Goals and Objectives ppt..pptxVision, Mission, Goals and Objectives ppt..pptx
Vision, Mission, Goals and Objectives ppt..pptx
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.
 
Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024
 
Real-Time AI Streaming - AI Max Princeton
Real-Time AI  Streaming - AI Max PrincetonReal-Time AI  Streaming - AI Max Princeton
Real-Time AI Streaming - AI Max Princeton
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 

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/