Announcement

Collapse
No announcement yet.

indicator updates every other bar

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

  • indicator updates every other bar

    I have an EFS that plot a calculated variable every other bar. If I reload the stud, the empty bars fill in.

    Where could the problem be? Why does the plotted value only get returned every other bar?

    I think I have something messed up with getCurrentBarIndex()=1 but not sure why thi would cause the variable to be discarded every other bar.
    Attached Files
    Last edited by dloomis; 11-26-2002, 04:57 PM.

  • #2
    indicator updates every other bar

    ok, I took the

    if(getCurrentBarIndex()==0)

    out and activated

    setComputeOnClose(true);

    Now when I change symbols the Formula Output Window prints after each bar is loaded into memory, but the study prints correctly.

    How do I turn off the updates during chart loading?

    Comment


    • #3
      indicator updates every other bar

      ok, took the indicator calcs and moved them up to the front and by passed all the debugPrintln's so they don't fire during a chart reload.

      Comment


      • #4
        Wow, the ultimate self-sustaining user!!!
        He asks the questions and answers them himself <VBG>
        Alex

        Comment


        • #5
          Re: Reply to post 'indicator updates every other bar'

          I still wish I understood the setComputeonClose(true/false) and
          getCurrentBarIndex()=0 or -1 and GetBarState and their interactions
          better....

          Any one got any hints.

          ----- Original Message -----
          From: "eSignal Bulletin Board Mailer" <[email protected]>
          To: <[email protected]>
          Sent: Tuesday, November 26, 2002 8:14 PM
          Subject: Reply to post 'indicator updates every other bar'


          > Hello dloomis,
          >
          > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          >

          Comment


          • #6
            Hi david, this was dealt with on another thread:

            http://forum.esignalcentral.com/show...urrentBarIndex

            If you want more info - let me know.
            Garth

            Comment


            • #7
              lines not executing

              debugPrintln("inMarket1= "+inMarket);
              if(inMarket=="SellStopPlaced")
              { debugPrintln("inMarket4= "+inMarket+SSL1+SSL2);
              ss1=dots5.call("GetOrderPrice",SSL1);
              debugPrintln("inMarket5= "+inMarket);
              ss2=dots5.call("GetOrderPrice",SSL2);

              The above prints inMarket1 ans inMarket4 but not inMarket5

              SSL1 was a market order defined just above.

              Any ideas why this wont run down to the inMarket5 line?

              Comment


              • #8
                indicator updates every other bar

                As I watch my indicator, I see a plot every other bar. I thought this was an efs coding mistake ( probably is) but now I also see that the indcators position on the chart moves to the left as new bars are added.

                In other words, the missed indicator plots are inserting extra spaces.

                Here are two pictures, before and after a symbol change. Note how the before chart has dots at the 925 level staring at 14:15 then there are many 'empty' indicators dots at 925. Thennotice when the chart is redrawn the dots realign at 925 starting at 14:40
                Attached Files

                Comment


                • #9
                  here is the after shot
                  Attached Files

                  Comment


                  • #10
                    David, we just corrected a related issue this AM. The issue is related to compute on close.

                    There will be a prebeta release later this week that contains this fix. In the meantime, you can correct this by removing any calls to "setComputeOnClose" from your formulas. If you still want COC on, goto Tools->EFS Settings and turn it on using the checkbox in there.

                    The issue only exists when you use the EFS function setComputeOnClose

                    m.
                    Matt Gundersen

                    Comment


                    • #11
                      gee, that works much better, thx for the heads up.

                      I turned off setComputeOnClose off in the tools, efs settings area also.

                      Comment


                      • #12
                        Re: Reply to post 'indicator updates every other bar'

                        oh, good.

                        But I think I have seen something else that is related.

                        The issue only seems to be prevalent when using PLOTTYPE_DOTS.

                        PLOTTYPE_LINES doesn't have the skewing I reported.

                        Does this correspond to your understanding?

                        PS I have had setComputeOnClose commented out and had the same issue.

                        ----- Original Message -----
                        From: "eSignal Bulletin Board Mailer" <[email protected]>
                        To: <[email protected]>
                        Sent: Tuesday, December 03, 2002 3:21 PM
                        Subject: Reply to post 'indicator updates every other bar'


                        > Hello dloomis,
                        >
                        > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                        >

                        Comment

                        Working...
                        X