I coded this strategy, but it seems there are differences on the charts, on AAPL the Daily chart reports CLOSE as a price, while last the 5-Minute bar of the day reports a different price, though it is the same instrument and day (the closing price should be the same for all candlesticks that close when the Daily candle closes).
Any idea why?
IF BarIndex = 0 THEN
IeriO = open
IeriH = high
IeriL = low
IeriC = close
OggiO = open
OggiH = high
OggiL = low
OggiC = close
ENDIF
IF (OpenTime = 000000) OR ((OpenTime >= 000000) AND (OpenTime[1] > OpenTime)) THEN
IeriO = OggiO
IeriH = OggiH
IeriL = OggiL
IeriC = OggiC
OggiO = open
OggiH = high
OggiL = low
ENDIF
OggiC = close
OggiH = max(OggiH,high)
OggiL = min(OggiL,low)
buy at -close limit
GRAPHONPRICE IeriO coloured(0,0,0,255) AS "O"
GRAPHONPRICE IeriH coloured(0,255,0,255) AS "H"
GRAPHONPRICE IeriL coloured(255,0,0,255) AS "L"
GRAPHONPRICE IeriC coloured(0,0,0,255) AS "C"
graph IeriC
graph OggiC
Dear Robertogozzi,
In order to allow us to analyze your platform, please send us a technical report by following these instructions:
- As soon as you encounter the issue, go to the “Help” menu on the ProRealTime toolbar.
- Please assure that the window concerned by this issue is open.
- Click on “Help center”, then on “I have a technical problem”
- Choose the category “Data”
- Select the window concerned that you are referring to.
- Give as many details as possible, explain the issue you are having in the text box
- Click “Send report”
This will send us a report containing technical information concerning your platform, which will allow our technical team to run a diagnostic analysis of the issue you have come across.
Many thanks in advance,
Vonasi from ProRealCode (sorry I couldn’t help myself I just had to post it!) 🙂 🙂 🙂
IG already replied and asked for a screenshot.
IG already replied and asked for a screenshot.
…don’t be in a rush to send it to them otherwise you might trip over the cat on the spiral stairs and break your arm?
Hello Roberto,
I have observed this on equity indices as well. As an example tradingview is posting at least two different closing prices for the SPX (S&P 500) right now. Yesterdays bars are in line by now.
I think this is caused by after hour activity with the daily bar being updated faster than the intraday bar. Waiting helps and yes, I make no sensitive decisions right on the daily close.