StockFetcher Forums · General Discussion · Erroneous Syntax Errors<< >>Post Follow-up
Tom_In_KC
2 posts
msg #121009
Ignore Tom_In_KC
modified
7/12/2014 11:26:50 AM

Having problems today with what is seemingly erroneous errors when checking syntax. I haven't found a pattern yet. I'm running Ubuntu 13.04. The errors occur in Chrome and Firefox. I've tried clearing cache, etc. Maybe something obvious below.

Fetcher[

market is etf /* getting error here */

set{dir, close 1 day ago - close 10 days ago}
set{vol1, abs(close - close 1 day ago)}
set{vol2, abs(close 1 day ago - close 2 day ago)}
set{vol3, abs(close 2 day ago - close 3 day ago)}
set{vol4, abs(close 3 day ago - close 4 day ago)}
set{vol5, abs(close 4 day ago - close 5 day ago)}
set{vol6, abs(close 5 day ago - close 6 day ago)}
set{vol7, abs(close 6 day ago - close 7 day ago)}
set{vol8, abs(close 7 day ago - close 8 day ago)}
set{vol9, abs(close 8 day ago - close 9 day ago)}
set{vol10, abs(close 9 day ago - close 10 day ago)}
set{vol, vol1 + vol2 + vol3 + vol4 + vol5 + vol6 + vol7 + vol8 + vol9 + vol10}

set{eff, dir / vol} /* getting error here */

add column eff /* getting error here */

]



four
4,012 posts
msg #121010
Ignore four
modified
7/12/2014 12:40:34 PM

set{vol, vol1 + vol2 + vol3 + vol4 + vol5 + vol6 + vol7 + vol8 + vol9 + vol10}

- -

I believe only 2 variables may be worked with at any one SET.
From USER GUIDE: page 137


You shouldn't get errors with this partial 'VOL'. You will need to string together your additions (I did the first two.).

Fetcher[


market is etf /* getting error here */

set{dir, close 1 day ago - close 10 days ago}
set{vol1, abs(close - close 1 day ago)}
set{vol2, abs(close 1 day ago - close 2 day ago)}
set{vol3, abs(close 2 day ago - close 3 day ago)}
set{vol4, abs(close 3 day ago - close 4 day ago)}
set{vol5, abs(close 4 day ago - close 5 day ago)}
set{vol6, abs(close 5 day ago - close 6 day ago)}
set{vol7, abs(close 6 day ago - close 7 day ago)}
set{vol8, abs(close 7 day ago - close 8 day ago)}
set{vol9, abs(close 8 day ago - close 9 day ago)}
set{vol10, abs(close 9 day ago - close 10 day ago)}

set{vola, vol1+vol2}
set{volb, vola+vol3}


set{eff, dir / volb} /* getting error here */

add column eff /* getting error here */


]



Tom_In_KC
2 posts
msg #121012
Ignore Tom_In_KC
7/12/2014 2:56:38 PM

Thank you. This works. Did I mention I'm new here? Tom

four
4,012 posts
msg #121013
Ignore four
7/12/2014 3:16:04 PM

Welcome, Tom

Hope to see what you post in the future...

StockFetcher Forums · General Discussion · Erroneous Syntax Errors<< >>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