MetaTrader 5 Python 사용자 그룹 - Metatrader에서 Python을 사용하는 방법 - 페이지 44

 
Renat Fatkhullin :

여러 개의 mt5.initialize 세션을 생성할 수 있는 경우.

한 세션 내에서 요청은 동기식입니다.

하나의 터미널(브로커, 계정)에 여러 세션이 있습니까?

아니면 각 세션에 별도의 터미널이 필요합니까?

흥미롭네요.

 
Vladimir Perervenko :

하나의 터미널(브로커, 계정)에 여러 세션이 있습니까?

아니면 각 세션에 별도의 터미널이 필요합니까?

흥미롭네요.

하나의 터미널에 대한 다중 세션이 지원됩니다.

 
Renat Fatkhullin :

하나의 터미널에 대한 다중 세션이 지원됩니다.

감독자. 나는 노력할 것이다

 
터미널이 아닌 편집기에서 직접 Jupyter Notebook *.ipynb 파일이 지원됩니다.

완전히 시작할 수 있습니다.
 
안녕하세요.

Python용 MetaTrader5 패키지의 소스 코드를 찾고 있습니다. 이 섹션을 보았습니다: https://www.mql5.com/en/code/mt5/libraries
그러나 백만 개의 링크가 있습니다. 사람의 계산으로 원하는 소스를 찾을 확률은 0에 가깝습니다.

이 라이브러리 https://pypi.org/project/MetaTrader5/에서 말해주세요.
출처를 찾을 수 있습니까?
MQL5 Code Base: Libraries
MQL5 Code Base: Libraries
  • www.mql5.com
Custom Price Chart using a simple Artificial Neural Network that tries to project price movements into the future. Not very useful for trading, but fun to watch and learn ;) NELODI Trading Terminal is a collection of Indicators and an Expert Advisor, which work together to provide a complete solution for manual Trading, primarily designed for...
 
라이브러리는 컴파일된 패키지로만 배포됩니다.
 
Renat Fatkhullin :
터미널이 아닌 편집기에서 직접 Jupyter Notebook *.ipynb 파일이 지원됩니다.

완전히 시작할 수 있습니다.

원격 시동이 가능합니까? 저것들. jupyter가 실행 중인 서버의 IP를 지정하거나 로컬로만 지정하시겠습니까?

 
Renat Fatkhullin :

다음 주 금요일에 MT5 릴리스를 출시하여 문서를 동시에 업데이트할 예정입니다.

포럼의 이전 인터페이스에 대한 설명도 편집됩니다.


기본적 으로 터미널은 사용자 계정으로 마지막으로 실행된 시작됩니다. C:\Users\%username%\AppData\Roaming\MetaQuotes\Terminal 디렉터리를 살펴보고 가장 최근 인스턴스를 선택합니다.

응답 코드는 튜플에 래핑되며 MQL5의 응답 코드와 유사합니다.

나중에 설명서에서 설명하겠습니다.

말해봐, 오늘 기다려?
 
alex.alexen :
말해봐, 오늘 기다려?

내가 본 것으로 판단하면 업데이트는 이미 통과되었습니다 - 2020년 2월 21일부터 빌드 2340

 

누가 도와주세요.

MQL5 편집기에서 샘플(python)을 실행하려고 했지만 오류가 발생합니다.

NameError: 'MT5_TIMEFRAME_H4' 이름이 정의되지 않았습니다.

도와 주셔서 감사합니다

코드

# Copyright 2020 , MetaQuotes Software Corp.
# https: //www.mql5.com
from datetime import datetime
from MetaTrader5 import *
import MetaTrader5 as mt5
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
pd.set_option ( 'display.max_columns' , 500 ) # number of columns to be displayed
pd.set_option ( 'display.width' , 1500 ) # max table width to display
# import pytz module for working with time zone
import pytz
mt5.initialize ()
 
# set time zone to UTC
timezone = pytz.timezone ( "Etc / UTC" )
# create 'datetime' object in UTC time zone to avoid the implementation of a local time zone offset
utc_from = datetime ( 2019 , 4 , 5 , tzinfo = timezone)
# get 10 EURUSD H4 bars starting from 04 / 01 / 2019 in UTC time zone
rates = mt5.copy_rates_from ( "EURUSD" , MT5_TIMEFRAME_H4, utc_from, 20 )
mt5.shutdown ()
# display each element of obtained data in a new line
print ( "Display obtained data 'as is'" )
for rate in rates:
    print (rate)
 
# create DataFrame out of the obtained data
rates_frame = pd.DataFrame (list (rates),
                           columns = [ 'time' , 'open' , 'low' , 'high' , 'close' , 'tick_volume' , 'spread' , 'real_volume' ])

# display data
print ( "\ nDisplay dataframe with data" )
print (rates_frame)  
Descubra las nuevas posibilidades de MetaTrader 5 con la comunidad y los servicios MQL5
Descubra las nuevas posibilidades de MetaTrader 5 con la comunidad y los servicios MQL5
  • www.mql5.com
Formule preguntas sobre análisis técnico, discuta sobre sistemas comerciales y mejore sus hablidades de programación de estrategias comerciales en el lenguaje MQL5. Contacte con tráders de todo el mundo en el foro e intercambie experiencias, también podrá ayudar a los principiantes con sus propias respuestas: nuestra comunidad se desarrolla...