Announcement

Collapse
No announcement yet.

Alerts on Studies

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

  • Alerts on Studies

    Wanted: EFS files for Alerts on Studies.

    "New 7.2 Advanced Charting Enhancements:
    Alerts on Studies -- Users will now be able to tie an alert pop-up or sound to a study through EFS, so you'll be alerted to buy and sell opportunities."

    Do you have EFS files for Alerts on Studies? If so, please post files in File Sharing and post your link in this thread.

    Examples of some basic alerts needed:

    Moving average crossover (>= and <=)
    Stochastic %K/%D crossover (>= and <=)
    Bollinger Band penetrations
    Study/Price Divergence

    For various studies (%K, %D, RSI, CCI, etc.):
    Study relative to scale value (>= and <=)

    Etc.

    Thanks to all who contribute.
    Last edited by Lancer; 11-21-2002, 06:34 PM.

  • #2
    Lancer, included in build 510 in your /formulas/505 folder are some alert samples. I believe one of them is a MA xover.

    If you look at those, you can also look at some of the /formulas/builtin samples to combine them and make the formulas you list.
    Matt Gundersen

    Comment


    • #3
      Let's have some fun

      Here's the original AlertMA.efs formula that does an Alert with price goes above the MA.

      PHP Code:
      /****************************************************************************************************
      Copyright © eSignal, a division of Interactive Data Corporation. 2002. All rights reserved. 
      This sample eSignal Formula Script (EFS) may be modified and saved under a new 
      filename; however, eSignal is no longer responsible for the functionality once modified.
      eSignal reserves the right to modify and overwrite this EFS file with each new release.
      *****************************************************************************************************/
      var study = new MAStudy(100"Close"MAStudy.SIMPLE);

      function 
      preMain() {
          
      setPriceStudy(true);
      }

      var 
      bIsLong false;
      var 
      bIsShort false;

      function 
      main() {
          var 
      study.getValue(MAStudy.MA);

          if(
      == null)
              return;


          if(
      close() >= v) {
              if(!
      bIsLong) {
                  
      Alert.addToList(getSymbol(), "Price is >= 10 Bar MA"Color.blackColor.green);
                  
      Alert.playSound("swoosh.wav");
                  
      bIsLong true;
                  
      bIsShort false;
              }
          } else {
              if(!
      bIsShort) {
                  
      Alert.addToList(getSymbol(), "Price is < 10 Bar MA"Color.whiteColor.red);
                  
      Alert.playSound("train.wav");
                  
      bIsLong false;
                  
      bIsShort true;
              }
          }

          return 
      v;

      Matt Gundersen

      Comment


      • #4
        With minimal modification to the original formula, I took some code from /formulas/builtin/builtinMA.efs

        Now we have an alert when a 10 bar MA crosses the 50 bar MA.

        PHP Code:
        /****************************************************************************************************
        Copyright © eSignal, a division of Interactive Data Corporation. 2002. All rights reserved. 
        This sample eSignal Formula Script (EFS) may be modified and saved under a new 
        filename; however, eSignal is no longer responsible for the functionality once modified.
        eSignal reserves the right to modify and overwrite this EFS file with each new release.
        *****************************************************************************************************/
        var study10 = new MAStudy(100"Close"MAStudy.SIMPLE);
        var 
        study50 = new MAStudy(500"Close"MAStudy.SIMPLE);

        function 
        preMain() {
            
        setPriceStudy(true);
        }

        var 
        bIsLong false;
        var 
        bIsShort false;

        function 
        main() {
            var 
        v10 study10.getValue(MAStudy.MA);
            var 
        v50 study50.getValue(MAStudy.MA);

            if(
        v10 == null || v50 == null)
                return;


            if(
        v10 >= v50) {
                if(!
        bIsLong) {
                    
        Alert.addToList(getSymbol(), "10MA xUP 50 MA"Color.blackColor.green);
                    
        Alert.playSound("swoosh.wav");
                    
        bIsLong true;
                    
        bIsShort false;
                    }
            } else {
                if(!
        bIsShort) {
                    
        Alert.addToList(getSymbol(), "10MA xDN 50 MA"Color.whiteColor.red);
                    
        Alert.playSound("train.wav");
                    
        bIsLong false;
                    
        bIsShort true;
                }
            }

            return new Array(
        v10v50);

        Matt Gundersen

        Comment


        • #5
          Matt, you're the EFS expert. For you, EFS is easy and fun. I'm just a trader that wants better tools. I don't know anything about writing EFS files. When first confronted with EFS in eSignal, I looked into learning about it, but I couldn't find complete documentation posted anywhere (all functions, operators, etc., proper syntax, format, etc., all the how-to's). I really just want to trade, and do a little tweaking to existing file settings. That's about it.

          Those three alerts examples in Formulas>Alerts hint at the promise of Alerts on Studies, but they do little more than that. A basic alerts file-set is needed.

          Thanks for the Moving Average Crossover formula. That's a good one to start this thread. I'll tweak the values and try it tomorrow.


          In edit: I added the MA Crossover formula to a chart, and the result was #Formula Error#.
          Last edited by Lancer; 11-21-2002, 08:26 PM.

          Comment


          • #6
            Wanted: EFS files for Alerts on Studies.

            "New 7.2 Advanced Charting Enhancements:
            Alerts on Studies -- Users will now be able to tie an alert pop-up or sound to a study through EFS, so you'll be alerted to buy and sell opportunities."

            Do you have EFS files for Alerts on Studies? If so, please post files in File Sharing and post your link in this thread.

            Examples of some basic alerts needed:

            Moving average crossover (>= and <=)
            Stochastic %K/%D crossover (>= and <=)
            Bollinger Band penetrations
            Study/Price Divergence

            For various studies (%K, %D, RSI, CCI, etc.):
            Study relative to scale value (>= and <=)

            Etc.

            Thanks to all who contribute.

            Comment


            • #7
              Linear Regression

              They posted a great Linear Regression study!

              Version as posted attached.
              Attached Files

              Comment

              Working...
              X