Announcement

Collapse
No announcement yet.

Multithreading

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multithreading

    Hi
    I repeat some questions asked a few months ago, in hope of further development:
    35. How can I run the Same efs, simultaneously on different charts (broker is IB, chart is esignal)?
    Different Charts meaning Same security/future/emini and different time frames, or Different securties/futures?
    36. If I run efsA on chart 1, end efsB on chart2, where the only difference between efsA and B, is that efsB is efsA with renamed globals and functions, will that be ok?
    Any other hints for this solution?
    Obviously, this later solution is less prefered if there is another solution available.
    37. In the above case:
    - do I have to rename efsB to not have the same file name as efsA?
    - Can I run efsB in paralel with efsA, and edit my input parameters to be different? I mean editing on esignal chart, not the defaults in code.
    38. Can I run the Same efs, connected to two different IB accounts?
    If yes, then how?
    39. Does EFS2 provide any solutions for the above problems?
    If not, then is anything planned for the next release?
    Many thanks
    Arie

  • #2
    My Answers..

    35. How can I run the Same efs, simultaneously on different charts (broker is IB, chart is esignal)?
    Different Charts meaning Same security/future/emini and different time frames, or Different securties/futures?

    -- Generally, you have to design the second EFS (if it is to fire triggers to the first), to communicate to the first EFS (using global variables). This process requires development/testing of the two EFS files.

    If your second EFS is simply going to run on another chart (same symbol), then you probably need to add some logic to make sure EFS1 is not firing counter orders to EFS2. In other words, make them SYNC.

    36. If I run efsA on chart 1, end efsB on chart2, where the only difference between efsA and B, is that efsB is efsA with renamed globals and functions, will that be ok?

    -- Could be OK. But it depends on the situation. If both charts are the same symbol, then you could get contradicting orders from both EFS files. Thus, you still need to SYNC the two EFS files.

    Any other hints for this solution?

    -- The only solution I know of is to use global variables to SYNC the two files.

    Obviously, this later solution is less prefered if there is another solution available.

    37. In the above case:
    - do I have to rename efsB to not have the same file name as efsA?

    -- I would rename them to make sure "I knew" which file was WHAT".

    - Can I run efsB in paralel with efsA, and edit my input parameters to be different? I mean editing on esignal chart, not the defaults in code.

    -- Yes, you can run them "in parallel" - or concurrently. Using two files is the best solution because you can control EFS1 differently from EFS2 and also control all of the "essentials" of the EFS operation.

    38. Can I run the Same efs, connected to two different IB accounts?

    -- Not yet. I believe this is in the works - but you'll have to wait for Jason to provide information.

    If yes, then how?

    39. Does EFS2 provide any solutions for the above problems?
    If not, then is anything planned for the next release?

    -- EFS2 will allow you to probably do some of the work of your second EFS file (indicators and price patterns).... But a total solution (depending on complexity) might be to use two files.

    Hope this helps..
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      Re: Multithreading

      Hello Arie,

      Originally posted by arieal
      Hi
      I repeat some questions asked a few months ago, in hope of further development:
      35. How can I run the Same efs, simultaneously on different charts (broker is IB, chart is esignal)?
      Different Charts meaning Same security/future/emini and different time frames, or Different securties/futures?
      You just simply apply the EFS to each chart separately.

      36. If I run efsA on chart 1, end efsB on chart2, where the only difference between efsA and B, is that efsB is efsA with renamed globals and functions, will that be ok?
      Any other hints for this solution?
      Obviously, this later solution is less prefered if there is another solution available.
      37. In the above case:
      - do I have to rename efsB to not have the same file name as efsA?

      It is not necessary to have to rename the file or its code elements. When you apply a formula to a chart multiple times or to multiple charts, each instance of the EFS will have it's own unique instance of the globals (assuming you're not using setGlobalValue()/getGlobalValue()). The execution of one instance of the EFS code will not affect the others.

      - Can I run efsB in paralel with efsA, and edit my input parameters to be different? I mean editing on esignal chart, not the defaults in code.

      Yes. Each study will have it's own set of study parameters in the Edit Studies option.

      38. Can I run the Same efs, connected to two different IB accounts?
      If yes, then how?

      No. EFS does not currently have the ability to specify a specific account. It sends information to whatever default broker is specified under the Trade-->Preferences menu. To have this ability considered for future development, please feel free to submit a request to [email protected].

      39. Does EFS2 provide any solutions for the above problems?
      If not, then is anything planned for the next release?
      Many thanks
      Arie
      No it does not. To the best of my knowledge, any new EFS features will be developed in the 8.0 version. It is not completely determined at this point in time what those will be.
      Jason K.
      Project Manager
      eSignal - an Interactive Data company

      EFS KnowledgeBase
      JavaScript for EFS Video Series
      EFS Beginner Tutorial Series
      EFS Glossary
      Custom EFS Development Policy

      New User Orientation

      Comment


      • #4
        Multthreading

        Jason and Brad,
        thanks very much for your time and information.

        40. From your responses, I conclude that's safe to run the Same efs, simultaneously, let's say one efs on AB 10 min chart and the same efs on EUR 8 min chart (i.e. different securities), connected to the Same IB Account.

        Each efs might have a different input parameter setup.

        41. The problem of running the Same efs, simultaneously on AB 10 min and AB 8 min (in the same IB account) might be solved (temporarily) by just trading as mentioned, i.e. Same efs running on an AB 10 min chart and on an 8 min chart in the same time.

        When the signal of 8 min chart for example offsets the signal of the 10 min chart, I need some logic (as Brad mentioned) to deal with the situation when the 10 min gives a signal in the direction of the 8 min, then I need to re-enter a double lot in the direction of 8 and 10 min.
        I know traders using this approach to trade the same future, in multiple charts, in the same account.
        I was told that the price is approx 10% in lost performance.

        Any input to this?
        Many thanks
        Arie

        Comment


        • #5
          Hello Arie,

          40. Yes, correct.

          41. ...10% in lost performance. I don't think that is an accurate assumption to make. The real answer depends on the specific code in question. If it contains some process intensive code, that alone could be the source of any performance issues. Running multiple copies of such a study probably would result in some increased amount of lost performance, but it's difficult to say in general terms that it would be 10% for any set of code or machine it’s running on.
          Jason K.
          Project Manager
          eSignal - an Interactive Data company

          EFS KnowledgeBase
          JavaScript for EFS Video Series
          EFS Beginner Tutorial Series
          EFS Glossary
          Custom EFS Development Policy

          New User Orientation

          Comment

          Working...
          X