Announcement

Collapse
No announcement yet.

Please Help Me

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

  • Please Help Me

    Dear all,
    i want to built an EFS:

    IF High - Low = 15 on ET u4-dt (eurostoxx Future)
    then emit a sound. and visual alert.
    Thank a lot, Ciro

  • #2
    this is about all you need...

    PHP Code:

    function preMain() {
        
    setStudyTitle("You Study Name");
    }

    function 
    main() {

     if ((
    high()-low()) > 15.00) {
        
    Alert.playSound("Laser.wav")
        
    drawShapeRelative(0high(), Shape.DIAMONDnullColor.redShape.ONTOPgetValue("RawTime"+"Marker");
        
     }

    return;


    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      there is this error in EFS, Ciro

      Comment


      • #4
        msfg

        ops..

        line 9: missng
        drwashaprelative(0, hign(), shape.Diamond ....etc...

        Comment


        • #5
          Ciro
          Add a closing bracket ")" at the end of line 9 as shown below
          drawShapeRelative(0, ......"+"Marker"));
          Alex

          Comment


          • #6
            Thank you Alex..

            Alex,

            Thanks for catching my error. Obviously - a copy/paste error - but I really appreciate your attention to detail. Great working with you

            B
            Brad Matheny
            eSignal Solution Provider since 2000

            Comment


            • #7
              error

              i have add closing bracket, but i have now this msg

              Invalid series name (RawtimeMarker) in getValue

              thanks Ciro.

              Comment


              • #8
                Ciro
                My fault, the closing bracket should be after "RawTime" and not at the end of the line.
                drawShapeRelative(0, high(), Shape.DIAMOND, null, Color.red, Shape.ONTOP, getValue("RawTime")+"Marker");
                Alex

                Comment

                Working...
                X