3x Fresh Out

Some toy for the weekend.

A fresh out makes a 33-pip push beyond a previous day’s extreme, achieves a stretch of 2.x, it closes back by a certain number of pips, and you are most curious about when this happens for the 3rd time, as that high/low should not get a beat, at all.

Well, alright, this one received a 1-pip beat 8 days later.

All the other examples did not.

 
   if (Period()==1440 && i<150){
      if (MathAbs(Close[i]-iLow(symbol,0,iLowest(symbol,0,MODE_LOW,16,i)))<MathAbs(iHigh(symbol,0,iHighest(symbol,0,MODE_HIGH,16,i))-Close[i]))
      {reference[i] = iLow(symbol,0,iLowest(symbol,0,MODE_LOW,16,i));   
       L80N[i]=reference[i]+1000*Point;    
      }
      else {reference[i] = iHigh(symbol,0,iHighest(symbol,0,MODE_HIGH,16,i));   
       L80N[i]=reference[i]-1000*Point;     
      } 
      if (Close[i]>L80N[i]) L80B[i]=iMA(symbol,0,17,0,MODE_EMA,PRICE_MEDIAN,i); //L80N[i];
      if (Close[i]<L80N[i]) L80S[i]=iMA(symbol,0,17,0,MODE_EMA,PRICE_MEDIAN,i); //L80N[i];
   
      if (High[i]>iMA(symbol,0,9,0,MODE_EMA, PRICE_MEDIAN,i)+FMax*2.2*10*Point
      && High[i]>High[i+1]+33*Point && Close[i]<High[i]-60*Point &&
      High[i]-Low[i]>900*Point && Low[i]>L80N[i]
      )
          ObjectCreate("Bod"+DoubleToStr(i), OBJ_TEXT, 0, Time[i], High[i]+330*Point); 
          ObjectSetText("Bod"+DoubleToStr(i), "F", 24, "Impact",  White); 
   
     if (Low[i]<iMA(symbol,0,9,0,MODE_EMA, PRICE_MEDIAN,i)-FMax*2.4*10*Point
      && Low[i]<Low[i+1]-33*Point && Close[i]>Low[i]+210*Point &&
      High[i]-Low[i]>430*Point && High[i]<L80N[i]
      )
          ObjectCreate("Bod"+DoubleToStr(i), OBJ_TEXT, 0, Time[i], Low[i]-330*Point); 
          ObjectSetText("Bod"+DoubleToStr(i), "F", 24, "Impact",  White); 
   }   

The two sides are not entirely symmetrical, I just went with the stats. Not a whole lot of conclusions, only a few, for instance, that the 10th day can make a successful break – until then you should be fading the attempts.