Range yesterday between 3:30 p.m. and 10 p.m
Forums › ProRealTime English forum › ProOrder support › Range yesterday between 3:30 p.m. and 10 p.m
- This topic has 9 replies, 5 voices, and was last updated 1 year ago by phoentzs.
-
-
09/17/2023 at 8:49 AM #22115609/18/2023 at 10:00 AM #221199
There you go:
1234567891011121314ONCE HH = high //today's HIGHONCE LL = low //today's LOWONCE yHH = high //yesterday's HIGHONCE yLL = low //yesterday's LOWIF OpenTime >= 153000 AND OpenTime <= 220000 THENIF OpenTime = 153000 THENyHH = HHyLL = LLHH = highLL = lowENDIFHH = max(HH,high)LL = min(LL,low)ENDIF09/18/2023 at 2:19 PM #22121409/18/2023 at 3:39 PM #221218Range of 153000 22000012345678910111213ONCE HH = high //today's HIGHONCE LL = low //today's LOWIF OpenTime >= 153000 AND OpenTime <= 220000 THENIF OpenTime = 153000 THENHH = high // at 15h30 hh store the high of the 1st candleLL = low // at 15h30 hh store the low of the 1st candleENDIF// Every candle after 15h30 and before 22h00 update HH if High of the candle is higher than previous HHHH = max(HH,high)// Every candle after 15h30 and before 22h00 update LL if low of the candle is lower than previous LLLL = min(LL,low)ENDIFNow as you want the range of previous day, you want to store the range of the day in previous day variables before any updates of HH and LL, so it is first thing to do at 15h30
so you add this12yHH = HHyLL = LLNow you can draw 2 segmnents using yHH and yLL
1 user thanked author for this post.
09/18/2023 at 3:57 PM #22122009/18/2023 at 7:15 PM #22123409/18/2023 at 7:59 PM #221241I’ve read here below that : “If a trending stock makes a new high after 11:15-11:30am EST, there is a 75% chance of closing within 1% of High of day (HOD). Same applies for downtrend.”
https://fr.tradingview.com/script/j5fydEzi-Drip-s-11am-rule-breakout-breakdown-OG/
09/19/2023 at 8:21 AM #221253The If statement:
IF OpenTime >= 153000 AND OpenTime <= 220000 THENis ok if you want to include the candle starting at 22h in your range. In case you don’t (last candle before 22h as last candle of range), then the if statement becomes:
IF OpenTime >= 153000 AND OpenTime < 220000 THEN09/19/2023 at 10:42 AM #22126109/19/2023 at 10:58 AM #221263I tried with following logic in Nasdaq TF M15. But it doesn’t look really good.
1234Long = HH crosses over yHHLongex = close crosses under LL and Exit=1Short = LL crosses under yLLShortex = close crosses over HH and Exit=1 -
AuthorPosts