Indicator help

 

Hello, I have an indicator which works fine but it draws fib lines and to get the fib values in my EA I am using ObjectGetDouble. This makes backtesting painfully slow since it has to draw the object every time.

After many failed attempts at changing the EA and using another way in the EA to grab the values I am asking for help on this.


Code in EA:

double Lev_A=iCustom(NULL,0,"ICWR",ExtDepth,ExtDeviation,ExtBackstep,WaveHeight,0,0);
double Pri_1=ObjectGetDouble(0,"ActiveWave",OBJPROP_PRICE1,1);
double Pri_2=ObjectGetDouble(0,"ActiveWave",OBJPROP_PRICE2,1);
Files:
ICWR.mq4  13 kb
 
It is best that you do the Fibo calculations within the EA.  Regards.
Reason: