StockFetcher Forums · General Discussion · Work around for monthly pivot lines<< 1 2 >>Post Follow-up
mahkoh
890 posts
msg #112839
Ignore mahkoh
4/18/2013 6:15:10 PM

Hmm, apparently this does not return correct results:

Fetcher[
set{mh,date(monthend,high 20 day high)}
set{ml,date(monthend,low 20 day low)}
set{cl,date(monthend,close)}

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}

draw price line at mr2
draw price line at ms1
draw price line at ms2
draw price line at mr1
draw price line at mpp

close 1 day ago above ms1
close below ms1
]



but this does

Fetcher[
set{mh,date(monthend,high 20 day high)}
set{ml,date(monthend,low 20 day low)}
set{cl,date(monthend,close)}

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}

draw price line at mr2
draw price line at ms1
draw price line at ms2
draw price line at mr1
draw price line at mpp

set{x,close/ms1}
x 1 day ago above 1
x below 1
]



Not sure why that is.

15minoffame
112 posts
msg #112849
Ignore 15minoffame
4/18/2013 11:54:35 PM

Hi Mahkoh,
I think I finally found what I'm looking for. Thanks again for all your help!

Tuan

StockFetcher Forums · General Discussion · Work around for monthly 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 2016 - 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