StockFetcher Forums · General Discussion · draw pivot lines<< 1 2 >>Post Follow-up
mystiq
650 posts
msg #98457
Ignore mystiq
1/6/2011 2:07:54 AM

mahkoh
msg #97975
- Ignore mahkoh
modified 12/12/2010 1:14:20 PM

I've enhanced the monthly filter a bit so that all I need to do is change the date offset and the number of trading days to look back each first of the month. The date offset affects the whole filter, therefore I use it as my global filter instead of embedding it in my regular filters.
However, if I run the filter by itself and click "debug" it shows a number of syntax errors. I cannot figure out what is wrong, does anyone have an idea?


*good idea for monthly data* will work on a mothly DOJI

duke56468
683 posts
msg #98462
Ignore duke56468
1/6/2011 12:37:22 PM

mahkoh .....How are you using this filter? Thx

mahkoh
1,065 posts
msg #98467
Ignore mahkoh
1/6/2011 2:19:50 PM

duke56468
msg #98462
- Ignore duke56468 1/6/2011 12:37:22 PM

mahkoh .....How are you using this filter? Thx


Duke, it is not really a filter. I paste it into the global filter under "settings". Now if I use one of my filters with the global filter the pivot values appear as columns above the chart and I can see whether the stock is trading near pivot support or resistance. Suppose a filter comes up with some stocks that may bounce, I would pick those that are close to pivot support. When filtering for stocks to short I prefer the ones that are trading near pivot resistance.

I found that the date offset does not really work, so I use the filter below and every day add one to the days ago. Manually offseting the date has also made it possible to add the weekly pivots, otherwise those would be affected by the "static" date offset.

Fetcher[
set{mh,high 22 day high 4 days ago}
set{ml,low 22 day low 4 days ago}
set{cl,close 4 days ago}


set{mp1,cl + mh}
set{mp,mp1 + ml}
set{mpp,mp/3}

set{mr1x,mpp*2}
set{mr1,mr1x - ml}
set{ms1,mr1x - mh}

set{mrange,mh - ml}
set{mr2,mpp + mrange}
set{ms2,mpp - mrange}

set{m2r,mrange*2}
set{mr3,mpp + m2r}
set{ms3,mpp - m2r}

set{wp, weekly high 1 week ago + weekly low 1 week ago}
set{wp1,weekly close 1 week ago + wp}
set{wpp, wp1/3}

set{wr1x,wpp*2}
set {wr1,wr1x-weekly low 1 week ago}
set {ws1,wr1x-weekly high 1 week ago}

set{range,weekly high 1 week ago - weekly low 1 week ago}
set {wr2,wpp + range}
set {ws2,wpp - range}

set {2r,range*2}
set {wr3,wpp + 2r}
set{ws3,wpp - 2r}

and add column ws3
and add column ws2
and add column ws1
and add column wpp
and add column wr1
and add column wr2
and add column wr3

and add column ms3
and add column ms2
and add column ms1
and add column mpp
and add column mr1
and add column mr2
and add column mr3
]



During the weekends I use the filter below which shows next week's weekly pivots.

Fetcher[
set{mh,high 22 day high 0 days ago}
set{ml,low 22 day low 0 days ago}
set{cl,close 0 days ago}


set{mp1,cl + mh}
set{mp,mp1 + ml}
set{mpp,mp/3}

set{mr1x,mpp*2}
set{mr1,mr1x - ml}
set{ms1,mr1x - mh}

set{mrange,mh - ml}
set{mr2,mpp + mrange}
set{ms2,mpp - mrange}

set{m2r,mrange*2}
set{mr3,mpp + m2r}
set{ms3,mpp - m2r}

set{wp, weekly high + weekly low}
set{wp1,weekly close + wp}
set{wpp, wp1/3}

set{wr1x,wpp*2}
set {wr1,wr1x-weekly low}
set {ws1,wr1x-weekly high}

set{range,weekly high - weekly low}
set {wr2,wpp + range}
set {ws2,wpp - range}

set {2r,range*2}
set {wr3,wpp + 2r}
set{ws3,wpp - 2r}

and add column ws3
and add column ws2
and add column ws1
and add column wpp
and add column wr1
and add column wr2
and add column wr3

and add column ms3
and add column ms2
and add column ms1
and add column mpp
and add column mr1
and add column mr2
and add column mr3
]



I would have liked to draw the values as horizontal lines but don't think that is possible. It would likely blur the chart anyway.
It does use up a lot of the columns that are at your disposal.








StockFetcher Forums · General Discussion · draw pivot lines<< 1 2 >>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.