|
Periods for Rebound |
|
The following describes the variables used in the query:
Query: LET ATTR xvar = Close of DJIA on previous { DJIA is exactly 2 year highest of DJIA } SHOW Close: DJIA Mv2High: move from Days2 days ago to DaysDown days ago of DJIA Mv210pct: DaysDown day move of DJIA Mv2Bot: move from DaysDown days ago to DayBot days later of DJIA Mv10pct2Bot: move from today to DayBot days later of DJIA Mv10pct2Rec: move from today to Recover days later of DJIA Bot2Rec: move from DayBot days later to BotRec days later of DJIA Tot.Days: move from DaysDown days ago to BotRec days later of DJIA
WHEN Close of DJIA is DEFINED AND Date is after 1953 AND percent_move from { DJIA is exactly 2 year highest of DJIA } to today of DJIA crosses below -10 AND xvar is not exactly xvar on previous { percent_move from { DJIA is exactly 2 year highest of DJIA } to today of DJIA crosses below -10 } AND yvar = percent_move from { 2 year highest of DJIA is exactly DJIA } to today of DJIA AND DaysDown = periods_in_range from { DJIA is exactly 2 year highest of DJIA } to today AND Recover = periods_in_range from today to { DJIA is exactly 2 year highest of DJIA } AND Total = periods_in_range from previous { DJIA is exactly 2 year highest of DJIA } to { DJIA is exactly 2 year highest of DJIA } AND Days2 = periods_in_range from previous { percent_move from { DJIA is exactly 2 year highest of DJIA } to today of DJIA crosses below -10 } to today AND DayBot = periods_in_range from previous { DJIA is exactly 2 year highest of DJIA } to next { lowest from today to Recover days later of DJIA is exactly DJIA } 1 day ago AND BotRec = periods_in_range from (DayBot - DaysDown) days later to { DJIA is exactly 2 year highest of DJIA } AND Bottom2 = IF DayBot is exactly DaysDown THEN yvar ELSE percent_move from previous { DJIA is exactly 2 year highest of DJIA } to next { lowest from DaysDown days ago to Total days later of DJIA is exactly DJIA } of DJIA ENDIF
|