StockFetcher Forums · General Discussion · Weekly range<< >>Post Follow-up
hrosas
27 posts
msg #139068
Ignore hrosas
11/4/2017 3:39:06 AM

Friends:
Can any one, please help me code this filter?
I would like to get charts of any list of symbols, like the one I created on the following SYMLIST, as a sample.
I like to glance at the weekly candle, if any meet the criteria.
The purpose: at the end of the week before the options market closes, if I see a candle that is colored different (met the criteria) this week that is closing, I may want to buy a straddle or strangle in he money or next out of the money, hoping that the symbol will break up or down. I don't want to guess which way, but see if the move on the next 30-50 days is profitable on the call or put side.
When properly coded ( if could be done) I will post it public. In the months ahead i will trade it with real money (one contract to begin) and share the results.
It is not my idea but a trader here in Las Vegas does it with currencies ETF's. he coded his charts on TRADE-STATION. I don't have access to the code, but was selfless to give me the strategy rules.
I will appreciate your help.
Hugo



SYMLIST(qqq,xle,xlv,xlk,xlf,xly,xli,xlp,xlb,xlk,xlu,xlre,spy,iwm,goog,aapl,fb,xbi,slv,gld,tsla)
[or any other list of symbols]

[show all symbols on the previous list but color the candle (any color other than green white or red) where the range (high of week - low of week) is less than half of the average 20-weekly range (previous 20-weeks). In other words the candle of any week that meets this requirement, the body is colored different]

chart-display is weekly
chart-time is 1 year

hrosas
27 posts
msg #139073
Ignore hrosas
11/4/2017 8:02:26 AM

I moved this request to Filter Exchange.
I think that place is most appropriate.
Thank you.
Sorry for the inconvenience.
HR.

Kevin_in_GA
4,599 posts
msg #139074
Ignore Kevin_in_GA
11/4/2017 10:54:08 AM

The colors of the candles are not adjustable. Like Henry Ford said about the Model T ... "You can have it in any color you want as long as it's Black."

Kevin_in_GA
4,599 posts
msg #139075
Ignore Kevin_in_GA
11/4/2017 10:59:48 AM

BTW, this is much easier to simply screen for using SF syntax than try to change candle color.

SYMLIST(qqq,xle,xlv,xlk,xlf,xly,xli,xlp,xlb,xlk,xlu,xlre,spy,iwm,goog,aapl,fb,xbi,slv,gld,tsla)
[or any other list of symbols]

[show all symbols on the previous list but color the candle (any color other than green white or red) where the range (high of week - low of week) is less than half of the average 20-weekly range (previous 20-weeks). In other words the candle of any week that meets this requirement, the body is colored different]

chart-display is weekly
chart-time is 1 year


Fetcher[
SYMLIST(qqq,xle,xlv,xlk,xlf,xly,xli,xlp,xlb,xlk,xlu,xlre,spy,iwm,goog,aapl,fb,xbi,slv,gld,tsla)
set{weeklyrange, weekly high - weekly low}
set{avweeklyrange, cma(weeklyrange, 20)}
set{trigger, weeklyrange / avweeklyrange}

trigger below 0.5
]



No signals since 10/13 for this screen.

hrosas
27 posts
msg #139076
Ignore hrosas
11/4/2017 1:44:59 PM

Thank you, Kevin.
I understand about coloring the candle.
I ran your filter and did dot return any charts on the small list I provided. Maybe your "trigger" point was looking at the last week.
I removed the list and returned over 800 charts. Somehow your filter works (of course)
Is it a way to show the chart of any list?
I'm sure over a year, there was a week where the range met the criteria on the sample list.
I was trying to show you a picture of chart I have on my google pictures in here by copying and pasting by I was unable.
I really appreciate your efforts.
Best!
Hugo

Kevin_in_GA
4,599 posts
msg #139082
Ignore Kevin_in_GA
11/4/2017 5:04:42 PM

Using that list, go to 10/13/2017 and you will see several hits.

hrosas
27 posts
msg #139084
Ignore hrosas
11/4/2017 8:45:50 PM


Thank you, Kevin

Drawing the line at 0.5

I changed the list to popular currencies ETF (except the Krona FXS) and show one hit today.
But shows the the same the previous day etc.

Going few days back, show all seven symbols but hit way before the trigger line criteria went below 0.5

All we are trying to find is the Friday of the closing week completed weekly range (high of week - low of week) that is less than half of the average 20-week weekly range.

The trigger line is a good start. One X or a big dot under the chart is OK too.
i realize I'm demanding too much. But we are almost there.

Best!
Hugo.

SYMLIST(FXA,FXB,FXC,FXE,FXF,FXY,FXS)


set{weeklyrange, weekly high - weekly low}
set{avweeklyrange, cma(weeklyrange, 20)}
set{trigger, weeklyrange / avweeklyrange}

trigger below 0.5
draw trigger line at 0.5

hrosas
27 posts
msg #139085
Ignore hrosas
11/4/2017 8:50:41 PM

October 30, 2017 show all of the 7 symbols.
The rigger line however is way above 0.05
Best!
Hugo.


StockFetcher Forums · General Discussion · Weekly range<< >>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.