indicator oscillator problem

 

hi guys  i try to do an oscillator in separated windows  but   it draw  only a line  , where is the error  ?

thankz at all 
Discover new MetaTrader 5 opportunities with MQL5 community and services
Discover new MetaTrader 5 opportunities with MQL5 community and services
  • www.mql5.com
One Click Close The script allows users to easily close positions if their profit/loss reaches or exceeds a value specified in pips. Please set slippage value first. Sometimes some positions do not close due to high volatility of the market. Please set larger slippage or restart the script. The free demo version is: ...
 
for(int i=0; i<=(barsbackN-1); i++)
     {
      EmaA[i] =  iMAOnArray(ArrayDifN,0,smooth1,MA_Shift1,MODE_SMMA,Shift1);
     }
   for(int i=0; i<=(barsbackN-1); i++)
     {
      EmaB[i] =  iMAOnArray(EmaA,0,smooth1,MA_Shift1,MODE_SMMA,Shift1);
     }

// DENOMINATORE
   CopyClose(Symbol(),PERIOD_CURRENT,0,barsbackD,ArrayNClose);
   CopyOpen(Symbol(),PERIOD_CURRENT,0,barsbackD,ArrayNOpen);
   for(int i=0; i<=(barsbackD-1); i++)
     {
      ArrayDifD[i]= MathAbs((ArrayNOpen[i]-ArrayNClose[i]));
     }
   for(int i=0; i<=(barsbackD-1); i++)
     {
      EmaC[i] =  iMAOnArray(ArrayDifD,0,smooth2,MA_Shift2,MODE_SMMA,Shift2);
     }
   for(int i=0; i<=(barsbackD-1); i++)
     {
      EmaD[i] =  iMAOnArray(EmaC,0,smooth2,MA_Shift2,MODE_SMMA,Shift2);
     }



Reason: