y2 - year(time2) m2 - month(time2) d2 = dayofmonth(time2) diff - abs (timestamp("GMT", y1, m1, d1, e, e) - timestamp("GMT", y2, m2, d2, 0, e)) diff / MILLIS_IN_DAY tradingDay = is0vernight() ? tradingDayStart(dwmBarTime + MILLIS_IN_DAY): tradingDayStart(dw

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Are you fast type writer .. I need the program to be typed by you as shwon in the snapshots 

I want to be typed exact without leaving a small fullstop

Snapshot 1 and snapshot 2 The image are clear and can be more clear Skip but don't reject 

y2 - year(time2)
m2 - month(time2)
d2 - dayofmonth(time2)
diff = abs(timestamp("GMT", y1, m1, d1, e, 8) - timestamp("GMT", y2, m2, d2, 0, 0))
diff / MILLIS_IN_DAY
tradingDay is0vernight() ? tradingDayStart(dwmBarTime + MILLIS_IN_DAY) : tradingDayStart(dw
mBarTime)
isNewPeriod () =>
isNew - false
if tradingDay !- nz(tradingDay[1])
if anchor == "Session"
isNew :- na(tradingDay[1]) or tradingDay > tradingDay[1]
if anchor == "Week"
DAYS_IN_WEEK = 7
isNew :- makeMondayZero(dayofweek(periodStart)) + numDaysBetween(periodStart, tra
dingDay) >- DAYS_IN_WEEK
if anchor -- "Month"
isNew := month(periodStart) != month(tradingDay) or year(periodStart) != year(tra
dingDay)
if anchor -- "Year"
isNew :- year(periodStart) != year(tradingDay)
isNew
Transcribed Image Text:y2 - year(time2) m2 - month(time2) d2 - dayofmonth(time2) diff = abs(timestamp("GMT", y1, m1, d1, e, 8) - timestamp("GMT", y2, m2, d2, 0, 0)) diff / MILLIS_IN_DAY tradingDay is0vernight() ? tradingDayStart(dwmBarTime + MILLIS_IN_DAY) : tradingDayStart(dw mBarTime) isNewPeriod () => isNew - false if tradingDay !- nz(tradingDay[1]) if anchor == "Session" isNew :- na(tradingDay[1]) or tradingDay > tradingDay[1] if anchor == "Week" DAYS_IN_WEEK = 7 isNew :- makeMondayZero(dayofweek(periodStart)) + numDaysBetween(periodStart, tra dingDay) >- DAYS_IN_WEEK if anchor -- "Month" isNew := month(periodStart) != month(tradingDay) or year(periodStart) != year(tra dingDay) if anchor -- "Year" isNew :- year(periodStart) != year(tradingDay) isNew
isNew
src - hlc3
sumSrc - float(na)
sumvol - float(na)
sumSrc :- nz(sumSrc[1], 8)
sumvol :- nz(sumVol[1], 0)
if isNewPeriod ()
periodStart :- tradingDay
sumSrc := 0.e
sumvol := 0.e
if not na(src) and not na(volume)
sumSrc :- sumSrc + src * volume
sumVol :- sumVol + volume
wwapValue - sumSrc / sumVol
plot (vwapValue, title-"VWAP", color-color.red, linewidth-3)
//EOS
Transcribed Image Text:isNew src - hlc3 sumSrc - float(na) sumvol - float(na) sumSrc :- nz(sumSrc[1], 8) sumvol :- nz(sumVol[1], 0) if isNewPeriod () periodStart :- tradingDay sumSrc := 0.e sumvol := 0.e if not na(src) and not na(volume) sumSrc :- sumSrc + src * volume sumVol :- sumVol + volume wwapValue - sumSrc / sumVol plot (vwapValue, title-"VWAP", color-color.red, linewidth-3) //EOS
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY