I need Help if this is possible?

 
Is it possible to use the indicator attached below to create an EA by using the function iCustom() and if it is, can some body PLEASE help me with the code to call the value of the indicator for the EA to open a sell order when the first red bar appears after the last set of blue bars and a buy order when the first blue bar appears after the last set of red bars. Thanks for the help.
 
Where's your code? No Slaves here, learn to code or pay someone. We're not going to code it FOR you. We are willing to HELP you.
 

Well this indicator is interesting. Here is a central part of it ...

   for(int i=0; i<Bars; i++)
    {
      MaxH = High[Highest(NULL,0,MODE_HIGH,period,i)];
      MinL = Low[Lowest(NULL,0,MODE_LOW,period,i)];
      price = (High[i]+Low[i])/2;
      
      if(MaxH-MinL == 0) Value = 0.33*2*(0-0.5) + 0.67*Value1; 
      else Value = 0.33*2*((price-MinL)/(MaxH-MinL)-0.5) + 0.67*Value1;     
      
      Value=MathMin(MathMax(Value,-0.999),0.999); 
      
      if(1-Value == 0) ExtBuffer0[i]=0.5+0.5*Fish1;
      else ExtBuffer0[i]=0.5*MathLog((1+Value)/(1-Value))+0.5*Fish1;
      
      Value1=Value;
      Fish1=ExtBuffer0[i];
    }

Notice some key things.

1) On every tick it recalculates the whole chart!

2) It is applying EMA filters via the variables Value1 and Fish1

3) This EMA goes backwards in time.

4) Therefore the indicator recalculates (changes) old displayed values on each new tick :-(

 
dabbler:

Well this indicator is interesting. Here is a central part of it ...

Notice some key things.

1) On every tick it recalculates the whole chart!

2) It is applying EMA filters via the variables Value1 and Fish1

3) This EMA goes backwards in time.

4) Therefore the indicator recalculates (changes) old displayed values on each new tick :-(

Thank You so much for taking out time in between no time to study, analyse and write out the above codes. I will take my time to study the above codes and see what I

do with it. (I started studying MQL4 with the aim of automating my strategy, but so far I am still have a hard time)

YOU ARE HIGHLY APPRECIATED.

Reason: