[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?



PureBytes Links

Trading Reference Links

Sending keystrokes would not be any faster than file based data transfer but surely less reliable.

If you are after BT/Explore just modify the FORMULA itself (set up some markers so you can easily parse the file,
this technique is used by IO, as far as I know). It is easy because AmIBroker automatically re-reads formula
if you call Backtest/Explore via automation.

Best regards,
Tomasz Janeczko
amibroker.com
  ----- Original Message ----- 
  From: Mark H 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, August 06, 2006 6:19 PM
  Subject: Re: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?


  Thanks for all these ideas! (I haven't tried to flap my arms yet :-)
  The AutoIT/ActiveX way takes more time since I am not familiar with VB.
  A DLL plugin or ODBC is overkill for my purpose.
  So I just used a plain file to transfer the parameters. To speed things up, I use static variables in the formula to control file access and cache values, so that it only needs to read the file once at the beginning of BT/Explore.

    ----- Original Message ----- 
    From: dingo 
    To: amibroker@xxxxxxxxxxxxxxx 
    Sent: Sunday, August 06, 2006 10:48 AM
    Subject: RE: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?



    you could also fly if you flap your arms fast enough..

    d



--------------------------------------------------------------------------
      From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Tomasz Janeczko
      Sent: Sunday, August 06, 2006 10:46 AM
      To: amibroker@xxxxxxxxxxxxxxx
      Subject: Re: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?


      Or... you can write a DLL plugin.
      Or... write an Active X
      Or... store your "dynamic" values in database and access them via ODBC plugin 

      Best regards,
      Tomasz Janeczko
      amibroker.com
        ----- Original Message ----- 
        From: dingo 
        To: amibroker@xxxxxxxxxxxxxxx 
        Sent: Sunday, August 06, 2006 4:37 PM
        Subject: RE: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?


        The way you describe is not that bad actually. 

        A more efficient way would be to use "AutoIT"  www.autoit.com  to click the buttons for you and enter the text.  It has an activeX component as well as a dll that you could use within your script or you could call an exe that it can build.

        d



----------------------------------------------------------------------
          From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Mark H
          Sent: Sunday, August 06, 2006 12:05 AM
          To: amibroker@xxxxxxxxxxxxxxx
          Subject: Re: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?


          Thanks dingo:

          I am wondering what's the best way to pass parameters to a formula dynamically from JScript.
          A way to do it is through a file: the script writes some dynamic values to a file and the AFL formula will reads and parses the file.
          However, this would be slow and cumbersome. 
          Any suggestion will be appreciated,

          - Mark

            ----- Original Message ----- 
            From: dingo 
            To: amibroker@xxxxxxxxxxxxxxx 
            Sent: Saturday, August 05, 2006 11:04 PM
            Subject: RE: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?



            No.

            d



------------------------------------------------------------------
              From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxxx] On Behalf Of Mark H
              Sent: Saturday, August 05, 2006 11:01 PM
              To: amibroker@xxxxxxxxxxxxxxx
              Subject: [amibroker] OLE automation: How to set Param/ParamStr/ParamDate value?


              I am writing an automation script but couldn't find a way to set values for Param/ParamStr/ParamDate etc. I can only use their default values.
              Is there a way to set their values in JScript?
              Thanks,

              - Mark


              --
              No virus found in this incoming message.
              Checked by AVG Free Edition.
              Version: 7.1.394 / Virus Database: 268.10.7/409 - Release Date: 8/4/2006





          --
          No virus found in this incoming message.
          Checked by AVG Free Edition.
          Version: 7.1.394 / Virus Database: 268.10.7/410 - Release Date: 8/5/2006




      --
      No virus found in this incoming message.
      Checked by AVG Free Edition.
      Version: 7.1.394 / Virus Database: 268.10.7/410 - Release Date: 8/5/2006