Hello,
I use setforeign function and got confused with the results.
The AFL I used is as follows.
SetForeign("NIFTY-I");
tC = C;
YC=TimeFrameGetPrice("C",inDaily,-1); // Get yesterdays close price using this mehtod also.
y1c = Ref(C,-1);
RestorePriceArrays();
Filter = StrFind(Name(),"NIFTY");
AddColumn(yC,"Foreign YC - TFget function",1.2,IIf(tC >yc, colorGreen, colorRed));
AddColumn(y1C,"Foreign Yesterday-Close",1.2,IIf(tC >yc, colorGreen, colorRed));
AddColumn(tC,"Foreign today-Close",1.2,IIf(yC > Ref(yC,-1), colorGreen, colorRed));
when I run this afl over a watchlist The Close values of foreign symbol differs for few symbols. Why this deviation when the foreign symbol is the same?
Looking forward for your valuable guidance.
Regards,
BP
I use setforeign function and got confused with the results.
The AFL I used is as follows.
SetForeign("NIFTY-I");
tC = C;
YC=TimeFrameGetPrice("C",inDaily,-1); // Get yesterdays close price using this mehtod also.
y1c = Ref(C,-1);
RestorePriceArrays();
Filter = StrFind(Name(),"NIFTY");
AddColumn(yC,"Foreign YC - TFget function",1.2,IIf(tC >yc, colorGreen, colorRed));
AddColumn(y1C,"Foreign Yesterday-Close",1.2,IIf(tC >yc, colorGreen, colorRed));
AddColumn(tC,"Foreign today-Close",1.2,IIf(yC > Ref(yC,-1), colorGreen, colorRed));
when I run this afl over a watchlist The Close values of foreign symbol differs for few symbols. Why this deviation when the foreign symbol is the same?
Looking forward for your valuable guidance.
Regards,
BP