StockFetcher Forums · General Discussion · Stockfetcher scripting (coding)<< 1 2 >>Post Follow-up
glgene
613 posts
msg #37252
Ignore glgene
8/2/2005 9:21:20 AM

Thanks for the clarification. I had assumed that "var" stood for variable, and I assumed that SF scripting required variables in Set commands. Just goes to show one shouldn't assume anything! Thanks, again.


glgene
613 posts
msg #37254
Ignore glgene
8/2/2005 10:06:17 AM

Here is my work-in-progress. I went back to the default sort (Vol), and added "add column var3 1 day ago". This enables me to see big volume stocks that had an acceptable var3 1 day ago but sunk to less than 50 today. I look for the big spreads, such as these findings:

*** Today *** 1 day ago
SBL 37.30 ------ 57.73
TXI 40.06 ------ 69.16
DSCO 46.08 --- 67.78

I'll keep adding to the scripting, in an attempt to improve it.

Fetcher [
/* RSI(14) and ULT(7,14,28) <50 */
stock closed above 5
set{XXX, rsi(14) +ultimate oscillator(7,14,28)}
set{var3,XXX / 2}
var3 crossed below 50
add column var3
add column var3 1 day ago
]


TheRumpledOne
6,407 posts
msg #37259
Ignore TheRumpledOne
8/2/2005 3:45:50 PM

One suggestion is to have all of your SET STATEMENTS AT THE TOP and your SELECTION STATEMENTS at/near the bottom:


Fetcher[
/* RSI(14) and ULT(7,14,28) <50 */

set{XXX, rsi(14) +ultimate oscillator(7,14,28)}
set{var3, XXX / 2}

add column var3
add column var3 1 day ago

stock closed above 5
var3 crossed below 50

]



I don't know why, but it seems to work better that way.

MAY ALL YOUR FILLS BE COMPLETE.


glgene
613 posts
msg #37262
Ignore glgene
8/2/2005 4:09:11 PM

What scripting do I need to show in the 1-line outputs the following:

Today 1 Day Ago
var3....var3

Right now it just shows var3 var3


TheRumpledOne
6,407 posts
msg #37290
Ignore TheRumpledOne
8/3/2005 3:35:01 PM


/* RSI(14) and ULT(7,14,28) <50 */

set{XXX, rsi(14) +ultimate oscillator(7,14,28)}
set{var3, XXX / 2}

add column var3 {today}
add column var3 1 day ago {1 day ago}

stock closed above 5
var3 crossed below 50

Notice what I did to the column statements.

The reason I didn't make this filter example clickable is because the column headings mess up the filter for some reason.

MAY ALL YOUR FILLS BE COMPLETE.


TheRumpledOne
6,407 posts
msg #37291
Ignore TheRumpledOne
8/3/2005 3:38:35 PM

GLGENE:

One thing about programming is learning how to use other people's code!

Don't reinvent the wheel if you don't have to.

I use tradestation and I didn't know the language in the beginning but now I am pretty good at parts of it because I have used other people's code and learned from it.

Almost everyday, I code a SLOT MACHINE indicator based on someone else's code.

Learned some neat stuff that way.

HTH


StockFetcher Forums · General Discussion · Stockfetcher scripting (coding)<< 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.