StockFetcher Forums · General Discussion · Stockfetcher scripting (coding)<< 1 2 >>Post Follow-up
glgene
616 posts
msg #37215
Ignore glgene
7/31/2005 8:11:27 PM

I want to be able to program like TheRumpledOne. I am willing to learn (my only programming experience was 30 years ago in Basic language), but I need to know where/how to write scripts that are Stockfetcher compatible.

The SF manuals I have read cover all the filters, but I don't see the other stuff TheRumpledOne excels in. Where do I find it? I'm sure I'm not the only one who feels this way. Where can WE find the ABCs of SF scripting?

GL Gene


TheRumpledOne
6,411 posts
msg #37219
Ignore TheRumpledOne
7/31/2005 9:11:29 PM

Thanks for the compliment!!


glgene
616 posts
msg #37220
Ignore glgene
7/31/2005 10:35:52 PM

The RumpledOne,

Thank YOU for your quality help here, but where is the answer to the question, "How does one find out about scripting (coding) that is SF compatible?
Answers, answers. I don't have a magic wand, but wish I did. And so do many others. We don't have degrees in computer science, as you probably do. We're (or at least many of us) are just plain folk who enjoy using Stockfetcher to help us make money in the stock market. We just need to know where to find out about SF-compatible scripting. That's all. And when we do find out, we'll be able to offer more to the Forums. Isn't that what it's all about here ... helping each other.

GL Gene



shelupinin
120 posts
msg #37222
Ignore shelupinin
8/1/2005 8:10:25 AM

to glgene: I'm not SF scripting guru, but I guess the most of SF scripting power based on "set" function... I you learned Basic language then you should easy understand basic things in SF scripting. Below example which shows BIG companies, var1=average volume(90), var2=price, var3=var1 multiply var2...
you can use "set" function for any variable which is used in SF, and do any mathematical operation with them...
example:
set{var1,average volume(90)}
set{var2,price}
set{var3,var1*var2}
var3 is above 100000000

Alex


glgene
616 posts
msg #37228
Ignore glgene
8/1/2005 3:19:15 PM

Alex,

Thanks for your sample coding. Ahhh! I've got SET (I guess I'm a slow learner). Now I can begin to make some sense out of TheRumpledOne's scripting. When I get a complete filter built, I'll post it here.

GL Gene


glgene
616 posts
msg #37229
Ignore glgene
8/1/2005 4:23:03 PM

Need help with var3 below (3rd line)

set{var1,rsi(14)}
set{var2,ultimate oscillator(7,14,28)}
set{var3,(var1+var2)/2}
var3 crossed below 50

What I'm after are stocks whose "combined" RSI(14) number and Ultimate Oscillator(7,14,28) number dip below 50 (for a sell). Var3 is supposed to be the summation of the two indicators divided by 2. Thus, if RSI(14) is 55 and Ultimate Oscillator(7,14,28) is 47, the average is 51 (102/2), and thus it would not trigger a sale (still above 50).

GL Gene


TheRumpledOne
6,411 posts
msg #37234
Ignore TheRumpledOne
8/1/2005 10:56:31 PM

set{var1,rsi(14)}
set{var2,ultimate oscillator(7,14,28)}
set{var3,(var1+var2)/2}
var3 crossed below 50

GlGene...

You can only have TWO OPERANDS and ONE OPERATOR in a set statement... set{var3,(var1+var2)/2} has 3 OPERANDS AND TWO OPERATORS.

Fetcher[

set{XXX, rsi(14) +ultimate oscillator(7,14,28)}
set{var3,XXX / 2}
var3 crossed below 50
add column var3
sort column 5 descending
]



WORD OF CAUTION...

DO NOT WASTE SET STATEMENTS OR YOU MAY RUN OUT...

LIKE I DO...LOL

MAY ALL YOUR FILLS BE COMPLETE.


TheRumpledOne
6,411 posts
msg #37244
Ignore TheRumpledOne
8/2/2005 7:48:40 AM

GLGENE... I popped my boolean logic thread to the top.

You can learn SF coding by reading that thread.

HTH


glgene
616 posts
msg #37248
Ignore glgene
8/2/2005 8:45:55 AM

To TheRumpledOne,

Thanks for the lesson; if you would have not told me, I never would have known. I'm trying to learn the SF scripting rules (and I will read your other posting).

One question, though: Why the xxx in your reply? Why not var1? I tried it and it works the same. Please advise me of why you chose xxx.

GL Gene


Koronbock
201 posts
msg #37250
Ignore Koronbock
8/2/2005 8:59:00 AM

Glgene,

Rump is using the XXX just as an example. Instead of XXX you can put anything.




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.