I need a simple EA Robot to test a martingale strategy

MQL5 Experts

Trabalho concluído

Tempo de execução 2 dias
Comentário do desenvolvedor
Great customer!
Comentário do cliente
Great. It is very fast and precise in the work. He understands very well what you want and programs your robot very quickly. It is available to help you based on the time at your disposal.

Termos de Referência

Description

I initially need an EA only to backtest just to see if the strategy I thought of is profitable.

The parameters I need to set are:

1. Value X (distance in pip between the orders that will be entered)

2. Hours and days of trading consented for the EA

3. Volume of the initial lot V

In the following I will indicate with P the price of the first order executed, with SL the Stop Loss, with TP the Take Profit, with V the initial volume expressed in lots.

The robot will enter the first buy order at market price with volume V and suppose that P is the price of the executed one.

The order will be entered with TP of X and SL of 2X.

As soon as the first order is executed at price P two stop orders will be entered:

1. the first will be a buy stop order at the P + X price and volume V, with TP of X pips and SL of 2X pips.

2. the second will be a sell stop order with price P-X, volume 3V and also having TP of X and SL of 2X

If the price goes the right way, it will reach the TP level and the executed order will be closed in profit, while at the same time the order referred to, in point 1, above will have been executed

If the price moves in the wrong direction and reaches the value of P-X then the order described in point 2 above will be executed and at the same time two other stop orders will be entered, of which:

3. the first will be a sell stop order at the P-2X price and volume V, with TP of X pips and SL of 2X pips.

4. the second will be a buy stop order with price P, volume 6V and also with TP of X and SL of 2X

Whenever the price retraces X without reaching the TP of the last executed order but reaching the price of the pending order previously entered, the robot will enter a new stop order of opposite sign with increased volume according to the sequence V, 3V, 6V, 12V, 24V, 48V, etc.

Tthe robot will place orders according to a martingale that becomes a winner one when leaving the price range between P + X and P-2X.

When the martingale arrives to Take Profit a new martingale initial order equal to the price of the take profit will be started.


Example of operation

Taking a graphic example, we have the following.

 

 

At point 1 of the graph, the robot will enter the first buy order in the market with volume V that is executed at the P price.

As soon as the order is executed in point 1, the two pending orders are entered

A. buy stop order at the P + X price and volume V, with TP of X pips and that is at the P + 2X level and SL of 2X pips and that is STOP loss at P-X price level.

B. sell stop order with P-X price, 3V volume and also with TP of X and SL of 2X

The price after an initial climb retraces up to the P-X price level (point 2 of the graph), where the pending order is executed at point B.

Also here, as soon as the order referred to in the previous point B is executed, two pending orders will be entered

C. the first will be a sell stop order at the price P-2X and volume V, with TP of X pips and SL of 2X pips.

D. the second will be a buy stop order with price P, volume 6V and also with TP of X and SL of 2X

at this point the price rises reaching point 3 of the graph at price P. Then order D is executed in the previous point and the following new pending order is entered:

E. sell stop order at P-X price with 6V volume, with TP of X pips and SL of 2X pips.

The price goes down again and reaches point 4 of the graph at the P-X price. The pending order E is then executed and a new pending order is entered which is as follows:

F. buy stop order at price P, with volume 12 V, with TP of X pips and SL of 2X pips.

The price starts to rise again and arrives at point 5 of the graph at price P. Then the pending order F is executed and a new pending order is entered which is as follows:

G. sell stop order at P-X price with 12V volume, with TP of X pips and SL of 2X pips.

The price continues to rise and reaches point 6 of the chart at the P + X price. At this price level all the buy stop orders executed are in take profit, all the sell stop orders executed are in stop loss, the pending order in point A is executed and everything is started all over again with an order with volume V equal to the initial lot. The robot will then insert the new orders A and B whose price levels, SL and TP will have been moved up by X pips. The robot will cancel the other pending orders of the previous series just closed and everything will start again as before but with price levels moved.

 


Respondido

1
Desenvolvedor 1
Classificação
(17)
Projetos
19
16%
Arbitragem
4
0% / 75%
Expirado
5
26%
Livre
Pedidos semelhantes
Job Title: MQL5 Trading Bot Code Debugging and Optimization** **Description:** We are seeking an experienced MQL5 developer proficient in debugging and optimizing trading bot codes. The current project involves fixing existing code that runs into debugging issues without errors and optimizing it for efficient performance in live trading environments. **Responsibilities:** - Debug existing MQL5 trading bot code to
need a very skilled developer to create ea from indicator .i have source code for the indicator and it is non repainting. More details will be provided .i need parameters like take profit/stop/loss/loss recovery and few more
Active expert 250+ USD
hi, I must do changes to a dashboard with manual input of trader and active expert. Budget 250$ Can do? the budget is correct based on job to do. If you want me to increase the budget you can message me
HELLO DEAR DEV'S. I'VE AN EA BUT IT STOP WORKING WHEN MT4 HAS BEEN UPDATED TO THE LATEST VERSION (1420). SO I NEED A GOOD DEVELOPPER THAT COULD UPDATE THIS EA TO THE LATEST VERSION OF MT4 SO I CAN USE IT. NB: IT'S A SINGLE FILE (.EX4) AND THE PRICE CAN BE NEGOCIATED TO BE SUITABLE FOR BOTH PARTIES. THANK YOU
hey friends, I am looking to build a smart trading robot, for the capital market. He knew how to trade in all the different types of trade. Example - in shares, currencies, index, indices, ETFs, funds, commodities, options, futures and so on. Suitable for trading on all stock exchanges in the world. It will be possible to install the trading robot in the MetaTrader 5 trading software. But it will also be possible to
STI EA 30 USD
I need to convert this MT4 indicator into MT5 EA/indicator. The problem is I only have the .ex4 file bt not .mq4 file and it is also a repainting indicator. I need preliminary assessment if the conversion can be done based on .ex4 file first before exploring the EA details further. Attached is the indicator Budget below is just indicative for the assessment. We can discuss further once the conversion can be done and
i want you to help me it mq4 source code and insure it will work on mt4 and mt5 optimally basically i want the source code and that dll if its important to crack it .. regards
This mql4 got entry blue line and exit red line and pips inside also calculated it uses haiken Ashi and murray Math settings if you this you up for this job let's discuss it we will talk more when you are chosen thanks in advance
Hi, The task involves adding functions to an existing EA and correcting an error. The developer must have a thorough understanding of the following: Trailing Take Profit function Calculating a decreasing distance between orders Ability to code a function for Global Profit decrement/increment size in percentage Ability to correct error 10015 Thank you in advance
The first section will describe the EAs trading strategy logic and features. The second section is an outline of the inputs that the EA should contain. 1. The idea of the trading system is as follows : This EA enters trades based on fibonacci retracement levels when other (MACD, RSI) conditions are met. It will use a MACD from a particular time frame to establish the swing high and swing lows which the fibonacci

Informações sobre o projeto

Orçamento
30+ USD
IVA (22%): 6.6 USD
Total: 36.6 USD
Desenvolvedor
27 USD
Prazo
para 3 dias