I created a simple study referencing SPY to show the close price on another chart. Here is the script:
plot altPrice = close ("SPY");
When I display this study on another ticker's price chart (QQQ), it displays gaps within the blue line in the lower area (which I believe indicates that it's registering the parameter as Not a Number for those time intervals, i.e. IsNaN).
You can see what I'm referring to by looking at the gaps in the blue line in the study in the lower area:
However when I display the same study with SPY in the upper Price area. it functions formally, what the heck is going on here? The gaps disappear!! I can't figure it out as the study is linked to "SPY" and shouldn't be contingent on what ticker is in the upper area.
Would you or anyone else be able to answer?
You said: “not all stocks have trades during the same time periods, especially in after hours. no trades, no candle. no candle, no price data to read.”
As I understand, both blue lines should be showing the same SPY close data. If the line is continuous without any gaps for the second image, shouldn’t it be the same for the first image? When I identified a gap in the first chart, I then checked the second chart to verify whether there were SPY trades for the time period, and I was able to verify that there is indeed a trade for the time period.
plot altPrice = close ("SPY");
When I display this study on another ticker's price chart (QQQ), it displays gaps within the blue line in the lower area (which I believe indicates that it's registering the parameter as Not a Number for those time intervals, i.e. IsNaN).
You can see what I'm referring to by looking at the gaps in the blue line in the study in the lower area:
However when I display the same study with SPY in the upper Price area. it functions formally, what the heck is going on here? The gaps disappear!! I can't figure it out as the study is linked to "SPY" and shouldn't be contingent on what ticker is in the upper area.
@halcyonguy yes, you are correct, your feedback is fair. I re-read what I wrote, and I could have been clearer. I've gone back and edited my post which hopefully makes my question more specific as to what I'm asking.'displays gaps, Not a Number'
neither chart is displaying numbers. they are displaying blue lines.
'Note the blue gaps in the link in the study in the lower area:'
there are no blue gaps. there are gaps in a blue line.
you need practice in writing what you see.
efficient communication results in more accurate answers.
--------
not all stocks have trades during the same time periods, especially in after hours. no trades, no candle. no candle, no price data to read.
Would you or anyone else be able to answer?
You said: “not all stocks have trades during the same time periods, especially in after hours. no trades, no candle. no candle, no price data to read.”
As I understand, both blue lines should be showing the same SPY close data. If the line is continuous without any gaps for the second image, shouldn’t it be the same for the first image? When I identified a gap in the first chart, I then checked the second chart to verify whether there were SPY trades for the time period, and I was able to verify that there is indeed a trade for the time period.
Last edited by a moderator: