texas_ranger
New member
# sorry for the "an" and not "a" in the title
I'm trying to retrieve the market open at 9:30 not 4. I've seen people use
def stock_price_open = open(period = aggregationPeriod);
this can be plotted but plots a horizontal line that can't be be used with math
for example
def lastprice = close(priceType = priceType.LAST);
^ the above plots the last closing price of the ticker I have open
although when I try and subtract "lastprice" from "stock_price_open" it return the horizontal line not a moving line
plot last_m_open = lastprice - stock_price_open;
how can I retrieve the market open price that can be manipulated
I'm trying to retrieve the market open at 9:30 not 4. I've seen people use
def stock_price_open = open(period = aggregationPeriod);
this can be plotted but plots a horizontal line that can't be be used with math
for example
def lastprice = close(priceType = priceType.LAST);
^ the above plots the last closing price of the ticker I have open
although when I try and subtract "lastprice" from "stock_price_open" it return the horizontal line not a moving line
plot last_m_open = lastprice - stock_price_open;
how can I retrieve the market open price that can be manipulated