StockFetcher Forums · View by Author: (120 messages)  [ Display By: Date / Subject ]<< 1 2 3 4 5 ... 12 >> 
General Discussion · Add Column Day Position
JoeyVinyl
msg #152567
modified
6/8/2020 7:29:17 PM

ETA: I just saw that you have those lines in there so I misunderstood the question. I think you need the same parameters on the column line as you have on the first line for it to show as a column.

I don't use that indicator myself, but I took the code from the indicator explanation page and added a column to it. Check this page for more help: https://stockfetcher.com/forums/Indicators/Day-Position/85

Fetcher[
Close is above Day Position(0.05,1)
add column Day Position(0.05,1) {daypos}
]



Filter Exchange · TTM squeezed fired day ago
JoeyVinyl
msg #152565
6/8/2020 7:21:59 PM

I'm not Xarlor, but based on what I know about how this filter works on TOS (ThinkOrSwim) the bars in the "momo" section show the direction of the momentum. Bars above zero are a bullish signal while bars below zero are a bearish signal. The length of the bar shows how strong the signal is.

Basically, if you see a bar is longer today than yesterday's bar that means the trend is increasing regardless of the direction. If today's bar is the same height, or shorter, than yesterdays bar then the trend might be starting to reverse. I say might be because there are no guarantees with any of this. No indicator will ever be 100% accurate every time.

Filter Exchange · Will this filter make you wealthy?
JoeyVinyl
msg #152564
6/8/2020 7:10:22 PM

@Mansor

I got nothing when I ran the first filter either. Clicked on "find out why" and there were zero results from the "shares outstanding above 100" line on. I made that and the column one below it comments and got 18 results.

Filter Exchange · TTM Squeeze
JoeyVinyl
msg #152563
6/8/2020 7:03:30 PM

Ed.

"c. add a column to each line that has a 'set' variable command to see what the variable value is when the filter is run, you can have at least 20 columns."

That's excellent advice. I do that a lot. I find it very helpful to keep track of what I'm looking for and to make sure the set statement is correct. When I've got a filter where I want it I just delete all those extra columns.

General Discussion · Help for this filter
JoeyVinyl
msg #152558
6/8/2020 12:56:09 PM

Or you could use what SF has provided.

Fetcher[
pattern is Bearish Three Black Crows
]



Filter Exchange · Price Coming Off of a PVI Low
JoeyVinyl
msg #152557
6/8/2020 12:50:51 PM

@snappyfrog

The explanation of what you're trying to do that Cheese shared makes sense. I've been playing around with filters using NVI and PVI but don't have anything I'd trade off of yet. Thanks for sharing your ideas!

Filter Exchange · TTM squeezed fired day ago
JoeyVinyl
msg #152556
6/8/2020 12:46:45 PM

Run Xarlor's filter and look at the bottom of the charts displayed. There's a part there that says "ttm_squeeze" and every time a stock meets all the requirements there will be a little blue bar. All you have to do is look at the charts to see where there was a blue bar yesterday but not today. Then look at the "momo" indicator to see which direction it's going.

I made it easy for you. I added a column at the end called "now" and sorted on that column. If the number in that column is 2 that means it was squeezed yesterday but isn't today. Here's the code:

Fetcher[
market is not ETF
market is not OTCBB
close is between 50 and 300

set{momo,momentum(16)}
add column separator
add column momo
draw momo
plottype{momo,zerobar}

set{Pchange1,momentum(16)/momentum(16) 1 day ago}
set{Pchange,Pchange1 - 1}
add column pchange

draw Bollinger Band(20,2)
draw Keltner Band(20,2)

set{sqz1,count(momo > .01,1)}
set{sqz2,count(momo < 0,1)}
set{sqz3,count(Upper Bollinger Band(20,2) < Upper Keltner Band(20,2),1)}
set{sqz4,count(Lower Bollinger Band(20,2) > Lower Keltner Band(20,2),1)}
set{sqz5,sqz3 * sqz4}
set{sqz6,sqz1 + sqz2}
set{TTM_Squeeze,sqz5 * sqz6}

draw TTM_Squeeze

/* ADDED CODE BY JOEYVINYL */
set {now1, count(TTM_Squeeze 1 day ago > 0,1)}
set {now2, count(TTM_Squeeze < 1,1)}
set {now, now1 + now2}
add column now
sort column 8 descending
]



Filter Exchange · TTM Squeeze
JoeyVinyl
msg #152493
6/5/2020 4:58:22 PM

@xarlor

Awesome! Thank you! I've been using ToS for about two months now but only for day trading. I'm going to have to look at this in there and see if I can use it.

Filter Exchange · Price Coming Off of a PVI Low
JoeyVinyl
msg #152447
6/4/2020 12:31:25 PM

@snappyfrog

I wasn't sure about those conditions so I cut them out, but here is an updated version with them back in. You did have two different Average Volume(30) in there, one for 500,000 and one for 5,000,000. I didn't get any hits with the second one so I left it at the first one, but you can always just add or remove the extra 0 if you want to change it.

I only got one hit when I ran the cleaned up version at 12:30 this afternoon, GILD. I know that SF doesn't work well on intraday info but I do see different hits on my filters when I run them during the day as opposed to when I run them after the market closes.

Anyway, here's the one with two lines added back in:
Fetcher[

set {ema_13, count(close > EMA(13), 1)}
set {obv_up, count(OBV > OBV 1 day ago, 1)}
set {pvi_22, count(PVI > PVI 22 day low, 1)}
set {sum1, ema_13 + obv_up}
set {sum2, sum1 + pvi_22}

market is not otcbb
market is not etf
optionable
price is > 5
/*price is between .1 and 3*/
/*apply to industry(biomedical)*/
Average Volume(30) > 5000000
sum2 > 2.99
PVI < CMA(PVI,22)
+DI(14) > +DI(14) 1 day ago
Slow Stochastics Fast %K(10) > Slow Stochastics Fast %K(10) 1 day ago
Slow Stochastics Fast %K(10) < 70

draw EMA(13)
draw EMA(30)
draw OBV
draw PVI 22 day low on plot PVI
draw Slow Stochastics Fast %K(10) line at 70

add column separator
add column sector
add column industry
add column separator
add column RSI(14)
add column ATR(14)
sort column 10 ascending
]



Filter Exchange · Price Coming Off of a PVI Low
JoeyVinyl
msg #152436
modified
6/4/2020 12:45:10 AM

@snappyfrog

I don't know if this is the kind of help you're asking for, but I cleaned up the filter a bit.

1. When I put in "draw OBV" I got what you had done with the set statements, an OBV indicator with a 10 day EMA, so I removed those since they were just extra and not needed.

2. A lot of indicators will draw themselves when you use them as filter conditions. You didn't need both "and draw ADX(14)" and "and +DI(14) > +DI(14) 1 day ago" so I cleaned out all the draw statements where they weren't needed.

3. Your line, "and draw Slow Stochastics Fast %K(10) < 70" was a little confusing to me. I think SF was reading it as a filter condition so I used it twice, kind of, once as a condition and once to just draw a line at 70.

Other than that I basically just made groups of similar statements, with all the set ones together, all the filter conditions together, all the draw and all the column ones together. I just find it easier to keep track of what I'm doing that way but your mileage may vary. Feel free to move them around to how you prefer them. I got the same results as I did when I clicked on your filter so I don't think I left anything out that was needed.

Fetcher[
set {ema_13, count(close > EMA(13), 1)}
set {obv_up, count(OBV > OBV 1 day ago, 1)}
set {pvi_22, count(PVI > PVI 22 day low, 1)}
set {sum1, ema_13 + obv_up}
set {sum2, sum1 + pvi_22}

market is not otcbb
market is not etf
optionable
price is > 5
Average Volume(30) > 5000000
sum2 > 2.99
PVI < CMA(PVI,22)
+DI(14) > +DI(14) 1 day ago
Slow Stochastics Fast %K(10) > Slow Stochastics Fast %K(10) 1 day ago
Slow Stochastics Fast %K(10) < 70

draw EMA(13)
draw EMA(30)
draw OBV
draw PVI 22 day low on plot PVI
draw Slow Stochastics Fast %K(10) line at 70

add column separator
add column sector
add column industry
add column separator
add column RSI(14)
add column ATR(14)
sort column 10 ascending
]




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

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