title: Integrating the OHLC value from Python API to MT5 using MQL5
body: <p>I have obtained the OHLC values from the iqoption and trying to find out a way to use it with MT5.<br>
  Here is how I got the values:    </p>
  
  <pre><code>import time
  from iqoptionapi.stable_api import IQ_Option
  I_want_money=IQ_Option("email","password")
  goal="EURUSD"
  print("get candles")
  print(I_want_money.get_candles(goal,60,111,time.time()))
  </code></pre>
  
  <p>The above code library is here: <a href="https://github.com/Lu-Yi-Hsun/iqoptionapi" rel="nofollow noreferrer">iqoptionapi</a></p>
  
  <p>The line: <code>I_want_money.get_candles(goal,60,111,time.time())</code> output json as : <a href="https://gist.github.com/JafferWilson/ec74b24f7b3aa4306e6a0693d74d3f35" rel="nofollow noreferrer">Output of the command</a>     </p>
  
  <p>Now I am getting json in the output so it work like an API, I guess so.     </p>
  
  <p>Meanwhile, I try to create a Custom Symbol in MT5 as <code>iqoption</code>. Now I just wanted to add the data of the OHLC from the API to it, so that it will continue fetching data from the Iqoption and display the chart on the chart window for the custom symbol <code>iqoption</code>.   </p>
  
  <p>But I am not able to load it in the custom symbol. Kindly, help me.  </p>
  
  <p><strong>Edited</strong>  </p>
  
  <p>This is the code for live streaming data from the iqoption:  </p>
  
  <pre><code>from iqoptionapi.stable_api import IQ_Option
  import logging
  import time
  logging.basicConfig(level=logging.DEBUG,format='%(asctime)s %(message)s')
  I_want_money=IQ_Option("email","password")
  I_want_money.start_candles_stream("EURUSD")
  thread=I_want_money.collect_realtime_candles_thread_start("EURUSD",100)
  I_want_money.start_candles_stream("USDTRY")
  thread2=I_want_money.collect_realtime_candles_thread_start("USDTRY",100)
  time.sleep(3)
  #Do some thing
  ans=I_want_money.thread_collect_realtime.items()
  for k, v in ans:
      print (k, v)
  I_want_money.collect_realtime_candles_thread_stop(thread)
  I_want_money.stop_candles_stream("EURUSD")
  I_want_money.collect_realtime_candles_thread_stop(thread2)
  I_want_money.stop_candles_stream("USDTRY")
  </code></pre>