StockFetcher Forums · General Discussion · Adjusting parms globally<< 1 2 >>Post Follow-up
miko
68 posts
msg #92371
Ignore miko
5/9/2010 1:14:20 AM

I have various scans based on percentage moves. I would like to be able to adjust the default values via an outside value. For example, I might decide after a 3% down move in the market I want 3% more than my default values. I thought I could create a varaiable (eg PCTAdj) and then use that variable in a set statement (eg Set {AA, .97 - PCTAdj}), but doesn't seem to work (debug reports a syntax error). Any ideas as to what I am doing wrong, an alternative approach, or that it is simply undoable.

four
5,087 posts
msg #92372
Ignore four
modified
5/9/2010 1:24:17 AM

Fetcher[
Set {PCTAdj, .03}

Set{var1, .97 - PCTAdj}

add column var1

/* change .03 to what you need */


]



miko
68 posts
msg #92373
Ignore miko
5/9/2010 1:45:25 AM

I guess I wasn't clear (won't be the first time :). Let's say I have 3 scans, looking for down moves of 3%, 5% and 7%. Rather than changing each scan, I am looking to have a global variable so I can make one change that affects each scan. For instance, if I decide each one needs an additional 1% move, I would want to make a global variable equal to .01 that would be accessible to each of the scans so they would become 4%, 6%, and 8%. Changing 3 scans is no big deal, but what about 10 scans? 20 scans?

four
5,087 posts
msg #92380
Ignore four
modified
5/9/2010 11:24:08 AM

http://forums.stockfetcher.com/stockdb/fetcher?p=varhelp

LOCATION
http://forums.stockfetcher.com/stockdb/fetcher?p=uservars&qrid=help

miko
68 posts
msg #92390
Ignore miko
5/9/2010 9:55:37 PM

Familiar already. Was there something specific helpful?

Maybe somebody else can try what I have tried. Establish a variable (eg A = 1) in the settings and then try to reference it in a set statement in a filter (eg Set{B, A})--I get a syntax error.

four
5,087 posts
msg #92396
Ignore four
modified
5/9/2010 11:18:58 PM

variable name: mine
value: 1



--
filter:

Fetcher[
draw mine
set{close_minus1, close - mine}
draw close_minus1
]




miko
68 posts
msg #92412
Ignore miko
5/10/2010 9:43:07 AM

Yes, that produces results, the universe. But if you look at debug you should see a syntax error, at least I do. It is not working as expected.

four
5,087 posts
msg #92420
Ignore four
5/10/2010 2:56:54 PM

Yes
Errors show in debug

--
I guess an email could be sent to support.

miko
68 posts
msg #92441
Ignore miko
5/10/2010 10:55:07 PM

Thanks, four, for your attention. I have forwarded a link to this thread and a brief description to support.

four
5,087 posts
msg #92483
Ignore four
5/11/2010 6:48:42 PM

bingo

StockFetcher Forums · General Discussion · Adjusting parms globally<< 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.