StockFetcher Forums · Filter Exchange · Weekly PP on daily charts<< >>Post Follow-up
macer
22 posts
msg #61708
Ignore macer
4/22/2008 6:51:19 PM

Currently I don't think you can draw weekly pivot points on daily charts. I have made an attempt at a work around in the filter below but it doesn't seem to work.

Can someone tell me why the weekly PP, S1 and R1 are not plotted on the chart correctly?

Is there another way to perform my task?

Fetcher[
set{Check2, weekly close minus weekly open}

set{monCheck, close minus open}
set{monTest, count(monCheck equals Check2, 1)}
set{monClose, monTest * close 1 day ago}
set{monHigh, monTest * high 1 day ago}
set{monLow, monTest * low 1 day ago}

set{tuesCheck, close minus open 1 days ago}
set{tuesTest, count(tuesCheck equals Check2, 1)}
set{tuesClose, tuesTest * close 2 day ago}
set{tuesHigh, tuesTest * high 2 day ago}
set{tuesLow, tuesTest * low 2 day ago}

set{wedCheck, close minus open 2 days ago}
set{wedTest, count(wedCheck equals Check2, 1)}
set{wedClose, wedTest * close 3 day ago}
set{wedHigh, wedTest * high 3 day ago}
set{wedLow, wedTest * low 3 day ago}

set{thursCheck, close minus open 3 days ago}
set{thursTest, count(thursCheck equals Check2, 1)}
set{thursClose, thursTest * close 4 day ago}
set{thursHigh, thursTest * high 4 day ago}
set{thursLow, thursTest * low 4 day ago}

set{friCheck, close minus open 4 days ago}
set{friTest, count(friCheck equals Check2, 1)}
set{friClose, friTest * close 5 day ago}
set{friHigh, friTest * high 5 day ago}
set{friLow, friTest * low 5 day ago}

set{myWeekClose1, friClose + thursClose}
set{myWeekClose2, wedClose + tuesClose}
set{myWeekClose3, myWeekClose1 + myWeekClose2}
set{myWeekClose, myWeekClose3 + monClose}

set{myWeekHigh1, friHigh + thursHigh}
set{myWeekHigh2, wedHigh + tuesHigh}
set{myWeekHigh3, myWeekHigh1 + myWeekHigh2}
set{myWeekHigh, myWeekHigh3 + monHigh}

set{myWeekLow1, friLow + thursLow}
set{myWeekLow2, wedLow + tuesLow}
set{myWeekLow3, myWeekLow1 + myWeekLow2}
set{myWeekLow, myWeekLow3 + monLow}

set{myRangeHL, myWeekHigh + myWeekLow}
set{myRange, myRangeHL + myWeekClose}
set{myPP, myRange/3}
set{2myPP, myPP*2}
set{myS1, 2myPP - myWeekHigh}
set{myR1, 2myPP - myWeekLow}

draw myS1 on plot close
draw myPP on plot close
draw myR1 on plot close

add column myS1
add column myPP
add column myR1
]



chetron
2,817 posts
msg #61709
Ignore chetron
modified
4/22/2008 7:58:47 PM

WHY NOT JUST...

BECAUSE YOU HAVE TO REMEMBER TO OFFSET THEM...

RIGHT?????????

Fetcher[


SET{MYR2,WEEKLY R2 1 WEEK AGO}
SET{MYR1,WEEKLY R1 1 WEEK AGO}
SET{MYPP,WEEKLY PP 1 WEEK AGO}
SET{MYS1,WEEKLY S1 1 WEEK AGO}
SET{MYS2,WEEKLY S2 1 WEEK AGO}

DRAW PRICE LINE AT MYR2
DRAW PRICE LINE AT MYR1
DRAW PRICE LINE AT MYPP
DRAW PRICE LINE AT MYS1
DRAW PRICE LINE AT MYS2

ADD COLUMN MYR2
ADD COLUMN MYR1
ADD COLUMN MYPP
ADD COLUMN MYS1
ADD COLUMN MYS2

]



nikoschopen
2,824 posts
msg #61711
Ignore nikoschopen
4/22/2008 8:50:14 PM

Ya don't even need to embed them pivots in the set statement. Why not just the bare naked old-fashioned way?

Fetcher[
draw WEEKLY R2
draw WEEKLY R1
draw WEEKLY PP
draw WEEKLY S1
draw WEEKLY S2
]




macer
22 posts
msg #61718
Ignore macer
4/23/2008 6:47:43 AM

nikoschopen:
Should weekly PP not be constant over the whole week ie. use last weeks high, low and close not just high, low and close from 5 days ago. I think the latter is what is drawn with 'draw weekly PP'.


chetron:
Instead of 'draw price line at mypp' try 'draw mypp on plot close' and view a chart. I don't know what going on but I don't think it's right.


In my first post I was trying to find a way to plot a weekly S1, R1 and PP on daily charts like this



although these are monthly PPs.


nikoschopen
2,824 posts
msg #61730
Ignore nikoschopen
4/23/2008 12:28:26 PM

nikoschopen:
Should weekly PP not be constant over the whole week


It's my understanding that SF defines the "weekly" modifier as a 5-day rolling period instead of one calendar week. If that is correct, than ure merely looking at the previous 5 days.

macer
22 posts
msg #61853
Ignore macer
4/26/2008 2:30:57 PM

Thanks for your responses/help. It looks like what I'm trying to do isn't possible - oh well

chetron
2,817 posts
msg #61856
Ignore chetron
modified
4/26/2008 5:58:36 PM

THIS AIN'T PRETTY, BUT ALL THE INFO IS THERE.

Fetcher[

/* TACHIKAWA */

SET{VR21,WEEKLY R2 1 WEEK AGO}
SET{VR11,WEEKLY R1 1 WEEK AGO}
SET{VPP1,WEEKLY PP 1 WEEK AGO}
SET{VS11,WEEKLY S1 1 WEEK AGO}
SET{VS21,WEEKLY S2 1 WEEK AGO}

SET{VR22,WEEKLY R2 2 WEEK AGO}
SET{VR12,WEEKLY R1 2 WEEK AGO}
SET{VPP2,WEEKLY PP 2 WEEK AGO}
SET{VS12,WEEKLY S1 2 WEEK AGO}
SET{VS22,WEEKLY S2 2 WEEK AGO}

SET{VR23,WEEKLY R2 3 WEEK AGO}
SET{VR13,WEEKLY R1 3 WEEK AGO}
SET{VPP3,WEEKLY PP 3 WEEK AGO}
SET{VS13,WEEKLY S1 3 WEEK AGO}
SET{VS23,WEEKLY S2 3 WEEK AGO}

DRAW PRICE LINE AT VR21
DRAW PRICE LINE AT VR11
DRAW PRICE LINE AT VPP1
DRAW PRICE LINE AT VS11
DRAW PRICE LINE AT VS12

DRAW PRICE LINE AT VR22
DRAW PRICE LINE AT VR12
DRAW PRICE LINE AT VPP2
DRAW PRICE LINE AT VS12
DRAW PRICE LINE AT VS12

DRAW PRICE LINE AT VR23
DRAW PRICE LINE AT VR13
DRAW PRICE LINE AT VPP3
DRAW PRICE LINE AT VS13
DRAW PRICE LINE AT VS13

ADD COLUMN SEPARATOR
ADD COLUMN VR21
ADD COLUMN VR11
ADD COLUMN VPP1
ADD COLUMN VS11
ADD COLUMN VS21
ADD COLUMN SEPARATOR
ADD COLUMN VR22
ADD COLUMN VR12
ADD COLUMN VPP2
ADD COLUMN VS12
ADD COLUMN VS22
ADD COLUMN SEPARATOR
ADD COLUMN VR23
ADD COLUMN VR13
ADD COLUMN VPP3
ADD COLUMN VS13
ADD COLUMN VS23
ADD COLUMN SEPARATOR

CHART DISPLAY WEEKLY

]



StockFetcher Forums · Filter Exchange · Weekly PP on daily charts<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.