Skip to content

Commit e6b6a21

Browse files
committed
fix: file generation for mqpy command
1 parent 1e0033e commit e6b6a21

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Mql5-Python-Integration (MQPy)
77

8-
**Current Version: v0.6.0**
8+
**Current Version: v0.6.6**
99

1010
Welcome to the Mql5-Python-Integration project! This project facilitates the integration between MetaTrader 5 (Mql5) and Python, allowing for efficient algorithmic trading strategies.
1111

@@ -23,7 +23,7 @@ Welcome to the Mql5-Python-Integration project! This project facilitates the int
2323

2424
## Project Update: Changes in Progress
2525

26-
🚧 **Work in Progress: v0.6.0**
26+
🚧 **Work in Progress: v0.6.6**
2727
This project is currently undergoing significant changes and improvements. The latest version is v0.6.0, and various enhancements are being made to provide a more robust and user-friendly experience.
2828

2929
📌 **Previous Version: v0.5.0**

mqpy/__init__.py

Whitespace-only changes.

mqpy/src/template.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@ def get_arguments():
1010

1111
def main():
1212
file_name = get_arguments()["file_name"]
13+
symbol = get_arguments()["symbol"]
1314

1415
with open(f"{file_name}.py", "w") as file:
1516
file.write(
16-
"""from mqpy.src.rates import Rates
17+
f"""from mqpy.src.rates import Rates
1718
from mqpy.src.tick import Tick
1819
from mqpy.src.trade import Trade
1920
2021
# Initialize the trading strategy
2122
trade = Trade(
2223
expert_name="Moving Average Crossover",
2324
version=1.0,
24-
symbol="EURUSD",
25+
symbol="{symbol}",
2526
magic_number=567,
2627
lot=1.0,
2728
stop_loss=25,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "mqpy"
3-
version = "v0.6.5"
3+
version = "v0.6.6"
44
description = "I developed this library to simplify the process of creating an Expert Advisor in MQL5. While developing in MQL5 can be complex, the same task is more streamlined in Python."
55
authors = ["Joao Paulo Euko"]
66
license = "MIT"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setuptools.setup(
88
name="mqpy",
9-
version="v0.6.5",
9+
version="v0.6.6",
1010
description="I developed this library to simplify the process of creating an Expert Advisor in MQL5. While developing in MQL5 can be complex, the same task is more streamlined in Python.",
1111
author="Joao Paulo Euko",
1212
license="MIT",

0 commit comments

Comments
 (0)