burnbrain123
New member
I have the following script:
When the line is plotted how can I have a text to the line? Similar to this screenshot . I tried few with Label and Bubble but cant make it work.
Code:
def MarketOpenPrice = if SecondsFromTime (0930) == 0 && SecondsTillTime(0930) == 0 then open else marketopenprice[1];
input showtodayonly = yes;
plot Opening_Price = if showtodayonly
then (if getday()==getlastday() and
SecondsFromTime (0930) >= 0 and
SecondsFromTime(1800) <= 0
then MarketOpenPrice
else Double.NaN)
else (if SecondsFromTime (0930) >= 0 and
SecondsFromTime(1800) <= 0
then MarketOpenPrice
else Double.NaN);