I am an individual investor. I have no ties to any trading organization. My intent is to use this Expert System for my own trading exclusively. The code for this project and the specification will be my property exclusively. I attempted to write the code myself but decided to hire an experienced programmer since the system will be automatically trading my money.
This system was developed on the Think-or-Swim platform. The goal of this project is to convert it to run as a fully automated trading bot on MetaTrader 5 using the MetaTrader VPS. The time frames used will range from 1 minute to 1 day. The delivered code must be ready to run back testing and be ready to load onto a remote server for actual trading. The code should be commented and documented to allow me to understand enough to make minor changes in the future. This system will be initially used on FOREX pairs.
The system will have a manual input to trade either Long, Short, or Both. I anticipate trading in the “Both” condition. Having the ability to choose Long and Short only will help me analyze and understand the system. In “Both” mode, the system will always be in the market. As soon as a long position is closed, a short one is opened and visa-versa.
The algorithm starts with the oldest data (left hand side of chart).
1. Define Trend –
a. if two consecutive bars have higher high and higher low – Up Trend
b. If two consecutive bars have lower lows and lower highs – Down Trend
2. A Trend remains in place until a signal to buy or sell is generated which reverses the trend,
3. Buy Signal
a. A Down Trend must be in effect
b. The “Long” or “Both” condition must be active.
c. The current high is >= the lowest low of the current down trend plus the sum of:
i. Average True Range x fixed multiplier
ii. Fixed number defined by user
iii. Percentage of current bar
4. Sell Signal
a. An Up Trend must be in effect
b. The current high is <= the highest high of the current down trend minus the sum of:
i. Average True Range x fixed multiplier
ii. Fixed number
iii. Percentage of current bar
5. Stop Loss
In theory, the Stop-Loss will never be hit. It is there in case of some sort of catastrophic failure; possibly a failure of a server or a data communication link. I want the stop-loss to reside on the market makers system or the markets ECN to minimize steps in the process which could fail.
· Long-Stop is placed at a user defined number of PIPs below the low which was used to trigger the current long position.
· Short-Stop is placed at a user defined number of PIPs above the high which was used to trigger the current short position.
Note: I am working on a more sophisticated Stop-Loss signal using volatility. When I am happy with my work, I intend to contact you to integrate it.
6. Order Execution
a. As soon as a bar is closed, it is analyzed using the rules described above. If an order is triggered, several steps must happen immediately:
i. Cancel the Stop-Loss
ii. Close the current order
iii. Initiate the new position
iv. Initiate the new stop-loss
User Interface
User selects trade types:
· Long Only
· Short Only
· Long and Short
User selects algorithm parameters:
· Number of contracts to be traded
· Fixed Percentage
· ATR Length
· ATR Multiplier
· Stop Loss Pips
Concerns:
1. By analyzing the data left to right and using small time frames such as 1 minute bar data, eventually the amount of data will become onerous. When I am back testing, I want to have as much data as possible. When I am doing automatic trading using real money, I want to use enough data to give me good results but not so much as to burden the CPU.
2. I do not understand the process MLQ5 uses to ensure no data is missed or if any checks should be included in the code to address this situation.
相似订单
Modification of Trade_Panel_7 7.05 Objective . I have this utility “Trade_Panel_7 7.05” with which I open and close positions. Please refer to attached “Trade Panel Modification.jpg”. It shows an input parameter “Volume Step”. This parameter has the initial value of 0.02 as shown. This feature needs to be amended. Present Status . Value of lot size is increased by this “Volume Step”. I have built a whole series of
Indicador Maximas e Minimas + Super Trend O Indicador MAX/MIN é um indicador de análise técnica para o MetaTrader 5 , desenvolvido para ajudar você a identificar regiões importantes de preço e possíveis oportunidades de compra e venda. O que ele faz MAX/MIN: identifica máximas e mínimas relevantes do mercado e mostra os preços no gráfico. HH / HL / LH / LL: ajuda a visualizar a estrutura do mercado, mostrando quando
Subject: Custom MT5 Multi-Currency EA Request - Multi-Timeframe Strategy with Trailing Stop Hi, I am looking for a developer to create a custom Expert Advisor (EA) for MetaTrader 5 (MT5) . The EA must be optimized for multi-currency testing and trading , allowing me to run it across multiple currency pairs simultaneously. The trading logic should be based on a multi-timeframe approach using the following indicators
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I need to build one from scratch . Experience with Sierra Chart, ACSIL
please share: Strategy description — entry/exit rules, indicators used, timeframe(s), and instrument(s) (a written explanation, screenshots, or an existing indicator/EA to reference all work) Risk management rules — position sizing method (fixed lot / % risk), stop loss / take profit logic, max drawdown or daily loss limits, and whether martingale/grid/hedging is involved Broker & account details — broker name
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
I need a custom MetaTrader 5 indicator designed specifically for XAUUSD gold trading. The indicator should identify potential buy and sell opportunities, display clear entry and exit signals on the chart, provide alerts, and help identify market trends and possible reversals
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize an existing footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – modify my existing footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I already have a working footprint chart, so no
Торговый робот XAUUSD AI/ML — MT5 + Python + MQL5 Ищу опытного разработчика с глубокими знаниями в следующих областях: MQL5 / MetaTrader 5 Python Машинное обучение / Искусственный интеллект Алгоритмическая торговля Проект Я хочу разработать торговую систему на основе ИИ/машинного обучения, предназначенную исключительно для XAUUSD (золото) . Архитектура: Данные рынка XAUUSD → Модель Python/ML → ПОКУПКА / ПРОДАЖА /
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {