ejtraderLabs / ejtraderIQ

Best IQ option API for digital and turbo for trading and history
GNU General Public License v3.0
20 stars 5 forks source link

how realtime live tick data in metetrader 4? #1

Closed rahmangunawans closed 2 years ago

rahmangunawans commented 2 years ago

how make multi pair realtime live tick?

with https://github.com/FX31337/FX-Data-Convert-Action/blob/master/src/fx-data-convert-from-csv.py

traderpedroso commented 2 years ago

We do not support metatrader 4 only metatrader 5 ejtraderMT and its supported multiples symbol real-time

and for IQoption it's not possible, but a workaround could be done


# pip install ejtraderTH // its for easy threading
# pip install ejtraderIQ
from ejtraderIQ import IQOption
import ejtraderTH as th
import pandas as pd

api = IQOption('tribolinux@gmail.com','tribopass@123','DEMO')

Symbols = ['EURUSD', 'GBPUSD']

def get_data(symbols):

    data = api.history(symbols,"M1",5)
    data.columns = [f'{symbols}_open', f'{symbols}_high',
                                                f'{symbols}_low', f'{symbols}_close', f'{symbols}_volume']

    return data

processed_data = th.start(get_data, Symbols)

for data in processed_data:
    print(data)

# its time elapsed
th.elapsed(output=True)
rahmangunawans commented 2 years ago

We do not support metatrader 4 only metatrader 5 ejtraderMT and its supported multiples symbol real-time

and for IQoption it's not possible, but a workaround could be done

iq option combined with convert_iq_to_mt.py or convert_csv_to_mt.py?