Skip to content

Commit

Permalink
fix: file generation for mqpy command
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaopeuko committed Dec 9, 2023
1 parent 1e0033e commit e6b6a21
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Mql5-Python-Integration (MQPy)

**Current Version: v0.6.0**
**Current Version: v0.6.6**

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

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

## Project Update: Changes in Progress

🚧 **Work in Progress: v0.6.0**
🚧 **Work in Progress: v0.6.6**
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.

📌 **Previous Version: v0.5.0**
Expand Down
Empty file added mqpy/__init__.py
Empty file.
5 changes: 3 additions & 2 deletions mqpy/src/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@ def get_arguments():

def main():
file_name = get_arguments()["file_name"]
symbol = get_arguments()["symbol"]

with open(f"{file_name}.py", "w") as file:
file.write(
"""from mqpy.src.rates import Rates
f"""from mqpy.src.rates import Rates
from mqpy.src.tick import Tick
from mqpy.src.trade import Trade
# Initialize the trading strategy
trade = Trade(
expert_name="Moving Average Crossover",
version=1.0,
symbol="EURUSD",
symbol="{symbol}",
magic_number=567,
lot=1.0,
stop_loss=25,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mqpy"
version = "v0.6.5"
version = "v0.6.6"
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."
authors = ["Joao Paulo Euko"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="mqpy",
version="v0.6.5",
version="v0.6.6",
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.",
author="Joao Paulo Euko",
license="MIT",
Expand Down

0 comments on commit e6b6a21

Please sign in to comment.