Announcement

Collapse
No announcement yet.

AlertOncePerBar.efs

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

  • AlertOncePerBar.efs

    File Name: AlertOncePerBar.efs

    Description:
    Demonstrates how to allow an alert to be triggered only once per bar.

    Formula Parameters:


    Notes:


    Download File:
    AlertOncePerBar.efs

    Image:
    N/A


    EFS Code:
    PHP Code:
    /*********************************
    Provided By : eSignal. (c) Copyright 2003
    *********************************/
    var vFlag false;

    function 
    main() {
        if (
    getBarState() == BARSTATE_NEWBAR)
            
    vFlag false;
        
        var 
    vData1 5;
        var 
    vData2 1;
        
        if (
    vData1 vData2 && vFlag == false) {
            
    Alert.playSound("train.wav");
            
    setBarBgColor(Color.yellow);
            
    vFlag true;
        }
        
        return;

    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
Working...
X