couponsliner.blogg.se

Priceline pricetracker
Priceline pricetracker










priceline pricetracker

#def c = if !IsNaN(close) and IsNaN(close)ĭef high1 = if barnumber() = 1 then high # in this case, pricedata > ", color.cyan) Īddlabel(test1_all_data, "low line " + lowline, color.yellow) Īddlabel(test1_all_data, "The gray bubbles are before the condition.", ay) Īddlabel(test1_all_data, "The cyan bubbles are during the condition.", color.cyan) Īddlabel(test1_all_data, "The green bubble is at the Lowest", een) Īddchartbubble(test1_all_data, high*( if (enable1 and lowline = pricedata) then 1.04 else 1.02), bn + "\n" + round(pricedata, 2) + "\n" + round(lowline, 2), (if (enable1 and lowline = pricedata) then een else if enable1 then color.cyan else ay), yes) Īddchartbubble(((test2_single_bubble or test1_all_data) and enable1 and lowline = pricedata), low*0.994, "BN: " + bn + "\n" + round(pricedata, 2) + "\n$" + round(lowline,2), een, no) Īddlabel(!test1_all_data and !test2_single_bubble, "Lowest: " + lowline, een) # if looking for a highest value, initialize with a small number. # if looking for a lowest value, initialize with a big number. # draw a vertical line when the condition changes to trueĪddverticalline(( !enable1 and enable1), "START", color.light_gray) # this example looks at data after barnumber 540ĭef enable1 = (cond1 or disable_start_condition_use_all_bars) # add a start condition, that stays true, to define when to read data Input disable_start_condition_use_all_bars = yes Īddlabel( !disable_start_condition_use_all_bars, "NOT USING ALL BARS", color.cyan) # disable the start condition and use all the chart bars to find a value # some number that is greater than the number of bars on the chart # it uses a large negative offset, to look at values after the lastbar. # this example code: find the lowest low on the chart, and draw a horizontal line, without using lowestall(). I like to explain things, sorry if this is a little wordy. I added comments to describe what each section is doing. cyan bubbles are during the condition being true. gray bubbles are before the condition and ignored. draws bubbles with barnumber, low, and the lowest price. draws a label that explains the bubble colors. To use all of the bars on the chart and ignore the condition, set this to yesĭisable_start_condition_use_all_bars = yes

priceline pricetracker

# the preceding bars will have na and no line drawn # if a small number is used, then only the last 'barsBack' quantity of bars on the chart will have a line. # draw a line at the lowest low, without using lowestall() # Alternative to using the HighestAll() function












Priceline pricetracker