Announcement

Collapse
No announcement yet.

EFS Questions from z11

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #46
    Garth - did I get the correct answer though? i.e., was my understanding correct? it'd be good to know for future reference. Thanks.

    Comment


    • #47
      Z11,


      here are several links that have efs code posted which address the problem my best guess indicates you are having (say that three times fast ) :

      http://forum.esignalcentral.com/show...=&postid=55339

      http://forum.esignalcentral.com/show...&threadid=7070

      Comment


      • #48
        Z11,

        if (barIndex<0){
        ...Mycode...
        }


        Would execute all historical bars and (historical bars all have a negative index...and therefore less than zero) and not execute any current ticks (which == 0).

        G
        Garth

        Comment


        • #49
          Thanks Steve...after reading the source codes in both instances and posts in those threads, to my best understanding, they are not talking about the problem I am having....

          What I need is a daemon EFS ... which saves the state variables of the efs that produces final signal and manages positions and reloads that EFS on some threshold (time) points and feed that EFS of its own state variables....

          Is that doable - the daemon EFS?

          Comment


          • #50
            ok Garth, I got ahead of myself ... in my other EFS I used :

            if (nIndex<0) return;

            to block the EFS from executing while loading historical bars...which is what you are saying....thanks.

            Comment


            • #51
              The phenomenon I am observing is that the signal that efs gives is different from what it will show if it get reloaded...so I am thinking on the last tick of the bar that signal is not being updated but when reloaded the logic will take into consideration of that now historical bar and calculates the signal based on intended logic.
              Based on this description of your problem, and knowing nothing more than what you have provided, I can offer the following. When in Real Time, the first tick at the beginning of a new bar, this is true: close(0) == open(0) == high(0) == low(0).

              If you are using any of these values in your calculation, that is your problem, and the techniques used in the previously referenced efs's address this issue.

              Further clarifying information ==>> http://forum.esignal.com/showthread....&threadid=3286

              so I am thinking on the last tick of the bar that signal is not being updated
              Just a commentary, you never know when the last tick of a bar has come in, until the first tick of a new bar.

              Is that doable - the daemon EFS?
              Based on my interpretation of what you described, yes. If my memory serves me correctly, I believe bfry has used this technique before.

              Again, this represents my best guess at what your problem is and I am tapped out at this juncture.

              Comment


              • #52
                Another great insight, Steve...thanks....let me play with that notion in my code....

                bfry5282 ... if you happen to be reading this, would you point me to a reference of what you did in regard to the "daemon EFS" concept? I did a search under your user id and did not locate anything relating to that. Thanks.

                Comment


                • #53
                  z11 - Realtime EFS scripts..

                  If you are running into a problem where the analysis is being done on the RT bar (as it forms) and generating false signals, and you want to have your efs wait till the end of a bar before it triggers the trades, then...

                  you must wait for a new bar to form, then run your analysis on the previous bar. This creates a one tick delay, but it is how I accomplish this (and it prevents unwanted false signals).

                  B
                  Brad Matheny
                  eSignal Solution Provider since 2000

                  Comment


                  • #54
                    Gentlemen,

                    would you confirm my understanding of the following:

                    the bar status of NewBar only is TRUE on the very first tick of a new bar....subsequent call to barstatus will not return newbar for ticks beyond the first tick.

                    Thanks.

                    Comment


                    • #55
                      Hello z11,

                      Correct, only on the first tick of the bar does getBarState() return BARSTATE_NEWBAR. For every other tick during the bar, it returns BARSTATE_CURRENTBAR.
                      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


                      • #56
                        Thanks Jason.

                        Are there sound files (.wav) out there that actually pronounce a market's name ...such as SP500 or Dow, etc? which one can deploy with audio alerts?

                        Comment


                        • #57
                          Hello z11,

                          Not that I know of. You could make your own using the windows sound recorder. Just save the files to the \eSignal\Sounds\ folder.
                          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


                          • #58
                            Jason, you are a genius!!

                            Comment


                            • #59
                              Integrating Alert Buttons within an EFS

                              I was reading the sample AlertButtons EFS and am wondering if it is possible to integrate AlertBottons within an EFS....

                              Pressing a button is an asynchronous event which will disrupt the EFS's logic flow.... when the button function call is returned ...will it know to resume its logic from where it left it?

                              Any thoughts Gentlemen? ...this is not possible at all?

                              Comment


                              • #60
                                fascinating question z11

                                ... i am very interested in the answer to this - thanks for brining it up

                                Comment

                                Working...
                                X