Announcement

Collapse
No announcement yet.

Pivot Point Crossing Alert

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

  • Pivot Point Crossing Alert

    Greetings:

    I use pivot points in my trading, and have found the efs files for drawing pivot points on the chart (PivotPointAllDaily.efs, etc.) to be most helpful. I am searching for a utility that will go a step further -- to sound an alert or send an email when price crosses a pivot point by a variable value (such as 5%).

    Has anyone seen an efs file that will accomplish that?

    Thanks,

    Mark

  • #2
    Mark
    If you use the PivotPointAll2.efs (which is the EFS2 equivalent of PivotPointAll) that is available here then you could simply declare the following variable outside of main

    PHP Code:
    var nLastRawTime
    and add the following lines inside main just before the return statement

    PHP Code:
    if (getValue("rawtime",0) != nLastRawTime) { 
            if(
    high(-1) <= vPP+(0.05*vPP) && high(0) > vPP+(0.05*vPP)){
                
    Alert.playSound("ding.wav");
                
    nLastRawTime getValue("rawtime",0);
            }
        } 
    The above modifications will trigger a sound alert when price moves above the Pivot Point by more than 5%. Using this as an example you can create your own conditions for any of the other Pivot points
    Alex

    Comment

    Working...
    X