freshpotato 36 posts msg #57127 - Ignore freshpotato |
11/28/2007 6:49:11 PM
Hello,
I know you can use the count feature to check how many times for example a MA(20) has occured during the time period specified.
But, what if I want to check a MA(20) cross AND high above MA(20) occuring on the same day..
set{macross,count(price crosses below MA(20),60)}
set{macross,count(high is above MA(20),60)}
But I need it to only count when the setup is occuring on the same day
|
nikoschopen 2,824 posts msg #57128 - Ignore nikoschopen |
11/28/2007 7:20:52 PM
The column labeled "macross" should tell you how many time within the past 60 days the two crossovers occured.
|
freshpotato 36 posts msg #57152 - Ignore freshpotato |
11/29/2007 7:51:00 AM
Great!
Thanks a lot
|
TheRumpledOne 6,411 posts msg #57158 - Ignore TheRumpledOne modified |
11/29/2007 9:21:36 AM
Simple math trick.
If either count is ZERO, then the result is 0.
If both are ONE, then the result is 1.
Don't need to display the column because it will ALWAYS be 1!!
HTH.
|
nikoschopen 2,824 posts msg #57163 - Ignore nikoschopen |
11/29/2007 11:54:56 AM
TRO,
Just for the clarification, the poster already knew that. What he did want to know was how many times those two crossovers occured within the previous 60 days.
HTH
|