Edit: I rigged a smaller example so you can reproduce it if you want.
I have a OHLC XTS table I'm using (of Euro/$)
> theBars
Open High Low Close
2014-06-17 01:42:26 13835 13836 13835 13836
2014-06-17 01:42:59 13836 13838 13835 13837
2014-06-17 01:43:21 13837 13838 13837 13837
2014-06-17 01:43:51 13837 13837 13837 13837
2014-06-17 01:44:23 13837 13837 13837 13837
2014-06-17 01:44:51 13837 13838 13837 13838
2014-06-17 01:45:28 13837 13840 13837 13840
2014-06-17 01:45:59 13840 13842 13840 13842
2014-06-17 01:46:22 13842 13843 13842 13843
2014-06-17 01:46:58 13843 13844 13843 13844
2014-06-17 01:47:29 13843 13844 13843 13843
2014-06-17 01:47:58 13843 13843 13841 13843
2014-06-17 01:48:22 13843 13843 13842 13843
2014-06-17 01:48:59 13843 13843 13842 13842
2014-06-17 01:49:05 13842 13842 13841 13841
2014-06-17 01:49:54 13841 13841 13840 13841
2014-06-17 01:50:18 13841 13841 13841 13841
2014-06-17 01:50:44 13840 13840 13839 13840
2014-06-17 01:52:55 13839 13839 13838 13839
2014-06-17 01:53:42 13838 13839 13838 13838
2014-06-17 01:54:22 13837 13838 13837 13838
2014-06-17 01:54:58 13837 13838 13836 13837
2014-06-17 01:55:29 13836 13836 13834 13835
2014-06-17 01:55:59 13835 13837 13835 13837
2014-06-17 01:56:28 13837 13839 13837 13838
2014-06-17 01:56:59 13838 13838 13837 13837
2014-06-17 01:57:29 13837 13838 13837 13838
2014-06-17 01:57:59 13838 13838 13838 13838
2014-06-17 01:58:29 13838 13838 13836 13837
2014-06-17 01:58:58 13837 13837 13836 13836
2014-06-17 01:59:29 13836 13841 13836 13840
2014-06-17 01:59:59 13840 13840 13835 13837
2014-06-17 02:00:29 13837 13837 13836 13836
2014-06-17 02:00:58 13836 13836 13835 13836
2014-06-17 02:01:29 13835 13837 13835 13837
2014-06-17 02:01:58 13837 13837 13836 13836
and I'm plotting points on it with
points.default(x=timeIndex*tMult+1, #aligns with tMult = 3 when candles are candles, 1 when they are matchsticks
y=as.numeric(dataCol[i]), #the price, its around 13818
cex=dotSize,
pch=dotType,
col=thecolor)
Which works as intended. In this example, here are the values
x y cex pch col
"19" "13841" "2" "2" "green"
x y cex pch col
"19" "13841" "3" "2" "#7070FF"
x y cex pch col
"19" "13841" "4" "2" "#7070FF"
(The center of each point is the same because it was multiple trades at one price at the same time) I'm also graphing some technical indicators with
plot(addMACD(fast,slow,signal,maType,histogram))
and
plot(addSMA(n,overlay = overlay))
etc. which also work as intended just using the default values.
If I do a technical which overlays the technical onto the graph like bbands and SMA, the points can be graphed simultaneously. However, if I have a plot like MACD which is in a separate box that segregates the graph into two graphs in the same plot window, I can no longer plot the points. Why?!