# MACD Crossover

**URL:** <https://community.tradovate.com/t/macd-crossover/4984>\
**Category:** Custom Indicators\
**Created:** [July 7, 2022, 2:42am UTC](https://community.tradovate.com/t/macd-crossover/4984 "2022-07-07T02:42:56Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Steffine](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/gregory_steffine/32/2176_2.png) [@Gregory\_Steffine](https://community.tradovate.com/u/Gregory_Steffine)\
**Post date:** [July 7, 2022, 2:42am UTC](https://community.tradovate.com/t/macd-crossover/4984/1 "2022-07-07T02:42:56Z")

</div>

New to Tradovate from ToS. Can anyone assist in helping me find or create a chart indicator that flags a MACD crossover, both bullish and bearish? (Tradovate looks like an awesome platform, so I’m really disappointed and frustrated that this common indicator wasn’t available.) Any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![JAGON](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@JAGON](https://community.tradovate.com/u/JAGON)\
**Post date:** [July 8, 2022, 1:26am UTC](https://community.tradovate.com/t/macd-crossover/4984/2 "2022-07-08T01:26:51Z")

</div>

![MACD](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/9/9c5689150bc4ea48897bae0fdae09020aa7753c0.png)

If I am not wrong you can find it out at “community indicators” at the right side of the desk.

---

<div class="post-metadata">

**Author:** ![Gregory\_Steffine](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/gregory_steffine/32/2176_2.png) [@Gregory\_Steffine](https://community.tradovate.com/u/Gregory_Steffine)\
**Post date:** [July 8, 2022, 2:20am UTC](https://community.tradovate.com/t/macd-crossover/4984/3 "2022-07-08T02:20:26Z")

</div>

The MACD is available as an indicator; however, I’ve been unable to locate a version that that plots a symbol with the bars when a bullish crossover occurs (usually an up arrow below the bar) or when a bearish crossover occurs (usually a down arrow above the bar).

---

<div class="post-metadata">

**Author:** ![JAGON](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@JAGON](https://community.tradovate.com/u/JAGON)\
**Post date:** [July 8, 2022, 2:47am UTC](https://community.tradovate.com/t/macd-crossover/4984/4 "2022-07-08T02:47:58Z")

</div>

You are right. Maybe could be useful the Tiki Elder Indicator -shows points/place of impulse

---

<div class="post-metadata">

**Author:** ![Gregory\_Steffine](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/gregory_steffine/32/2176_2.png) [@Gregory\_Steffine](https://community.tradovate.com/u/Gregory_Steffine)\
**Post date:** [July 8, 2022, 4:35am UTC](https://community.tradovate.com/t/macd-crossover/4984/5 "2022-07-08T04:35:23Z")

</div>

Thank you. I will check it out. Are you able to/interested in creating the indicator I described?

---

<div class="post-metadata">

**Author:** ![JAGON](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@JAGON](https://community.tradovate.com/u/JAGON)\
**Post date:** [July 8, 2022, 1:45pm UTC](https://community.tradovate.com/t/macd-crossover/4984/6 "2022-07-08T13:45:49Z")

</div>

Well, I am no a software designer :-). But it is a very good indicator to have it in tradovate. I will have a look on how to create.

---

<div class="post-metadata">

**Author:** ![Gregory\_Steffine](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/gregory_steffine/32/2176_2.png) [@Gregory\_Steffine](https://community.tradovate.com/u/Gregory_Steffine)\
**Post date:** [July 8, 2022, 6:17pm UTC](https://community.tradovate.com/t/macd-crossover/4984/7 "2022-07-08T18:17:23Z")

</div>

That would be great! I found a number of resources in the graphics tutorial on github, but i have no idea how to execute. Besides the MACD, i’m using the RSI in Laguerre Time indicator which plots dots on the crossover within the study. If it plotted them with the price bars, instead, it would be a good illustration perhaps of how to do what I’m looking for.  
 ![image.png](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/6/6d994d6f4c0069cb7a97849c8482de1ba1d95245.png)

---

<div class="post-metadata">

**Author:** ![JAGON](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@JAGON](https://community.tradovate.com/u/JAGON)\
**Post date:** [July 8, 2022, 7:16pm UTC](https://community.tradovate.com/t/macd-crossover/4984/8 "2022-07-08T19:16:26Z")

</div>

I will try with the code on the MACD Crossover.  
On the other hand, about on how executing a code for any indicator you may find it out at community indicators and click on files; there it is possible to modify and share.

 ![Laguerre](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/2/272fd22267f4a28991001f3e680b3e57eb843fdb.png)

Me I do use MACD, ADI, Elder and several charts; renko, points and figures to determine the tendency. I honestly works very fine to me.

---

<div class="post-metadata">

**Author:** ![Gregory\_Steffine](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/gregory_steffine/32/2176_2.png) [@Gregory\_Steffine](https://community.tradovate.com/u/Gregory_Steffine)\
**Post date:** [July 8, 2022, 7:46pm UTC](https://community.tradovate.com/t/macd-crossover/4984/9 "2022-07-08T19:46:43Z")

</div>

I’ve tried but with little success. Javascript is not easy for me to understand. I did a ton of work in ThinkSript…pretty user friendly. I just have a difficult time understanding the javascript construct. Plus, I’m not a programmer either.

---

<div class="post-metadata">

**Author:** ![Gregory\_Steffine](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/gregory_steffine/32/2176_2.png) [@Gregory\_Steffine](https://community.tradovate.com/u/Gregory_Steffine)\
**Post date:** [July 8, 2022, 8:04pm UTC](https://community.tradovate.com/t/macd-crossover/4984/10 "2022-07-08T20:04:12Z")

</div>

The other problem with the MACD indicator is that the difference bars paint over the lines. Both lines should always paint over the histogram, otherwise crossovers are hidden. Also, the MACD line should paint over the signal line.  
 ![image.png](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/f/f43ad096447f348105f36aa0e1b0b42307611ba6.png)

---

<div class="post-metadata">

**Author:** ![JAGON](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@JAGON](https://community.tradovate.com/u/JAGON)\
**Post date:** [July 8, 2022, 9:58pm UTC](https://community.tradovate.com/t/macd-crossover/4984/11 "2022-07-08T21:58:33Z")

</div>

I think the best option to us - as noone has skills on cumputing- is to use Tradingview as a help tool.  
Please check the following links where macd indicators is shown on tradingview.

 ![MACD with Signals](https://us1.discourse-cdn.com/flex015/uploads/tradingforum/original/2X/2/2c2fd4c33a4de08f6175ab181447351860074e50.png)

> **[MACD Crossover Trend Indicator by mastixmc](https://www.tradingview.com/script/xVMPdpPk-MACD-Crossover-Trend-Indicator/)**
>
> This is a very simple "the trend is your friend" indicator - if you are consistent!
> 
> How this indicator works:
> This indicator detects MACD Crossovers based on the current trend. It checks wether the current close price is above or below the 200 EMA...

> **[MACD Crossover — Indicator by HPotter](https://www.tradingview.com/script/oMMT8OQZ-MACD-Crossover/)**
>
> MACD – Moving Average Convergence Divergence. The MACD is calculated 
> by subtracting a 26-day moving average of a security's price from a 
> 12-day moving average of its price. The result is an indicator that 
> oscillates above and below...

---

<div class="post-metadata">

**Author:** ![artisticpainting90](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@artisticpainting90](https://community.tradovate.com/u/artisticpainting90)\
**Post date:** [February 20, 2023, 7:30pm UTC](https://community.tradovate.com/t/macd-crossover/4984/12 "2023-02-20T19:30:01Z")

</div>

Does anyone have the Impulse MACD by Lazy Bear in javascript? I have the Think Or Swim code but need it translated to Java…

study(“Impulse MACD [LazyBear]”, shorttitle=“IMACD\_LB”, overlay=false)  
lengthMA = input(34)  
lengthSignal = input(9)  
calc\_smma(src, len) =\>  
smma=na(smma[1]) ? sma(src, len) : (smma[1] \* (len - 1) + src) / len  
smma  
calc\_zlema(src, length) =\>  
ema1=ema(src, length)  
ema2=ema(ema1, length)  
d=ema1-ema2  
ema1+d  
src=hlc3  
hi=calc\_smma(high, lengthMA)  
lo=calc\_smma(low, lengthMA)  
mi=calc\_zlema(src, lengthMA)  
md=(mi\>hi)? (mi-hi) : (mi\<lo) ? (mi - lo) : 0  
sb=sma(md, lengthSignal)  
sh=md-sb  
mdc=src\>mi?src\>hi?lime:green:src\<lo?red ![:eek:]()range  
plot(0, color=gray, linewidth=1, title=“MidLine”)  
plot(md, color=mdc, linewidth=2, title=“ImpulseMACD”, style=histogram)  
plot(sh, color=blue, linewidth=2, title=“ImpulseHisto”, style=histogram)  
plot(sb, color=maroon, linewidth=2, title=“ImpulseMACDCDSignal”)  
ebc=input(false, title=“Enable bar colors”)  
barcolor(ebc?mdc:na)

---

<div class="post-metadata">

**Author:** ![anselmeoga](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/anselmeoga/32/2826_2.png) [@anselmeoga](https://community.tradovate.com/u/anselmeoga)\
**Post date:** [March 16, 2023, 6:19pm UTC](https://community.tradovate.com/t/macd-crossover/4984/13 "2023-03-16T18:19:48Z")

</div>

join me at [obacommunication@gmail.com](mailto:obacommunication@gmail.com) and let’s work on it

---

<div class="post-metadata">

**Author:** ![anselmeoga](https://sea1.discourse-cdn.com/flex015/user_avatar/community.tradovate.com/anselmeoga/32/2826_2.png) [@anselmeoga](https://community.tradovate.com/u/anselmeoga)\
**Post date:** [March 16, 2023, 6:21pm UTC](https://community.tradovate.com/t/macd-crossover/4984/14 "2023-03-16T18:21:06Z")

</div>

Let’s me code your MACD indicator. Join me at [obacommunication@gmail.com](mailto:obacommunication@gmail.com)
