title: Getting values from a custom indicator
body: <p>I am trying to get values from a custom indicator which has the input parameters shown on the image.</p>
  
  <p><a href="https://c.mql5.com/3/172/Screen_Shot_2018-02-07_at_06.05.07__1.png" rel="nofollow noreferrer"><img src="https://c.mql5.com/3/172/Screen_Shot_2018-02-07_at_06.05.07__1.png" alt="enter image description here"></a>
  Below is the code I tried:</p>
  
  <pre><code>double value=iCustom(NULL,0,"Market\\My Indi",
           "",
           2,
           1.0,
           "",
           0,
           PERIOD_M15,
           PERIOD_M30,
           PERIOD_H1,
           PERIOD_H4,
           PERIOD_D1,
           PERIOD_W1,
           "",
           70.0,
           -70.0,
           "",
           false,
           true,
           true,
           "",
           20000
           ,0,1);
  </code></pre>
  
  <p>I am trying to get this value on every bar close but I only get 120.0 which is very different from the actual indicator values that run on other charts.</p>
  
  <p>Can someone help me please?</p>