I just copied and pasted the script you linked to into TOS and ran the scanner. There were 2697 results. One of them was AZFL, which was also picked up by the other code form the other page I linked in the last message. On the daily chart for today, the candle is no where near the 9/20/50 MA.@petech Posters to this forum aren't expected to be coders. However, in order to be a successful trader, it is important to be able to do your own research. One of the most important components of research is the ability to search the internet and this forum for the answers you need.
So when you searched this forum, did you attempt to change the simple moving averages in the below link to your lengths and run your scan? If so what issues did you have? Continue to provide screenshots, as you have, as you ask questions. A picture is worth a 1000 words
I found this one, this seems promising, now just need to figure out how to edit it.#Price is within X% max of the 20 SMA #### Change percentvalue to percent % in decimal format ### Example .02 is 2% and .025 is 2.5% def percentvalue = .01; #Price is with X of X EMA def ma = simpleMovingAvg(close,20); def s3 = ma*percentvalue; plot scan = absvalue(close - ma) is less than or equal to s3;
I just went straight to google search. Apologies for missing it. There is a lot of things about thinkorswim that I don't know how to do. Before today I didn't know what a conditional wizard was. I didn't even know how to create a watchlist. I google it just now after look at your post on how to create an alert for a single stock. It wasn't an unwillingness to try or do it myself, it is more that I don't know what I don't know. I also find looking at other people's lengthy code very intimidating. Looking at code is something I almost never do.@petech Really? There was just a thread posted in the last hour on how to scan for a single stock and you didn't see it when you searched the forum? WTF? Doing your own research was the point of this thread. You need to do the searches and then ask the question. Trying different terms in your searches is a learning process. Googling is a learned process. You need to do the work I am done.
Should be fairly simple to scan for close crosses above vwap and close crosses above ExpAverage(close, 21) and close crosses above ExpAverage(close, 8)... OR close > vwap and close > ExpAverage(close, 21) and close > ExpAverage(close, 8)...Can anyone help me create a scan for stocks that are trading above the VWAP, 21 & 8 day ema? I've been trying to tinker around with the scan section but I can't seem to figure this one out. Thanks in advance.
Thank youShould be fairly simple to scan for close crosses above vwap and close crosses above ExpAverage(close, 21) and close crosses above ExpAverage(close, 8)... OR close > vwap and close > ExpAverage(close, 21) and close > ExpAverage(close, 8)...
Pick whichever best suits your needs... You can also add within x bars to each condition...
#PRICE >> EMA20 AND PRICE >> EMA200 AND PRICE >> VWAP #not solved yet: need to define a watchlist for scan input price = close; input length_short = 9; input length_mid = 20; input length_long = 200; def EMA_m = MovAvgExponential(price, length_mid); def EMA_l = MovAvgExponential(price, length_long); def VWAP_ = VWAP(); def buynow = price > EMA_m and price > EMA_l and price > VWAP_; plot a = buynow; #needs to show an arrow on chart a.AssignValueColor(Color.GREEN); #not solved yet: needs alert
Thank you so much for this script . I used your ma crossober with clouds . Clean chart and great script . I removed ma short bubble display that hovers around the candles but other than that its tits . Before I was using 9/15ema and 45 ema for conformation on a 1 min chart . Here is my chart setup, any suggestions will be appriciated. Hope someone finds this setup useful .
create a watchlist, add the stock or stock(s) you want to scan against. Go to the stockhacker and where it says "scan in" change it to the name of your watchlistAlso is there a way to limit the scan I've setup to either a singular stock or a small hand full of stocks that I hand pick? I would like to setup an alert for when those conditions are met intra day. I've already done a google search. Can't find it. Please let me know what phrase I should type in search to go look for it again. Thank you in advance.
|Thread starter||Similar threads||Forum||Replies||Date|
|S||Avoid stacked up pivot points||Questions||0|
|D||Help figuring out what moving average this is?||Questions||12|
|D||Sizing & Moving Labels||Questions||3|
|R||Moving Averages With Unwanted Signals.||Questions||5|
|T||Help with study based on Time and Moving Average||Questions||7|