Hello,
Either:
SetForeign(fname);
myMFI = MFI(periods), myc; //This is where
it is problematic RestorePriceArrays();
Or:
Temp1= Close;
Temp2 = Volume; // volume also needed for
MFI
Close = Foreign(fname,
"C");
Volume = Foreign(fname, "V myMFI =
MFI(periods); //This is where it is problematic
Close = Temp1;
Volume = Temp2;
Best regards, Tomasz Janeczko amibroker.com
----- Original Message -----
Sent: Wednesday, July 16, 2008 9:08
PM
Subject: Re: [amibroker] Re: Easy
question here
Hi Tomasz, Thanks for your personal response. I am
still not sure how to do it... and not sure to understand how you do the
trick. Here is what I tried to do: _SECTION_BEGIN("Foreign MFI");
Filename =
StrLeft(_DEFAULT_NAME(),StrLen(_DEFAULT_NAME())-2); _N(Title = filename +
StrFormat(" - {{DATE}} {{VALUES}} "));
// you can use a list like this
or import them from a watch list //fName = ParamList("Symbols",
"");
fname = GetBaseIndex();
//fname=MFI
(periods);
//fname = ParamStr("Symbol", Name() );
myC =
Foreign(fname, "C"); myMFI = MFI(periods), myc; //This is where
it is problematic
Plot(myMFI, "\n" + fName + " - MFI",
colorBlue);
_SECTION_END();What is wrong in this
code?Thanks, Louis
2008/7/16 Tomasz Janeczko < groups@xxxxxxxxxxxxx>:
It is possible. Just overwrite close array;
Tmp = C;
C = your array
..here any indicator
C = Tmp;
-----
Original Message -----
Sent:
Wednesday, July 16, 2008 7:56 PM
Subject:
Re: [amibroker] Re: Easy question here
BTW, is it possible to do this with other indicators,
considering I think only RSI has RSIa... I'd like to do the same
with MFI and other indicators, but not sure how to do
it. Thanks, Louis
2008/7/16 Louis Préfontaine < rockprog80@xxxxxxxxx>:
Thanks! It works well. Louis
2008/7/14 Barry Scarborough < razzbarry@xxxxxxxxxxxx>:
This is one way to do it, Barry
_SECTION_BEGIN("Foreign
RSI");
Filename =
StrLeft(_DEFAULT_NAME(),StrLen(_DEFAULT_NAME())-2); _N(Title =
filename + StrFormat(" - {{DATE}} {{VALUES}} "));
// you can
use a list like this or import them from a watch list fName =
paramlist("Symbols", "IBM,BA,DD,DDM"); perRsi = param("RSI period",
12, 2, 50, 1); myC = foreign(fName, "C"); myRSI = RSIa( myC,
perRsi );
plot(myRSI, "\n" + fName + " - RSI", colorblue);
_SECTION_END();
-- In amibroker@xxxxxxxxxxxxxxx, "Louis Préfontaine"
<rockprog80@xxx> wrote:
> > Hi, > > Easy question here: how to
write the RSI of a foreign ticker? > > Thanks, >
> Louis >
__._,_.___
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
__,_._,___
|