Empty buffer value for custom indicator

 

Hi im trying to make EA based on custom indicator values but in data window i see only one buffer, either than this its empty when i point the mouse of the arrows any help ?

i tried this but didnt work 

double SignalBuy =iCustom(NULL,0,"pattern",0,1);
double SignalSell = iCustom(NULL,0,"pattern",1,1);






           if (SignalBuy != EMPTY_VALUE)
           {
            OrderSend(Symbol(), OP_BUY, Lotsi, Ask, Slippage, Ask - StopLoss * Point, Ask + ProfitTarget * Point, 0); 
           }
          if (err>0)
          Print("error(",err,"): ",ErrorDescription(err));
          
          else
           
        
           if (SignalSell != EMPTY_VALUE)
           {
             OrderSend(Symbol(), OP_SELL, Lotsi, Bid, Slippage, Bid + StopLoss * Point, Bid - ProfitTarget * Point, 0);
           }
          if (err>0)
          Print("error(",err,"): ",ErrorDescription(err));
          
          else
            {
             return(0);

datawindow

Step on New Rails: Custom Indicators in MQL5
Step on New Rails: Custom Indicators in MQL5
  • www.mql5.com
Finally we've got an opportunity to try the new trade terminal - MetaTrader 5. No doubt, it is noteworthy and has many new features as compared to its predecessor. The important advantages of this platform among others are: Essentially modified language allowing now to use the object-oriented programming, still allowing to use the rich...
 
Dimitar Pavlov:

Hi im trying to make EA based on custom indicator values but in data window i see only one buffer, either than this its empty when i point the mouse of the arrows any help ?

i tried this but didnt work 


It would be easier to help you if you can post the indicator.