Announcement

Collapse
No announcement yet.

Help Me Please!!

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

  • Help Me Please!!

    I need some help..I am using Stochastic(arrow.efs and MA Cross Over.efs..Problem is that these are 1 bar behind and I would like to see the "arrow" at the point of crossover and the MA color also at crossover point and not the next bar..I have been trying now for almost 2 days with no success..Have everything else as I want it, only the timing is not in sync..Can someone please help with the coding of these 2 efs's so I use them..

    TIA

  • #2
    sc1317
    As there are several versions of these efs(s) available in the forums you may want to post the ones you have or provide the links to where you downloaded them.
    Alex

    Comment


    • #3
      THank you for the quick response Alex.. The first is "http://share.esignal.com/ContentRoot/ACM%20Test/Formulas/basicStochastic.efs" This is an excellent EFS for my purpose, but as in the orginial post I would like to see the arrows exactly when the crossover takes place..I think this would be an easy request..I have found the changing the colors to suit me and the parameters also in editor..

      Actual code is:

      function preMain() {
      setStudyTitle("MA Cross Over");
      }

      function main(nInputLength) {
      if(nInputLength == null)
      nInputLength = 50;

      var vValue = call("/library/ma.efs", nInputLength);
      var vClose = close();

      if(vValue != null && vClose != null) {
      if(vClose >= vValue) {
      setBarBgColor(Color.lime);
      } else {
      setBarBgColor(Color.red);
      }
      }

      return;
      }



      Next is, I'll give the code that really is working with the exception of the color change..Again I would like to see the color change when the price and MA actually cross.

      function preMain() {
      setStudyTitle("MA Cross Over");
      }

      function main(nInputLength) {
      if(nInputLength == null)
      nInputLength = 50;

      var vValue = call("/library/ma.efs", nInputLength);
      var vClose = close();

      if(vValue != null && vClose != null) {
      if(vClose >= vValue) {
      setBarBgColor(Color.lime);
      } else {
      setBarBgColor(Color.red);
      }
      }

      return;
      }

      Sorry for the length, but I know you can help me..

      TIA

      Racer

      Comment


      • #4
        Racer
        The link for the basicStochastic efs points to my group in File Sharing and in there I do not have any Stochastic efs with arrows. That specific study is the same as the one available in your Builtin folder.
        With regards to the MA Crossover code you posted the color change happens exactly on the bar that closes above or below the moving average (see image).
        Alex

        Comment

        Working...
        X