MACD value crossing above zero while price above 200 SMA


Tags:
Category:
0
0

Hi Pete,

Wasn’t sure if there was a way to code this…can’t figure it out, but maybe because there is no way to do it.

I figured out the code (see below) to have a signal generated (as shown in the attached pic) for when

1. The price action closes above the 200 SMA
and
2. The MACD crosses over the Value

But instead, I’m hoping to NOT generate that signal anymore, BUT a signal when the VALUE crosses the ZERO LINE…and not using the AVG of the MACD at all in the equation (as you can see by my pic I’ve removed it from showing up).  I just want to signal when:

1. The price action closes above the 200 day SMA
and
2. The VALUE crosses the ZERO LINE of the MACD study

Is that even possible to generate?  I’ve noted it in the picture with a YES!!!…where I was hoping the signal could generate, and a No, where it currently generates the signal.

Here’s my current code for the old signal:

MACD().”Value” crosses above MACD().”Avg” and MACD().”Value” is less than 0 and close is greater than SimpleMovingAvg(“length” = 200).”SMA”

 

Attachments:
Marked as spam
Posted by (Questions: 5, Answers: 7)
Asked on August 26, 2020 5:42 pm
199 views
0
Private answer

Seems pretty simple to me. But perhaps I don't understand the request. Let's see if I got it right. Screenshots below shows how to build this using the Condition Wizard.

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on August 26, 2020 6:13 pm