Hi,
I am facing some difficulty in extracting Foreign Sym data (EOD data ) to my Intraday Chart. If someone can guide me where am I going wrong, it would be helpful.
Below Image Shows the EOD data stored for my Foreign Symbol (Synthetic Sym basically holding extra data in OI and AUX2 fields)
The data in OI field in above image is basically a date stored in Datenum format as defined by Amibroker. Now I am trying to fetch this data in my intraday chart. However I am not able to get the data.
Below is what I have tried so far. Please suggest where am I going wrong.
SetForeign("RelevantExp_Gap_" + Name());
TimeFrameSet(inDaily);
relvExp = OI;
TimeFrameRestore();
RestorePriceArrays();
relvExpExpanded = TimeFrameExpand( relvExp,inDaily);
ReqDate = Lookup(relvExpExpanded,LastVisibleValue( DateTime() ),-1);
ReqDate1 = DateTimeToStr(DateTimeConvert(2,ReqDate),4);
_TRACE("FSym => " + "RelevantExp_Gap_" + Name() + " | ReqDate => " + ReqDate + " | ReqDate1 => " + ReqDate1 + " | relvExpExpanded => " + relvExpExpanded + " | " );
Above code shows below in Trace Output Window
I want to get the data stored in the Foreign Symbol's OI field (EOD data) for the date which is same as my chart's last visible bar's date, in "yyyyMMdd" format for further usage. But when the last visible intraday data is that of 8th July, 2024, The trace output is not what I desire. Please suggest where is my code wrong.
Thanks,
Nandy