Below is about half of a very long scan. The complete scan uses up almost all of the allowed characters. If possible, I'd like to compress this scan so that I can combine another shorter scan into one big scan. I have already taken and tested some of your ideas to compress the scan. Do you have any further ideas about how to further compress this portion of the scan? One idea might be for me to change 2 words, this week's to 1 word, weekly.
[Favorites list is 10] and [[[This week's MACD Signal(12,26,9) > 0.0] and [This week's MACD Line(12,26,9) > This week's MACD Signal(12,26,9)] and [MACD Signal(12,26,9) > 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[This week's MACD Signal(12,26,9) > 0.0] and [This week's MACD Line(12,26,9) > This week's MACD Signal(12,26,9)] and [MACD Signal(12,26,9) > 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[This week's MACD Signal(12,26,9) > 0.0] and [This week's MACD Line(12,26,9) > This week's MACD Signal(12,26,9)] and [MACD Signal(12,26,9) < 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[This week's MACD Signal(12,26,9) > 0.0] and [This week's MACD Line(12,26,9) > This week's MACD Signal(12,26,9)] and [MACD Signal(12,26,9) < 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[This week's MACD Signal(12,26,9) > 0.0] and [This week's MACD Line(12,26,9) < This week's MACD Signal(12,26,9)] and [This week's MACD Hist(12,26,9) > 1 Week ago MACD Hist(12,26,9)] and [MACD Signal(12,26,9) > 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [Today's MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[This week's MACD Signal(12,26,9) > 0.0] and [This week's MACD Line(12,26,9) < This week's MACD Signal(12,26,9)] and [This week's MACD Hist(12,26,9) > 1 Week ago MACD Hist(12,26,9)] and [MACD Signal(12,26,9) > 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[This week's MACD Signal(12,26,9) > 0.0] and [This week's MACD Line(12,26,9) < This week's MACD Signal(12,26,9)] and [This week's MACD Hist(12,26,9) > 1 Week ago MACD Hist(12,26,9)] and [MACD Signal(12,26,9) < 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[This week's MACD Signal(12,26,9) > 0.0] and [This week's MACD Line(12,26,9) < This week's MACD Signal(12,26,9)] and [This week's MACD Hist(12,26,9) > 1 Week ago MACD Hist(12,26,9)] and [MACD Signal(12,26,9) < 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
0
Comments
But, I see a lot of conditions re-occurring, so I think you might want to identify which conditions are common to which "or" statements, and then which conditions are unique to each "or" condition. Then you can group the common conditions so you only have to write them once, and then connect the various unique conditions with "or".
So, schematically it might look like this:
[group is whatever]
// first set of common conditions
and
[
[a > b]
and [c > d]
and [e > f]
and
[
[ g < h] // first condition with this group
or
[ i < j ] // second
or
[k < l ] // third
]
]
or
//second set of common conditions
[
[a < b] // this one is different from first group of common condition
and [c > d]
and [e > f]
and
[
[ m > n]
or
[ o < p ]
or
[q < r ]
]
]
or
// third set of common conditions
[
etc.
Watch your brackets.
[Favorites list is 10] and [[Weekly MACD Signal(12,26,9) > 0.0] and [Weekly MACD Line(12,26,9) > Weekly MACD Signal(12,26,9)] and [MACD Signal(12,26,9) > 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[MACD Signal(12,26,9) > 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[MACD Signal(12,26,9) < 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[MACD Signal(12,26,9) < 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[Weekly MACD Signal(12,26,9) > 0.0] and [Weekly MACD Line(12,26,9) < Weekly MACD Signal(12,26,9)] and [Weekly MACD Hist(12,26,9) > 1 Week ago MACD Hist(12,26,9)] and [MACD Signal(12,26,9) > 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [Today's MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[MACD Signal(12,26,9) > 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[MACD Signal(12,26,9) < 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[MACD Signal(12,26,9) < 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]]
It would really help if you could add comments to explain what each section is supposed to be looking for, even if you think it's obvious (see example in scan) Maybe copy and paste this into a new scan, then write the comments, then edit/re-arrange for logic.
I strongly suggest this format (new line for each condition). I honestly can't read the format you are using. Sorry!
[Favorites list is 10]
and [Weekly MACD Signal(12,26,9) > 0.0]
and [Weekly MACD Line(12,26,9) > Weekly MACD Signal(12,26,9)]
and [MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
and
[
[
// Signal above zero, Line above Signal, Hist12 ticks up, Hist6 was below zero
[MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
[
[Weekly MACD Signal(12,26,9) > 0.0]
and [Weekly MACD Line(12,26,9) < Weekly MACD Signal(12,26,9)]
and [Weekly MACD Hist(12,26,9) > 1 Week ago MACD Hist(12,26,9)]
and [MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
[
[MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
]
It's good that you are not afraid of work, or a challenge, but there's something to be said for simplicity, too.
Well, it looks like in all cases, you want Weekly MACD Signal >0. And in all cases you want 1 day ago MACD Hist < 0.
Then, I'm guessing you want some daily MACD Line and Signal conditions when Weekly MACD Signal > weekly Line, and some daily conditions when weekly Line > Signal.
Is that right, so far?
Lets disregard this condition...[1 Day ago MACD Hist(6,9,0) < 0.0] for now.
Let me try this.
There are four macd conditions that I am looking at. Two conditions above zero and two conditions below zero. The first is when the signal line is above zero and the fast line is above the signal line. The second is when the signal line is above zero and the fast line is below the signal line. The third is when the signal line is below zero and the fast line is below the signal line. The fourth and last is when the signal line is below zero and the fast line is above the signal line. To follow the bigger time frame (weekly tf) I would like to use four weekly macd conditions just like I just mentioned above. With each weekly condition, I also want the same four macd conditions but using them on a daily time frame. So, when the scan is complete there are 16 different scenarios and each scenario can be it's very own scan. With that in mind, the "and' that you added won't work, there has to be an "or" there.
Below is the first weekly condition with all four daily conditions;
[[Weekly MACD Signal(12,26,9) > 0.0] and [Weekly MACD Line(12,26,9) > Weekly MACD Signal(12,26,9)] and [MACD Signal(12,26,9) > 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[MACD Signal(12,26,9) > 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[MACD Signal(12,26,9) < 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
or [[MACD Signal(12,26,9) < 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)] and [1 Day ago MACD Hist(6,9,0) < 0.0]]
I think if you re-arrange your brackets like this:
// 1st weekly MACD combo
[Weekly MACD Signal(12,26,9) > 0.0]
and [Weekly MACD Line(12,26,9) > Weekly MACD Signal(12,26,9)]
and
// begin daily MACD combos for 1st weekly MACD combo
[
// 1st daily MACD combo
[
[MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// second daily MACD combo
[
[MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// third daily MACD combo
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// 4th daily MACD combo
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
] // end daily MACD combos for 1st weekly MACD combo
[group is sp500]
and
[
weekly combo 1 (i.e., copy/paste from above all the code between // 1st weekly ... and // end daily MACD for 1st weekly )
]
or
[
weekly combo 2 (copy/paste code from above, edit as needed
]
or
[
weekly combo 3
]
or
[
weekly combo 4
]
But I don't think your original scan was getting expected results, except maybe by accident, because, as you had things grouped, the weekly condition was not required for the "or" paragraphs - just the first paragraph with the "and" daily MACD conditions.
As I have re-arranged things, all four daily MACD conditions must occur with the associated weekly conditions.
Hope that helps.
You only need to state each of the four weekly conditions one time.
Basically, what we are doing is "nesting" the 'or' condition.
Suppose you wrote the scan looking for just the weekly conditions. It would be
************
[favorites list is 10]
and
[ // begin weekly combos
[ // first weekly combo
[Weekly MACD Signal(12,26,9) > 0.0]
and [Weekly MACD Line(12,26,9) > Weekly MACD Signal(12,26,9)]
]
or
[ // second weekly combo
[Weekly MACD Signal(12,26,9) > 0.0]
and [Weekly MACD Line(12,26,9) < Weekly MACD Signal(12,26,9)]
]
or
[ // third weekly combo
[Weekly MACD Signal(12,26,9) < 0.0]
and [Weekly MACD Line(12,26,9) > Weekly MACD Signal(12,26,9)]
]
or
[ // fourth weekly combo
[Weekly MACD Signal(12,26,9) < 0.0]
and [Weekly MACD Line(12,26,9) < Weekly MACD Signal(12,26,9)]
]
] // end weekly combos
*************
So that's the "top" level.
Then, under each weekly condition, you need the four daily conditions. Those are the "second" level. So you have "or" statements within an "or" statement.
The four daily "or" conditions are grouped by brackets (labelled // begin daily combos - // end daily combos). Each daily "or" group is linked to it's weekly combo (first, second, third, fourth) by "and". The brackets around the four daily "or" statement make it read as if all the conditions in the daily "or" group are one statement.
I wish we had color fonts. I'll try bolding the "top" level. With a real programming editor (word processor) the levels would be indented, but we'll make do. I think you know this, but the white space has no meaning - it's just for readability. Also, the white space doesn't count toward your character count (it might count as one character per blank line, I'm not sure, but negligible).
[favorites list is 10]
and
[ // begin weekly combos
[ // first weekly combo
[Weekly MACD Signal(12,26,9) > 0.0]
and [Weekly MACD Line(12,26,9) > Weekly MACD Signal(12,26,9)]
and
[ // begin daily combos
// 1st daily MACD combo
[
[MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// second daily MACD combo
[
[MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// third daily MACD combo
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// 4th daily MACD combo
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
] // end daily MACD combos
] // end first weekly combo
or
[ // second weekly combo
[Weekly MACD Signal(12,26,9) > 0.0]
and [Weekly MACD Line(12,26,9) < Weekly MACD Signal(12,26,9)]
and
[
[ // first daily combo
[MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// second daily MACD combo
[
[MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// third daily MACD combo
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// 4th daily MACD combo
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
] // end daily combos
] // end second weekly combo
or
[ // third weekly combo
[Weekly MACD Signal(12,26,9) < 0.0]
and [Weekly MACD Line(12,26,9) > Weekly MACD Signal(12,26,9)]
and
[ // begin daily combos
// 1st daily MACD combo
[
[MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// second daily MACD combo
[
[MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// third daily MACD combo
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// 4th daily MACD combo
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
] // end daily MACD combos
] // end third weekly combo
or
[ // fourth weekly combo
[Weekly MACD Signal(12,26,9) < 0.0]
and [Weekly MACD Line(12,26,9) < Weekly MACD Signal(12,26,9)]
and
[ // begin daily combos
// 1st daily MACD combo
[
[MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// second daily MACD combo
[
[MACD Signal(12,26,9) > 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Hist(12,26,9) > 1 Day ago MACD Hist(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// third daily MACD combo
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) < MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
or
// 4th daily MACD combo
[
[MACD Signal(12,26,9) < 0.0]
and [MACD Line(12,26,9) > MACD Signal(12,26,9)]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]
]
] // end daily MACD combos
] // end fourth weekly combo
] // end all weekly combos
The other conditions are Line > than 1 day ago Line, and Hist 6 < 0.
It seems to me you could leave out the MACD conditions altogether and just ask for the two other conditions.
Asking for all possible configurations is the same as asking for any configuration (I think that may be why your results are so similar). If any configuration will do, then you don't need to specify every configuration.
Of course, I haven't seen the whole scan, so Just a thought.
I think the point I am trying to make is that what you scan for, and what you analyze do not necessarily have to be identical. Items in your analysis have to be on your chart, but they may not have to be in your scan.
For instance, suppose I have a method where the direction of the 50 MA matters. And I use another indicator, too (let's say, Fast K), but how I interpret Fast K depends on what the 50 MA is doing.
So, suppose I build the scan to include all possible states of the 50 MA first - rising, falling, turning up or turning down, WITHOUT the Fast K conditions. If I run that scan against a list of 100 stocks, won't I get 100 hits? I should, because the scan covers all possible 50 MA directions, so every stock in the list should be going in one of those directions.
Now if I run the same scan, and add K x 20 or 20 x K, I will get many fewer hits, because K can be doing other things besides crossing above or below 20.
But what happens if I scan for Kx20 or 20 x K ONLY?
Won't I get the same number of hits as the scan with the 50 MA conditions? The 50 MA conditions will pick up all stocks no matter what. The limiting condition is K. If K x 80 the stock will not get picked - even though must have one of the 50 MA conditions. So why test for the 50 MA conditions? Even though I will use the 50 MA direction on my chart on in my analysis, I don't need to scan for it.
So what I'm saying is, in your scan, you account for all combinations of weekly and daily MACD, but you don't have to. Your results will have one of those combinations no matter what because you have covered all possible combinations. Your charts will need MACD, but not your scan.
What I'm saying is, basically, this is your bullish scan:
[favorites list is 10]
and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]
and [1 Day ago MACD Hist(6,9,0) < 0.0]]
All the other stuff covers all possible configurations of daily and weekly MACD, which you don't need to specify, because if you hit on these conditions, it has to have one of the MACD combinations you want, because you want all of them.
So I'm guessing your bearish scan can probably be just as brief.
The first scan is [Favorites list is 10] and [1 Day ago MACD Hist(6,9,0) > 0.0] and [Full Stoch %K(14,3,3) < 1 Day ago Full Stoch %K(14,3,3)] and [[[Weekly MACD Line(12,26,9) > 0.0] and [Weekly MACD Line(12,26,9) > Weekly MACD Signal(12,26,9)] and [Weekly MACD Line(12,26,9) < 1 Week ago MACD Line(12,26,9)] and [[[MACD Line(12,26,9) > 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Line(12,26,9) < 1 Day ago MACD Line(12,26,9)]]
or [[MACD Line(12,26,9) > 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) < 1 Day ago MACD Line(12,26,9)]]
or [[MACD Line(12,26,9) < 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) < 1 Day ago MACD Line(12,26,9)]]
or [[MACD Line(12,26,9) < 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Hist(12,26,9) < 1 Day ago MACD Hist(12,26,9)]]]]
or [[Weekly MACD Line(12,26,9) > 0.0] and [Weekly MACD Line(12,26,9) < Weekly MACD Signal(12,26,9)] and [Weekly MACD Line(12,26,9) < 1 Week ago MACD Line(12,26,9)] and [[[MACD Line(12,26,9) > 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Line(12,26,9) < 1 Day ago MACD Line(12,26,9)]]
or [[MACD Line(12,26,9) > 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) < 1 Day ago MACD Line(12,26,9)]]
or [[MACD Line(12,26,9) < 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) < 1 Day ago MACD Line(12,26,9)]]
or [[MACD Line(12,26,9) < 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Hist(12,26,9) < 1 Day ago MACD Hist(12,26,9)]]]]
or [[Weekly MACD Line(12,26,9) < 0.0] and [Weekly MACD Line(12,26,9) < Weekly MACD Signal(12,26,9)] and [Weekly MACD Line(12,26,9) < 1 Week ago MACD Line(12,26,9)] and [[[MACD Line(12,26,9) > 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Line(12,26,9) < 1 Day ago MACD Line(12,26,9)]]
or [[MACD Line(12,26,9) > 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) < 1 Day ago MACD Line(12,26,9)]]
or [[MACD Line(12,26,9) < 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) < 1 Day ago MACD Line(12,26,9)]]
or [[MACD Line(12,26,9) < 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Hist(12,26,9) < 1 Day ago MACD Hist(12,26,9)]]]]
or [[Weekly MACD Line(12,26,9) < 0.0] and [Weekly MACD Line(12,26,9) > Weekly MACD Signal(12,26,9)] and [Weekly MACD Hist(12,26,9) < 1 Week ago MACD Hist(12,26,9)] and [[[MACD Line(12,26,9) > 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Line(12,26,9) < 1 Day ago MACD Line(12,26,9)]]
or [[MACD Line(12,26,9) > 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) < 1 Day ago MACD Line(12,26,9)]]
or [[MACD Line(12,26,9) < 0.0] and [MACD Line(12,26,9) < MACD Signal(12,26,9)] and [MACD Line(12,26,9) > 1 Day ago MACD Line(12,26,9)]]
or [[MACD Line(12,26,9) < 0.0] and [MACD Line(12,26,9) > MACD Signal(12,26,9)] and [MACD Hist(12,26,9) < 1 Day ago MACD Hist(12,26,9)]]]]].
The second scan is
[Favorites list is 10] and [Weekly MACD Line(12,26,9) < 1 Week ago MACD Line(12,26,9)] and [Weekly MACD Hist(12,26,9) < 1 Week ago MACD Hist(12,26,9)] and [MACD Hist(48,104,0) < 1 Day ago MACD Hist(48,104,0)] and [MACD Hist(48,104,36) < 1 Day ago MACD Hist(48,104,36)].
FYI, I can combine the two and when I test the syntax it is correct but the scan results are not the same as if I ran the scans seperately. I think that it has to do with the bracketing again.
Thanks,
David
I know you want do it all in one scan, and I understand that it makes sense to you to do it that way, but for me it would be much easier to break it into several scans.
Are you still asking for all possible combinations of Line and Signal in one scan? If so, why?