CapitaineFlam88
Member
Is there a way to have 2 SMA to show an arrow when they cross over?
Thanks
Thanks
I got the EMA crossover figured out, I still haven't been able to find the 2nd part of my conditions Im looking for. I can figure out how to get to scan for if the closing price crosses above EMA 20, but can't figure out how to get it to scan for two green 1 min candles above EMA 20.ill strike a deal with you... if you find the WORKING code for finding the 9ema crossing the 20ema and ill post the rest of your requested code. But you have to do the find, not someone else. you can either search on this forum and find it (maybe possibly even this thread ) or you can use the TOS built in scan wizard which is pretty straight forward, trust me its should be fairly easy to accomplish with a little bit of effort.
def AboveEMA = low is greater than or equal to MovAvgExponential("length" = 20)."AvgExp";
def Count = Sum(AboveEMA, 5);
def Count2 = Count>=2;
plot scan = Count2;
there sure is but it returns the value sinc the beginning of the epoch and you have to convert it. its quite complex.Hello, Does anyone know how to create a bubble that tells the time when EMAs crossover? Thanks.
@BenTen any suggestion Budd? Or where I can find these indicators?What are the indicators used here?
This is pretty straight forward.... You need to just add the study to the TOS chart (daily) and change the "inputs" (Price = close, Fast = 20, Slow = 50 and Average type = Exponential).... It's a VERY useful stript 'cause it's so customizable...Happy Sunday Everyone,
Could anyone help on a script for daily 20EMA cross 50EMA cloud color on daily bar chart? If the 20ema cross above 50ema, the cloud area is green, otherwise the cloud area is red. I would like to incorporate the daily BTD indicator with the 20EMA and 50EMA cloud to identify whether or not stocks are still on trending.
Thank you for your help.
##### Begin Code #####
# SD_MA_Cross_Arrows
# Scott D
# Version: 02
# Original: October 26, 2020
# Last Mod: October 26, 2020
# Inputs
input price = close;
input EMA1 = 3;
input EMA2 = 9;
# Definitions
def MAshort = ExpAverage(close,EMA1);
def MAlong = ExpAverage(close,EMA2);
def UpSignal = MAshort crosses above MAlong;
def DwnSignal = MAshort crosses below MAlong;
# Arrows
plot bullish = UpSignal;
bullish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
bullish.SetDefaultColor(Color.GREEN);
bullish.SetLineWeight(3);
plot bearish = DwnSignal;
bearish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
bearish.SetDefaultColor(Color.RED);
bearish.SetLineWeight(3);
##### End Code #####
What are the indicators used here?
Let me have a honest crack at it and if I cant figure it out within a reasonable time I will reach out back out for help. Thank you@PifogWallSt Clouds are for visual appearance only, based on conditional criteria, so we would never look for clouds themselves but, rather, the conditional criteria that causes them to react as they are coded to display... Now, that being said, all you need to do is to code your scan for the 5/12 and 34/50 criteria... Essentially, are 5 and 12 in a downtrend or uptrend when they cross above or below the 34 and 50... It might be as simple as monitoring for the 5 OR 12 crossing the 34 OR 50 because, if you examine the clouds you'll see consistent cloud colors in each direction without deviation... So perhaps you're overcomplication what should be simple EMA crossovers, which we have plenty of here in these forums... Take this information and run with it... You can use the scan wizard just as easily as anyone else can and the practice will be a good learning experience... We can help if you get stumped... There should be ample examples of similar scans here as well...
Let me have a honest crack at it and if I cant figure it out within a reasonable time I will reach out back out for help. Thank you
This is far as I could get but I dont know how to marry the two together. THinkScript comes up red at the word "and"@PifogWallSt Clouds are for visual appearance only, based on conditional criteria, so we would never look for clouds themselves but, rather, the conditional criteria that causes them to react as they are coded to display... Now, that being said, all you need to do is to code your scan for the 5/12 and 34/50 criteria... Essentially, are 5 and 12 in a downtrend or uptrend when they cross above or below the 34 and 50... It might be as simple as monitoring for the 5 OR 12 crossing the 34 OR 50 because, if you examine the clouds you'll see consistent cloud colors in each direction without deviation... So perhaps you're overcomplication what should be simple EMA crossovers, which we have plenty of here in these forums... Take this information and run with it... You can use the scan wizard just as easily as anyone else can and the practice will be a good learning experience... We can help if you get stumped... There should be ample examples of similar scans here as well...
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
L | A Volume Pressure Moving Average For ThinkOrSwim | Indicators | 15 | |
T | Mega Moving Average For ThinkOrSwim | Indicators | 26 | |
S | Moving Average Golden Cross - Death Cross For ThinkOrSwim | Indicators | 14 | |
D | Repaints MTF Moving Average Slope Histogram For ThinkOrSwim | Indicators | 20 | |
All The Moving Average Ribbons for ThinkorSwim | Indicators | 16 |
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.