♥ 0 |
Hello, I am having trouble coding this study. I am trying to make a lower study that represents which ema is over the other. I need it so that if the 12 ema is above the 30 ema, a green dot is plotted in a lower study, and if the 30 ema is above the 12 ema a red dot is plotted in a lower study. Thank you!
Marked as spam
|
Private answer
Pretty sure we show how to do this here: https://www.hahn-tech.com/ans/horizontal-line-moving-average/ You will have to adapt it to work with your chosen moving averages, but the core components are all there. Marked as spam
|
|||||
Private answer
Here is the code from the post I linked, with the Double moving average code replaced by two simple moving averages:
Marked as spam
|
Please log in to post questions.
Thank you, but that post you linked me too confused me. I am just trying to get a horizontal line when the 12 ema is above the 30 ema a green dot is plotted. When the 30 ema is above the 12 ema, a red dot is plotted. Thank you ?