StockFetcher Forums · View by Author: (499 messages)  [ Display By: Date / Subject ]<< 1 2 3 4 5 ... 50 >> 
General Discussion · Need help Coding this ..
xarlor
msg #159527
9/1/2022 9:06:19 AM

Adding the other piece of the puzzle to styliten's elegant filter, here is the final result applied to the S&P 500:

Fetcher[
sp500
set{pmHigh, DATE(MONTHEND, high 1 month high)}
set{pmLow, DATE(MONTHEND, low 1 month low)}
set{pmRng, DATE(MONTHEND, high 1 month high) + DATE(MONTHSTART, low 1 month low)}
set{pmMid, pmRng / 2 }

set{trigger1,count(close > pmhigh,7)}
set{trigger2,count(close <= pmmid,1)}
set{trigger,trigger1 * trigger2}
trigger > 0

draw price line at pmHigh
draw price line at pmLow
draw price line at pmMid
]



Filter Exchange · value above or below slope. Help.
xarlor
msg #159448
8/12/2022 5:50:31 PM

Yep, just copy pasta right on top.

Fetcher[
chart-time is 60 days
close > Center Linear Regression Line(60,1.0)

do not draw Center Linear Regression Line(60,1.0)
draw 60 day slope of close


set{mcdfl, MACD Fast Line(12,26,9)}
set{mcdsl, MACD Slow Line(12,26,9)}
set{dmcddiff, mcdsl-mcdfl}
draw dmcddiff
set{avmcd, ABS(dmcddiff)}
add column avmcd
draw avmcd
draw 60 day slope of avmcd
]



Filter Exchange · value above or below slope. Help.
xarlor
msg #159441
8/12/2022 11:25:12 AM

I can give you a solution for the slope of close, but I have not looked into slope of [any other indicator].

I'll bring to your attention that the Center Linear Regression Line for a 60-day period is the same as 60 day slope of close. However, the CLR value is in the stock's price as opposed to the slope's value, which is a ratio. This then makes it easy to determine if the stock is above or below that line.

Fetcher[
chart-time is 60 days
close < Center Linear Regression Line(60,1)

do not draw Center Linear Regression Line(60,1)
draw 60 day slope of close
]



Fetcher[
chart-time is 60 days
close > Center Linear Regression Line(60,1.0)

do not draw Center Linear Regression Line(60,1.0)
draw 60 day slope of close
]



General Discussion · Scripting/Coding the data
xarlor
msg #159407
8/6/2022 9:56:08 AM

SF code is very rudimentary. Far less sophisticated than any of the ones you mentioned. If you wanted to compare it to an existing language, Pine would be the closest. But even Pine has the ability to do loops, functions, and unrestricted variable storage/recall. SF does not have these and limits use of more advanced indicators and ideas.

If you want to learn how to write your own filters in SF:

  • Read the User Guide from start to finish.
  • Study filters written by others through forum searches.
  • When you have a basic grasp, try to write your own and if it doesn't work, post on here with what you're trying to accomplish and the code you have so far.

That will get you to a point where you can start cranking out your own ideas. Sharing helps everyone as others will offer ideas you may not have thought of.

General Discussion · 2 closes above the 21 EMA
xarlor
msg #159399
8/5/2022 12:23:47 PM

You asked for one thing (closes above EMA twice), but your filter is for something different (close crossed above EMA twice). Not sure which you want, but here are both.

Fetcher[
count close above EMA(21),5 > 1
]



Fetcher[
count close crossed above EMA(21),5 > 1
]



General Discussion · how to show highest profit% gained on chart since scan
xarlor
msg #159331
7/24/2022 9:27:00 AM

A bit difficult trying to understand your request. Here is what I think you wanted:

Fetcher[
set{40h,close 40-day high}
close 41 days ago < 40h
set{profit1,40h / close 41 days ago}
set{profit2,profit1 - 1}
set{profit,profit2 * 100}

draw price line at 40h
add column close 41 days ago
add column 40h {40-day highest close}
add column profit
]



General Discussion · 2 different bollinger bandwidth scans and Why?
xarlor
msg #159326
7/23/2022 9:50:54 PM

In your first statement you are simply taking the difference between the upper and lower bands.

Bollinger Width does not do that:

The Bollinger Width returns the width of the upper and lower bollinger band divided by the n-day average price.
https://www.stockfetcher.com/sfforums2/index.php?tid=122

General Discussion · scanning for lower prices why different results
xarlor
msg #159325
7/23/2022 9:46:23 PM

"lower" is not a SF command:
https://www.stockfetcher.com/forums/Filter-Phrases

Filter Exchange · Bottom MA crossover filter help
xarlor
msg #159305
7/14/2022 6:02:10 PM

Fetcher[
close > MA(40)
close 1 day ago < 1
low 1 day ago reached a new 52 week low
]



Filter Exchange · Short team Call
xarlor
msg #159304
7/14/2022 5:49:32 PM

May I ask what your entry strategy is? DTE, delta?
Likewise, what is your exit strategy? Do you have a profit target you go for? Technical exit?

I prefer to trade with the trend to ensure high probability trades. Your hits each day are definitely lessened, but the quality of the trades increases drastically. My go-to trend filter is wma(150).

Fetcher[
Close is below MA(5)
Average volume(50) above 500,0000
RSI(2) below 5
stock market is ETF
optionable

close > wma(150) for last 30 days
]



StockFetcher Forums ·  · << 1 2 3 4 5 ... 50 >>

*** 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.