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 '13 at 05:27

shammyx's gravatar image

shammyx
75 1117

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 '13 at 05:29) shammyx shammyx's gravatar image

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.

link

answered Jun 18 '13 at 17:08

markd's gravatar image

markd
14.5k 1523

edited Jun 18 '13 at 17:14

OK. I knew one of you guys would suss out the right answer.

(Jun 18 '13 at 19:33) Windsurf Windsurf's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • 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:

×56
×19
×5

Asked: Jun 18 '13 at 05:27

Seen: 923 times

Last updated: Jun 23 '13 at 08:45