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 ----- 
  From: Louis Préfontaine 
  To: [email protected] 
  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 <[EMAIL PROTECTED]>:


    It is possible. Just overwrite close array;

    Tmp = C;

    C = your array
    ..here any indicator

    C = Tmp;

    Best regards,
    Tomasz Janeczko
    amibroker.com
      ----- Original Message ----- 
      From: Louis Préfontaine 
      To: [email protected] 
      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 <[EMAIL PROTECTED]>:

        Thanks!

        It works well.

        Louis


        2008/7/14 Barry Scarborough <[EMAIL PROTECTED]>: 


          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 [email protected], "Louis Préfontaine" <[EMAIL 
PROTECTED]> 
          wrote:


          >
          > Hi,
          > 
          > Easy question here: how to write the RSI of a foreign ticker?
          > 
          > Thanks,
          > 
          > Louis
          >








   

Reply via email to