Announcement

Collapse
No announcement yet.

How I get alert?

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

  • How I get alert?

    Hi,

    I have been using the RealTimeSwings.efs (attached) that was posted.

    How can I get an alert with the close-price, if the swing is change between long and short? ->>

    Alert.addToList(getSymbol(), "go long, price is "+close()+"", Color.black, Color.green);
    Alert.playSound("swoosh.wav");


    Alert.addToList(getSymbol(), "go short, price is "+close()+"", Color.black, Color.red);
    Alert.playSound("train.wav");

    Where I have insert the rows?

    Can anybody help me?

    Torso
    Attached Files
    Last edited by Torso; 11-21-2007, 01:34 PM.

  • #2
    Hello Torso,

    You first need to identify the location in the code that gets executed based on your description of the change event. The information you've provided is not very specific. However, the place to start looking is most likely within the confirmSwings() function. Try placing your alert code within the code blocks of the last if...else statement in that function above or below the calls to doLine("con").
    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

    Comment

    Working...
    X