Announcement

Collapse
No announcement yet.

Alert on Close of Bar

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

  • Alert on Close of Bar

    I am getting alerts on intra-bar, this results in sometimes many alerts before the bar is closed.

    I am unable to find or work out how to get the alert to trigger only at the close of a price bar..

    Help appreciated

    thx
    Swan

  • #2
    Swan
    That is one thing you cannot do (for now) with the Formula Wizard.
    You need to open the EFS with the Editor then anywhere in the preMain() section write the following command

    setComputeOnClose();

    example

    preMain(){
    there may be code and other messages here
    setComputeOnClose();
    }

    This will instruct the EFS to provide signals only on the close of a bar
    Alex
    Last edited by ACM; 06-02-2003, 05:22 PM.

    Comment


    • #3
      Alex ..thx

      However i am getting a Syntax Error "invalid label".

      Definately typed it in Pre-main.
      Chose a blank line which highlighted in Yellow, and then i typed
      setComputeOnClose():

      Swan

      Comment


      • #4
        Here is a snapshot
        Attached Files

        Comment


        • #5
          Swan
          You used a colon ie : at the end of the command and it needs to be a semicolon ie ;
          Alex

          Comment


          • #6
            Have corrected from collon to semi..
            Working now.

            Many thx
            Swan

            Comment

            Working...
            X