Login Page - Create Account

Support Board


Date/Time: Thu, 06 Feb 2025 15:02:43 +0000



Post From: Indicator/Study Setup - Drawing levels based on High/Low Input

[2020-04-08 18:11:16]
User236528 - Posts: 3
Hello. I appreciate the assistance you provide when needed. I have a specific question to part of a strategy I trade an looking for assistance into getting these levels (lines) built into my chart.

I focus on the 30 second opening range on the ES and Crude. To do this I have a 30 sec bar chart and then it puts the High/Low for time period at those levels. I have it run from 8:30am CT until the next days session for ES and 8am for Crude. Essentially establishing that opening range.

From here I calculate what that range is (x). Then I look at what the levels for that x would be @ 1:1, 2:1, 3:1, and 4:1 levels are above and below the range. Those would be trading targets if you were to be long above opening range or short below the opening range. Essentially I want to look to automating this but what I want to setup is the following.

Once the Opening range is established in the first 30 seconds. I would like to have those levels of 1-4x established above and below. Then have it automatically repeat each day on the new 30s opening range. Once that is created I can go in and change the line style and colors, but want it extending as to the right to the next days open. That way I can easily look at a chart and know those targets and look at the end of the day if they are hitting targets around the open.

Are you able to point me in the direction of coding this or code it for me? I do not think it is difficult to do but never have done it.

I appreciate any help you can provide. Thank you for your continued support.

Examples of entries today (range and then the targets). I add 2 ticks as entry would be one tick out of range and then stop would be another tick.

ES  
30 s High  2685.00
30 s Low  2676.75
Range  8.25
Range + 2 ticks  8.75
Stop - pts  8.75
p1  8.75
p2  17.50
p3  26.25
p4  35.00
  
Long Entry  2685.25
Stop  2676.50
P1  2694.00
P2  2702.75
P3  2711.50
P4  2720.25
  
  
Short Entry  2676.50
Stop  2685.25
P1  2667.75
P2  2659.00
P3  2650.25
P4  2641.50