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.
|
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:
|
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
|
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).
|
Filter Exchange · Simplified Supertrend Swingtrade
|
xarlor msg #159138 |
5/29/2022 5:50:27 PM
During the non-stop bull market of the past few years I would sometimes use Mobius' Supertrend indicator and scanner on ThinkOrSwim for entries and exits. As with all strategies, you have to adapt to changing market realities. I adapted the script for the current correction/bear scenario we are in.
I enter at the close and, this is very important, exit at the close of the next tick, full stop. It doesn't matter if the next tick is long or short, I exit. We are not in a trending environment and as such I'm not using this filter as a true Supertrend indicator. These are very quick trades, usually under a week
|
Filter Exchange · Bottom Filter
|
xarlor msg #159054 |
5/11/2022 9:59:20 AM
The problem with writing this in SF is the lack of looping capability. I took a stab at it and the results are not correct. Still, I'm posting it here in case someone wants to debug, improve, or point out where my logic is wrong.
|
Filter Exchange · Moving Average of Moving Average
|
xarlor msg #158980 modified |
4/16/2022 9:08:47 PM
Welcome to the StockFetcher community, bconnell!
Very interesting results on the ema(5), cma(ema(5),6) crossover. I've made some additions/changes based on my trading style.
- I took out all the noise as I prefer my charts a bit cleaner. Completely personal preference here.
- To catch the start of the run, I only display tickers who just performed the crossover.
- I noticed these tend to run a lot longer if they are already in an uptrend (defined by me as close above wma(150)). It still works if the stock is in a downtrend, but the runs are short; a lot of times very short and not worth it to me.
- I sorted the results by those in an uptrend first. Depending on how that goes, I may just remove the downtrend ones and only display the uptrends. Starting out, I want to see the performance of both trends.
Again, kudos to finding this pattern and an even bigger thank you for sharing. Looking quite promising.
|