MetaTrader 5 Python User Group - как использовать Python в Метатрейдере - страница 62
Вы упускаете торговые возможности:
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Регистрация
Вход
Вы принимаете политику сайта и условия использования
Если у вас нет учетной записи, зарегистрируйтесь
Спасибо за подсказку. Я прочел материалы по Вашей ссылке. Сложновато.
Добрый день! Как работать с TRADE_ACTION_CLOSE_BY ??? или кто и как закрывает все открытые позиции?
https://www.mql5.com/en/forum/306742/page10#comment_15577952
https://www.mql5.com/en/forum/306742/page10#comment_15577952
Спасибо за пример.
У меня в МКЛ аналогичный скрипт сначала закрывает все прибыльные позиции.
Может и в Вашем скрипте так же сделать?
Удачи
PS: У Вас так и сделано. Увидел.
И этот скрипт для неттинговых счетов?Thanks for the example.
In my MKL, a similar script first closes all the profitable positions.
Can you do the same in your script?
Good luck
PS: You have done so. Had seen.
And this script for netting accounts?I usually prioritize position closing based on risk (position size), but if you want close based on overall profit then then you just have to modify how you sort the symbols.
I usually prioritize position closing based on risk (position size), but if you want close based on overall profit then then you just have to modify how you sort the symbols.
Спасибо
BackTrader: https://github.com/backtrader/backtrader
PyAlgoTrade https://github.com/gbeced/pyalgotrade
Zipline https://github.com/quantopian/zipline
Ultra-Finance https://code.google.com/p/ultra-finance/
ProfitPy https://code.google.com/p/profitpy/
pybacktest https://github.com/ematvey/pybacktest
prophet https://github.com/Emsu/prophet
quant https://github.com/maihde/quant
AlephNull https://github.com/CarterBain/AlephNull
Trading with Python http://www.tradingwithpython.com/
visualize-wealth https://github.com/benjaminmgross/visualize-wealth
tia Toolkit for integration and analysis https://github.com/bpsmith/tia
QuantSoftware Toolkit http://wiki.quantsoftware.org/index.php?title=QuantSoftware_ToolKit
Pinkfish http://fja05680.github.io/pinkfish/
bt http://pmorissette.github.io/bt/index.html
PyThalesians https://github.com/thalesians/pythalesians
QSTrader https://github.com/mhallsmoore/qstrader/
QSForex https://github.com/mhallsmoore/qsforex
pysystemtrade https://github.com/robcarver17/pysystemtrade
QTPyLib https://github.com/ranaroussi/qtpylib
RQalpha https://github.com/ricequant/rqalpha
Python скрипты можно использовать для бэктестинга в терминале?
Нет, они работают только как скрипты на чарте в отдельном потоке.
Can you add a feature so that the terminal passes the chart symbol and time-frame as command-line arguments when evoking a python script by dropping it on the chart? For example, you drop the python script on the EURUSD M15 chart and the command to evoke the script would be
python mt5_script.py EURUSD 15
So that we we can know the symbol and timeframe from within the python script
Can you add a feature so that the terminal passes the chart symbol and time-frame as command-line arguments when evoking a python script by dropping it on the chart? For example, you drop the python script on the EURUSD M15 chart and the command to evoke the script would be
So that we we can know the symbol and timeframe from within the python script
Will be available next beta version tonight:
import sys chart_symbol='unknown' chart_tf=1 if len(sys.argv) == 3: chart_symbol, chart_tf = sys.argv[1:3]; print("Hello world from", chart_symbol, chart_tf) >> Hello world from T.NYSE 15