Announcement

Collapse
No announcement yet.

trade the markets

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

  • trade the markets

    does anyone know if there is a ready made formula in here for the indicators offered by trade the market. I am looking for a squeeze indicator, and the TTM trend indicator.

  • #2
    stockhausen
    Try running a Search using squeeze as the keyword and you should find what you are looking for
    Alex

    Comment


    • #3
      TTM Trend

      Can someone convert this to eSignal?

      if (Bar High+Bar Low)/2<(((Bar High[1]+Bar Low[1])/2) + ((Bar High[2]+Bar Low[2])/2) + ((Bar High[3]+Bar Low[3])/2) + ((Bar High[4]+Bar Low[4])/2) + ((Bar High[5]+Bar Low[5])/2) + ((Bar High[6]+Bar Low[6])/2))/6 set color to Red
      if (Bar High+Bar Low)/2>(((Bar High[1]+Bar Low[1])/2) + ((Bar High[2]+Bar Low[2])/2) + ((Bar High[3]+Bar Low[3])/2) + ((Bar High[4]+Bar Low[4])/2) + ((Bar High[5]+Bar Low[5])/2) + ((Bar High[6]+Bar Low[6])/2))/6 set color to Blue
      if (Bar High+Bar Low)/2=(((Bar High[1]+Bar Low[1])/2) + ((Bar High[2]+Bar Low[2])/2) + ((Bar High[3]+Bar Low[3])/2) + ((Bar High[4]+Bar Low[4])/2) + ((Bar High[5]+Bar Low[5])/2) + ((Bar High[6]+Bar Low[6])/2))/6 set color to Yellow

      Comment


      • #4
        Nicole
        The following section of code which is used in all three of your conditions ie
        PHP Code:
        ((Bar High[1]+Bar Low[1])/2) + ((Bar High[2]+Bar Low[2])/2) + ((Bar High[3]+Bar Low[3])/2) +
         ((
        Bar High[4]+Bar Low[4])/2) + ((Bar High[5]+Bar Low[5])/2) + ((Bar High[6]+Bar Low[6])/2)) 
        is simply a 6 period simple moving average of (High+Low)/2 displaced forward by one period and can be condensed as follows
        PHP Code:
        sma(6,hl2(),-1); 
        For the description of the sma() function and its syntax see this article in the EFS KnowledgeBase
        So your snippet of code converted to efs equivalent would be written as follows
        PHP Code:
        var HiLo = (high(0)+low(0))/2;
        var 
        avgHiLo sma(6,hl2(),-1);

        if((
        HiLo avgHiLosetPriceBarColor(Color.red);
        else if(
        HiLo avgHiLosetPriceBarColor(Color.blue);
        else 
        setPriceBarColor(Color.yellow);//no need to specify the last condition because there can 
                                            //be only three states ie greater than, lesser than or equal 
        Hope this helps
        Alex


        Originally posted by Nicole
        Can someone convert this to eSignal?

        if (Bar High+Bar Low)/2<(((Bar High[1]+Bar Low[1])/2) + ((Bar High[2]+Bar Low[2])/2) + ((Bar High[3]+Bar Low[3])/2) + ((Bar High[4]+Bar Low[4])/2) + ((Bar High[5]+Bar Low[5])/2) + ((Bar High[6]+Bar Low[6])/2))/6 set color to Red
        if (Bar High+Bar Low)/2>(((Bar High[1]+Bar Low[1])/2) + ((Bar High[2]+Bar Low[2])/2) + ((Bar High[3]+Bar Low[3])/2) + ((Bar High[4]+Bar Low[4])/2) + ((Bar High[5]+Bar Low[5])/2) + ((Bar High[6]+Bar Low[6])/2))/6 set color to Blue
        if (Bar High+Bar Low)/2=(((Bar High[1]+Bar Low[1])/2) + ((Bar High[2]+Bar Low[2])/2) + ((Bar High[3]+Bar Low[3])/2) + ((Bar High[4]+Bar Low[4])/2) + ((Bar High[5]+Bar Low[5])/2) + ((Bar High[6]+Bar Low[6])/2))/6 set color to Yellow

        Comment


        • #5
          TTM Trend

          did you ever get the formula for the ttm trend? if so, how do i get it?

          thanks,
          jim

          Comment

          Working...
          X