Announcement

Collapse
No announcement yet.

what is code to turn off update every tick for indicator

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

  • what is code to turn off update every tick for indicator

    okay, i'm finally getting this efs thing.

    how can i code an indcator so it will not update every tick, and where the the global update every tick checkbox in eignal.

    thanks

  • #2
    mclargo

    The global setting is available at Tools->EFS Settings, then check Make all formulas compute on close in the Performance section.

    The local function is setComputeOnClose() and goes in preMain()

    Alex

    Comment


    • #3
      Alex, again many thanks. You add too much value to this list.

      Comment


      • #4
        Alexis, I changed a script to compute on Close only by using "setComputeOnClose()" in preMain() just as you suggested, but then the Alert.addToList and Alert.playSound functions in my script ceased working. What are some ways to fix this?

        Comment


        • #5
          I think this is the exact problem I have been having with Alert.toList

          Comment


          • #6
            aardvark
            A very tentative first guess would be that the conditions could somehow no longer be true (or anyhow different) at the close of the bar.
            Alex
            Last edited by ACM; 04-01-2003, 04:01 PM.

            Comment


            • #7
              if(bar=="red" && barOld!="red"&&arrow!="short"){
              setPriceBarColor(Color.yellow);
              //Alert.playSound("C:\\Program Files\\eSignal\\Sounds\\Ding.wav")
              Alert.addToList(getSymbol(), "ShortEntrySignal", Color.RGB(0,0,0), Color.RGB(195,0,0))
              barr=barr+1;
              arrow="short";
              bar="yellow";
              //if(getCurrentBarIndex()==0)
              debugPrintln("ShortEntrySignal");
              drawShapeRelative(0, low()-0.25, Shape.RIGHTARROW, "", Color.RGB(255,251,240), Shape.LEFT, barr)
              }

              the shape gets drawn, the debugprintln works and the other stuff seems to work fine, just no alert.

              Comment


              • #8
                Do you have the latest beta release? I know this used to be a bug (alerts not working with ComputeOnClose() set), but I think it was fixed (not sure in which release).

                Maybe someone from eSignal can provide these details?
                Garth

                Comment


                • #9
                  running build 571

                  Comment


                  • #10
                    running esignal 7.2 Release (1/27/03) here with esignal build 544

                    The build notes "readme.txt" indicate that an attempt was made to fix some ComputeOnClose issues. But in the same build notes it is mentioned that Alert.addToList and Alert.playSound are New EFS Features. I suspect that they somehow got overlooked in the ComputeOnClose fix. Can someone escalate this to the appropriate esignal software test personnel, or maybe there is a newer build with the fix?

                    Comment


                    • #11
                      This efs controls the tick by tick AND end of bar alert function. Maybe a work around until the local setComputeOnClose() operates peacefully with Alet.addToList

                      function preMain() {
                      setPriceStudy(true);
                      setStudyTitle("");
                      //Local setComputeOnClose();
                      //Global setComputeOnClose() OFF
                      //see Tools, EFS Settings, Make all ...
                      }

                      function main() {
                      if(getBarState()==BARSTATE_NEWBAR){
                      debugPrintln("testYES");
                      Alert.addToList("ES M3", "YES new bar", Color.black, Color.lime);
                      }
                      if(getBarState()!=BARSTATE_NEWBAR){
                      debugPrintln("testNOT");
                      Alert.addToList("ES M3", "NOT new bar", Color.black, Color.red);
                      }
                      return;
                      }
                      Attached Files

                      Comment

                      Working...
                      X