StockFetcher Forums · View by Author: xarlor (114 messages) ·  [ Display By: Date / Subject ]<< 1 ... 3 4 5 6 7 ... 12 >> 
Public Filter List · all time highs
xarlor
msg #149369
10/17/2019 3:06:24 PM

Thanks to nibor, I was able to extend this filter to 15 years. It looks like that is the cap, it breaks if trying to add more.

Fetcher[

close > 1
average volume(30) > 1234567

set{x1,high 3-year high}
set{x2,x1 3 years ago}
set{x3,x2 3 years ago}
set{x4,x3 3 years ago}
set{x5,x4 3 years ago}
set{var1,max(x1,x2)}
set{var2,max(var1,x3)}
set{var3,max(var2,x4)}
set{15YH,max(var3,x5)}

set{z1,close / 15YH}
set{PercentFromHi,1 - z1}

PercentFromHi < 0.05

add column x1
add column x2
add column x3
add column x4
add column x5
add column 15YH

add column close
add column PercentFromHi
sort by column 12 ascending

draw price line at 15YH
do not draw percentfromhi
do not draw x5
]



General Discussion · Time Travel in StockFetcher
xarlor
msg #149368
10/17/2019 3:04:32 PM

Awesome, nibor! I ran some tests and it seems this is limited to 15 years. Past that, it just breaks. Used this filter to test. Once you add x6 (18 years out) it stops working.

Still, 15 years is a whole lot better than 3 years!

Fetcher[

close > 1
average volume(30) > 1234567

set{x1,high 3-year high}
set{x2,x1 3 years ago}
set{x3,x2 3 years ago}
set{x4,x3 3 years ago}
set{x5,x4 3 years ago}
set{var1,max(x1,x2)}
set{var2,max(var1,x3)}
set{var3,max(var2,x4)}
set{15YH,max(var3,x5)}

set{z1,close / 15YH}
set{PercentFromHi,1 - z1}

PercentFromHi < 0.05

add column x1
add column x2
add column x3
add column x4
add column x5
add column 15YH

add column close
add column PercentFromHi
sort by column 12 ascending

draw price line at 15YH
do not draw percentfromhi
do not draw x5
]



Public Filter List · all time highs
xarlor
msg #149349
10/15/2019 2:58:58 PM

For the purposes of highs and lows, SF is limited to the last 3 years. With that in mind, I wrote the filter looking for stocks that are within 5% of their 3-year high.

Fetcher[
close > 1
average volume(30) > 1234567

set{3YRhi,high 3-year high}
set{var1,close / 3YRhi}
set{PercentFromHi,1 - var1}
PercentFromHi < 0.05

add column 3YRhi
add column close
add column PercentFromHi
sort by column 7 ascending

draw price line at 3YRhi
do not draw percentfromhi
]



General Discussion · Beta and Standard Deviation indicators in SF
xarlor
msg #149328
10/13/2019 10:42:03 AM

Fetcher[
SP500
Set{a, ROC(252) / Beta}
Add column a {RAR}
Sort column 5 descending
]



General Discussion · Stan Weinstein's Secrets For Profiting in Bull and Bear Markets
xarlor
msg #149319
10/11/2019 4:40:50 PM

Hah, no way! Florida alumn myself. Go Gators!

General Discussion · Stan Weinstein's Secrets For Profiting in Bull and Bear Markets
xarlor
msg #149310
10/7/2019 2:40:29 PM

@nibor,, here is your next MNF backtest if you're up for it:

https://www.stockfetcher.com/forums/General-Discussion/Fibonacci-screener/149298

General Discussion · Fibonacci screener
xarlor
msg #149309
10/7/2019 2:38:36 PM

@ron22
Rules are pretty mechanical:

Enter at the close.
Initial stop loss set 0.06 below the Fib line it just bounced off of.
Profit target is next Fib line above. Note this is also your next resistance point, so may have to exit and take profits if it looks like it's bouncing off without clearing.
If you're feeling frisky, you can let a winner run beyond that Fib line and try for the next Fib line.

I haven't backtested it. Maybe something for nibor to do during Monday Night Football? :D

@sandjco
I did see the SF Fibonacci filters, but they were too vague/loose for my likes. It's a good starting point, like all the indicators on SF, but I needed something more granular.

Public Filter List · Position Sizing plus Stop-loss and Take-profit Calculator
xarlor
msg #149300
10/6/2019 9:52:38 PM

I like this, very good job! One change I would make is to have straight lines at your Entry, Stop, and Target. See below.

Draw price line at EntryPrice
Draw price line at StopPrice
Draw price line at TargetPrice

Fetcher[

//Input

Apply to Symlist(UE) // Ticker of stock(s) that you want to trade
set{EntryPrice, High 55 day high} // The price of entry. May change to a specific number, or other criteria for your entry signal
set{TradeDirection, 1} // 1 is long, -1 is short
set{StopLossInATR, 2} // How far away the stop loss is, in terms of ATR(250)
set{ProfitTargetInATR, 6} // How far away the profit target is, in terms of ATR(250)
set{AccountSize, 40000} // Total trading captial of the account
set{RiskPercentage, 0.01} // Percentage of Capital to risk
Offset 10/4/2019 // This line is optional

//Output

set{LossMargin, ATR(250) * StopLossInATR} // Change to other criteria if you don't like ATR(250)
set{ProfitMargin, ATR(250) * ProfitTargetInATR} // Change to other criteria if you don't like ATR(250)
set{LossMarginWithDirection, LossMargin * TradeDirection}
set{ProfitMarginWithDirection, ProfitMargin * TradeDirection}
set{StopPrice, EntryPrice - LossMarginWithDirection}
set{TargetPrice, EntryPrice + ProfitMarginWithDirection}
set{DollarAtRisk, AccountSize * RiskPercentage}
set{No_of_Shares_to_Trade, DollarAtRisk / LossMargin}
Draw price line at EntryPrice
Draw price line at StopPrice
Draw price line at TargetPrice
Draw No_of_Shares_to_Trade
Chart-time is 2 Years
Chart-size is huge
]



General Discussion · Fibonacci screener
xarlor
msg #149299
modified
10/6/2019 9:26:39 PM

Not exactly what you asked for, but I made a filter that shows a bounce off a 52-week Fibonacci line.

Fetcher[
average volume(30) > 1234567
chart-time is 1 year
/* Set the Fib values at 23.6%, 38.2%, 50%, and 61.8%*/

set{Hi,high 1-year high}
set{Lo,low 1-year low}
set{Vdiff,Hi - Lo}
set{x1,Vdiff * .236}
set{x2,Vdiff * .382}
set{x3,Vdiff * .50}
set{x4,Vdiff * .618}
set{x5,Vdiff * .786}
set{Fib1, Hi - x1}
set{Fib2, Hi - x2}
set{Fib3, Hi - x3}
set{Fib4, Hi - x4}
set{Fib5, Hi - x5}

/* Check if price touched any of the Fib lines 1 day ago while that candle's body is above the Fib line */

set{touch1a,count(low 1 day ago <= Fib1,1)}
set{touch1b,count(close 1 day ago > fib1,1)}
set{touch1c,count(open 1 day ago > fib1,1)}
set{touch1d,touch1a * touch1b}
set{Touch1,touch1c * touch1d}

set{touch2a,count(low 1 day ago <= Fib2,1)}
set{touch2b,count(close 1 day ago > fib2,1)}
set{touch2c,count(open 1 day ago > fib2,1)}
set{touch2d,touch2a * touch2b}
set{Touch2,touch2c * touch2d}

set{touch3a,count(low 1 day ago <= Fib3,1)}
set{touch3b,count(close 1 day ago > fib3,1)}
set{touch3c,count(open 1 day ago > fib3,1)}
set{touch3d,touch3a * touch3b}
set{Touch3,touch3c * touch3d}

set{touch4a,count(low 1 day ago <= Fib4,1)}
set{touch4b,count(close 1 day ago > fib4,1)}
set{touch4c,count(open 1 day ago > fib4,1)}
set{touch4d,touch4a * touch4b}
set{Touch4,touch4c * touch4d}

set{touch5a,count(low 1 day ago <= Fib5,1)}
set{touch5b,count(close 1 day ago > fib5,1)}
set{touch5c,count(open 1 day ago > fib5,1)}
set{touch5d,touch5a * touch5b}
set{Touch5,touch5c * touch5d}

set{z1,Touch1 + Touch2}
set{z2,z1 + Touch3}
set{z3,z2 + Touch4}
set{Trigger,z3 + Touch5}
Trigger > 0

/* The bounce: Green day following a 3-day declining close */
close > high 1 day ago
close 1 day ago < close 2 days ago for last 3 days

draw price line at hi
draw price line at Fib1
draw price line at Fib2
draw price line at Fib3
draw price line at Fib4
draw price line at Fib5
draw price line at lo

do not draw Trigger

/* Debugging

add column hi
add column Vdiff
add column fib1
add column close 1 day ago
*/
]



Stock Picks and Trading · A Newbie's Journey
xarlor
msg #149290
10/5/2019 6:03:57 PM

Added two lines at the bottom to tighten up the number of results.

Fetcher[
market is etf
set{1A_1, count (close > bottom linear regression line(13,0.75) 1 day ago,1)}
set{1A_2, count (LRS(13) < 0,1)}
set{1A, 1A_1 * 1A_2}

set{2A, count(rsi(14) crossed above 40,1)}

set{trigger, 1A * 2A}
add column trigger > 0

add column 1A
add column 2A
add column rsi(14)

average volume(30) > 123456
low > wma(150)
]



StockFetcher Forums ·  · << 1 ... 3 4 5 6 7 ... 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