EA that read trades from local CSV

İş tamamlandı

Tamamlanma süresi: 26 gün

İş Gereklilikleri

want you to build an Expert Advisor (EA) for MetaTrader 5 that reads a .csv file from my local PC and executes trades based on the data in that file. The EA must support both market and pending orders and offer flexible risk management, trailing stop options, and slippage control. All these functions are part of mql5 core codes

Core Requirements

1. CSV-Based Order Input


  • The EA should periodically read a CSV file (from local mql5/files) 
  • Columns (CSV headers) must include all the parameters needed to define a trade, including:
    • Order Type (Market Buy, Market Sell, Buy Stop, Sell Stop, Buy Limit, Sell Limit)
    • Symbol
    • Entry Price (ignored for market orders)
    • Stop Loss (in price or pips)
    • Take Profit (in price or pips)
    • Lot Sizing Method (Fixed, % Risk, $ Risk, $/Pip)
    • Risk Value (depending on the method)
    • Min Lot Size
    • Max Lot Size
    • Slippage (in pips)
    • Trailing Stop Type (None, Fixed, Break-Even, Manual Activation)
    • Trailing Stop Value (in pips)
    • Trailing Activation Level (if applicable)
    • Break-Even Buffer (if applicable)
    • Magic Number (optional)






2. Lot Sizing Methods (Selectable Per Trade)



The EA must support the following options (based on the “Lot Sizing Method” and “Risk Value” columns in the CSV):


  • Fixed Lot Size
    User specifies lot size directly (e.g., 0.10).
  • % Risk of Balance/Equity
    Lot size = (Risk% × Balance or Equity) / (SL in points × point value)
  • Fixed $ Amount Risk
    Lot size = Dollar Risk / (SL × value per pip)
  • Dollar per Pip
    Lot size = ($/pip) / (value per pip per lot)
  • Min/Max Lot Size Boundaries
    Enforced regardless of the calculation method.






3. Trailing Stop Options



The EA must support these trailing stop strategies:


  • Fixed Trailing Stop: SL follows price at a fixed distance.
  • Break-Even: SL moves to entry (optionally plus a buffer) once the trade is in profit by a certain number of pips.
  • Manual Trailing Activation: Trailing begins only after price moves a defined number of pips into profit.






4. Slippage Handling



  • The EA should respect a Maximum Slippage value per trade (defined in pips in the CSV).
  • This is used in the slippage field of the MqlTradeRequest.

The csv will alway look like this, “ Order Type,Symbol,Entry Price,Stop Loss,Take Profit,Lot Sizing Method,Risk Value,Min Lot Size,Max Lot Size,Slippage,Trailing Stop Type,Trailing Stop Value,Trailing Activation Level,Break-Even Buffer”

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(249)
Projeler
311
28%
Arabuluculuk
33
27% / 64%
Süresi dolmuş
10
3%
Serbest
2
Geliştirici 2
Derecelendirme
(163)
Projeler
258
61%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
10
4%
Serbest
3
Geliştirici 3
Derecelendirme
(77)
Projeler
243
74%
Arabuluculuk
7
100% / 0%
Süresi dolmuş
1
0%
Serbest
Yayınlandı: 1 makale
4
Geliştirici 4
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
(5)
Projeler
5
60%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
2
40%
Serbest
Yayınlandı: 1 kod
6
Geliştirici 6
Derecelendirme
(10)
Projeler
14
43%
Arabuluculuk
0
Süresi dolmuş
3
21%
Serbest
7
Geliştirici 7
Derecelendirme
(270)
Projeler
552
49%
Arabuluculuk
57
40% / 37%
Süresi dolmuş
228
41%
Çalışıyor
8
Geliştirici 8
Derecelendirme
(452)
Projeler
565
26%
Arabuluculuk
24
42% / 38%
Süresi dolmuş
85
15%
Serbest
Yayınlandı: 6 kod
9
Geliştirici 9
Derecelendirme
(171)
Projeler
195
42%
Arabuluculuk
13
8% / 54%
Süresi dolmuş
9
5%
Serbest
Yayınlandı: 3 kod
Benzer siparişler
I need a AI signal generating bot for forex trading that use the latest ai technology to track real time forex market, analyse and give signals. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame
step by step and structure this into a full IEEE 830 / ISO/IEC/IEEE 29148 style Requirements Specification. This format will include: Introduction System Overview Functional and Performance Requirements Traceability Matrix (linking requirements to test cases) Verification and Validation Compliance Standards 1. Introduction 1.1 Purpose The purpose of this document is to define the technical requirements for the
Henryy999 30 - 3000 USD
The Ai robot must help me with forex and I don't have money soon can the Ai robot give me some money and I will pay it back if the Ai robot does a good job making me rich
// Add this to your EA after ExportState() function void SendToBase44(const string state, const string dir, double entry, double sl, double tp) { string url = " https://preview-sandbox--ee0a32a725b788974de435e8cef40b7a.base44.app/api/functions/receiveEAState "; string headers = "Content-Type: application/json\r\n"; string json = "{" "\"symbol\":\""+_Symbol+"\","
A trading expert that relies on specific signals such as price breaking a peak or trough, liquidity withdrawal, and retesting the signal. Lock the expert advisor with a code and create a subscriber base with a separate key for each subscriber

Proje bilgisi

Bütçe
30+ USD