♥ 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 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 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”
Marked as spam
|