# macd weekly cross

 0 hi there, i have two codes for weekly macd crossing under 0. which is correct, or whats the difference? [type is stock] and [sma(60,volume) > 500000] and [MACD Line(12,26,9)<0] and [MACD Signal(12,26,9)<0] and [type is stock] and [sma(60,volume) > 500000] and [MACD Line(12,26,9) x MACD Signal(12,26,9)] and [MACD Line(12,26,9)<0] and [MACD Signal(12,26,9)<0] //this one seems to first ask for a cross and then make sure that its below 0 on both signal and macd line. is this formula totally correct? asked Jun 18 at 05:27 shammyx 55 ●1●1●17 i meant in both cases for the word weekly to be infront of macd as follows [type is stock] and [sma(60,volume) > 500000] and [weekly MACD Line(12,26,9) x MACD Signal(12,26,9)] and [weekly MACD Line(12,26,9)<0] and [weekly MACD Signal(12,26,9)<0] (Jun 18 at 05:29) shammyx

 1 This is what you want for the cross over test: and [weekly MACD Line(12,26,9) x weekly MACD Signal(12,26,9)] and [weekly MACD Line(12,26,9)<0] and [weekly MACD Signal(12,26,9)<0] The difference is the first scan doesn't test for a cross over - the line with the "x" in it. Your second scan wasn't totally correct, as it didn't modify MACD with "weekly" in every instance. To be totally consistent, you would also ask for weekly volume, and adjust the sma length - maybe divide 60 days by 5 days in a week to get 12, and then multilply the volume target by 5 - 2500000, so it would be sma(12, weekly volume) > 2500000. But, that's not absolutely necessary - just understand that if you don't say "weekly volume" you are scanning for daily volume. answered Jun 18 at 17:08 markd 12.3k ●13●22 OK. I knew one of you guys would suss out the right answer. (Jun 18 at 19:33) Windsurf
 toggle preview

By Email:

Markdown Basics

• *italic* or __italic__
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

Tags:

×53
×19
×5