Place trades according to a local trade history file

MQL5 专家 脚本 SQL

工作已完成

执行时间2 天
客户反馈
Extremely professional! Nice and kind! Super recommend!
员工反馈
Nice customer, like to work for him again and again. :)

指定

Motivation

I have some live trade history files saved in csv, I would like to use MT5 to get the backtest result. Additionally, I sometimes need to modifies the SL/PT level of the trades, to see if its better than the original trades.

 

Provided csv file description

Read the provided csv trades history, which has the following files

 

  ID : position id

  Symbol : traded symbol

  Volume : traded lotsize, >0 for buy, <0 for short.

  En_Time : enter time of the position

  SL : stop loss price level placed when enter the trade, can be emtpy.

  PT  : profit take price level placed when enter the trade, can be emtpy.

  Ex_Time : exit time

 

Rows are sorted by “En_Time” file, the time format is “YYYY-MM-DD HH:MM:SS”.

 

What should the EA do

 

1.  Parse the csv file.

2.  In “OnTick” block, Place market order on time of “En_Time”, for “Symbol” with lotsize “abs(Volume)”, with direction of “sign(Volume)”. If “SL” and “PT” if not empty, place SL/PT according to the prices. The comment of the trade is set to “ID”

3.  If SL/PT is not hit, or there wasnt, exit the trade on time of “Ex_Time”.


反馈

1
开发者 1
等级
(1)
项目
2
0%
仲裁
1
100% / 0%
逾期
0
空闲
2
开发者 2
等级
(74)
项目
73
47%
仲裁
2
50% / 50%
逾期
2
3%
空闲
3
开发者 3
等级
(71)
项目
97
43%
仲裁
2
50% / 0%
逾期
2
2%
空闲
相似订单
I’m building a trading signal platform called Tradexa focused only on US30 and Nasdaq. I need you for Phase 1: to build the signal engine/logic side. The system must use strict top-down analysis (H4 → H1 → M15) and generate M15 trade signals only when all conditions are met, including liquidity sweep, structure shift, retest, SL and multiple TPs. I already have a detailed rule sheet for the strategy and signal
Title Professional AI Automation Trading Bot for Forex & Crypto Solution Language Python (preferred) or MQL5 depending on integration requirements. Categories Expert Advisor (EA) for MetaTrader 5 Automated trading strategies AI/ML-based signal generation Risk management automation Required Skills Strong knowledge of MQL5/Python Experience with MetaTrader API integration Machine learning model deployment

项目信息

预算
30 - 75 USD
截止日期
 2 天