Display Open as a horizontal ray extended Right


Category:
0
0

Hi Pete,

i would like to create a study to plot a horizonal ray extended to the right for the Open price at 10am and 11am with Inputs to change time/color/style width. Any help is appreciated. Thank you

Marked as spam
Posted by (Questions: 12, Answers: 1)
Asked on September 12, 2020 12:03 pm
69 views
0
Private answer

input timeOne = 1000;
input timeTwo = 1100;
def openOne = SecondsTillTime(timeOne) == 0;
def openTwo = SecondsTillTime(timeTwo) == 0;
rec trackOpenOne = if openOne then open else trackOpenOne[1];
rec trackOpenTwo = if openTwo then open else trackOpenTwo[1];
plot firstOpen = trackOpenOne;
plot secondOpen = trackOpenTwo;

Changing plot styles is built-in. No code needed for styling plots.

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on September 12, 2020 2:34 pm