Hi,
I have an unexplained issue when I use SetForeign. I am also using Norgate Data Updater Beta Plug Ins.
I have the following formula to plot a ribbon at the bottom of the screen. Basically, green if index $XAO is uptrend, red if downtrend:
SetForeign("$XAO.au");
Index_Uptrend = C > MA(C,60);
RestorePriceArrays();
Plot(1,"",IIf(Index_Uptrend,colorGreen,colorRed),styleOwnScale | styleArea, -0.5,100);
When I test it against the original index $XAO, it is showing the correct color. 1Aug-4Aug: Green,Green,Green,Red
When I test it against a stock code CBA, it is showing the correct color. 1Aug-4Aug: Green, Green, Green, Red
When I test it against a stock code ELD, it is showing the correct color. 1Aug-4Aug: Green, Green, Green, Red
However, when I test it against a stock code GEM, it is showing a different color even though the date is the same? 1Aug-4Aug: Green, RED, RED, Red
Shouldn’t it be the same as I am referencing the same foreign ticker at the same time frame?
Thank you for the help.
I have uploaded the video showing the issue.