I need a simple EA Robot to test a martingale strategy

MQL5 전문가

작업 종료됨

실행 시간 2 일
피고용인의 피드백
Great customer!
고객의 피드백
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.

명시

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.

 


응답함

1
개발자 1
등급
(17)
프로젝트
19
16%
중재
4
0% / 75%
기한 초과
5
26%
무료
비슷한 주문
Hi, I have an indicator from my friend, I want to copy it to my own MT5 can you do that for me. Here is the link
I'm looking for someone to help me create an arbitrage trading robot that can trade on any decentralized exchange and forex market. I already have some source code to a strategy but would like to enhance it to make it profitable and automated
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link

프로젝트 정보

예산
30+ USD
VAT (22%): 6.6 USD
총: 36.6 USD
개발자에게
27 USD
기한
 3 일