Announcement

Collapse
No announcement yet.

eXAMPLE alarm

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

  • eXAMPLE alarm

    Hello, I created this EFS thru the Wizard. I did EFS check, and it did not flag anything wrong.

    However, I do not get any alert at all. The alert command seems correct.

    What am I doing wrong? Below is a portion of the EFS.


    Thanks.

    Phil

    //{{EFSWizard_Expressions

    if (
    volume() >= 10000
    ) onAction1();
    //}}EFSWizard_Expression_1
    }
    //{{EFSWizard_Action_1
    function onAction1() {
    Alert.addToList(getSymbol(), "Volume > 10000", Color.RGB(0,0,0), Color.RGB(195,0,0));
    vLastAlert = 1;
    }
    The future is ours to grab.

  • #2
    Phil
    Can you post the whole code (or attach the efs).
    Also what symbol and interval do you have in the chart?
    Alex

    Comment


    • #3
      Hi Alex,

      Here's the code. The symbols is ES #F, 1 minute interval.

      Hope this helps. Pls. let me kno wif you need anything else.

      Phil


      //{{EFSWizard_Description
      //
      // This formula was generated by the Alert Wizard
      //
      //}}EFSWizard_Description


      //{{EFSWizard_Declarations
      var vLastAlert = -1;
      //}}EFSWizard_Declarations


      function preMain() {
      /**
      * This function is called only once, before any of the bars are loaded.
      * Place any study or EFS configuration commands here.
      */
      //{{EFSWizard_PreMain
      setPriceStudy(true);
      setStudyTitle("Volume Alert");
      //}}EFSWizard_PreMain

      }

      function main() {
      /**
      * The main() function is called once per bar on all previous bars, once per
      * each incoming completed bar, and if you don't have 'setComputeOnClose(true)'
      * in your preMain(), it is also called on every tick.
      */

      //{{EFSWizard_Expressions
      //{{EFSWizard_Expression_1
      if (
      volume() >= 10000
      ) onAction1();
      //}}EFSWizard_Expression_1

      //}}EFSWizard_Expressions


      //{{EFSWizard_Return
      return null;
      //}}EFSWizard_Return

      }

      function postMain() {
      /**
      * The postMain() function is called only once, when the EFS is no longer used for
      * the current symbol (ie, symbol change, chart closing, or application shutdown).
      */
      }

      //{{EFSWizard_Actions
      //{{EFSWizard_Action_1
      function onAction1() {
      Alert.playSound("C:\\eSignal\\Sounds\\Volume Alert.wav");
      Alert.addToList(getSymbol(), "Volume > 10000", Color.RGB(0,0,0), Color.RGB(195,0,0));
      vLastAlert = 1;
      }
      //}}EFSWizard_Action_1

      //}}EFSWizard_Actions
      The future is ours to grab.

      Comment


      • #4
        Phil
        As far as I can see at my end the efs is working fine and triggering the alerts. I did however need to lower the value of 10000 since the volume of ES on a 1 minute chart rarely crosses that threshold (today for example that occurred only at 10:00 and 13:10 Eastern Time)
        Alex

        Comment

        Working...
        X