i tried to programm this indicator.
double FirstValue = (Closes[1][0] * Instruments[1].MasterInstrument.PointValue); double SecondValue = (Closes[2][0] * Instruments[2].MasterInstrument.PointValue); Spread.Set(((FirstValue-SecondValue) / (SecondValue+FirstValue))*100); SMA1Spread.Set(SMA(Spread,MA1Period)[0]); SMA2Spread.Set(SMA(Spread,MA2Period)[0]); Pal.Set(SMA1Spread[0] - SMA2Spread[0]); double WillVal = WilliamsR(Pal, palPeriod);
Comment