StockFetcher Forums · General Discussion · Need help with filter<< >>Post Follow-up
einok
msg #97391
Ignore einok
11/8/2010 2:37:04 PM

I have the following code:

I want to take the open, high, low and close from 2 days ago and average them


set { myclose, open 2 days ago + high 2 days ago + low 2 days ago + close 2 days ago /4 }

then yesterdays high must be below 'myclose'

high 1 day ago close below myclose


Not returning what I expected. Anybody able to help?

Thanks

machismo
115 posts
msg #97392
Ignore machismo
11/8/2010 3:05:07 PM

as far as I know you can only add 2 items at a time. so the following should work when broken down.

set { x1, open 2 days ago + high 2 days ago}
set { x2, low 2 days ago + close 2 days ago }
set { x3, x1 + x2 }
set { myclose, x3/4 }

einok
msg #97394
Ignore einok
11/8/2010 4:05:34 PM

machismo,

Thanks, that helped. I've been going through the manual and must have missed that only 2 items could be used at a time.

StockFetcher Forums · General Discussion · Need help with filter<< >>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.