Ho bisogno di un robot semplice per testare una strategia con martingala

MQL5 Asesores Expertos

Tarea técnica

Descrizione

Mi serve un EA per effettuare inizialmente solo backtest per vedere se la strategia che ho pensato è profittevole.

I parametri che devo poter settare sono:

1.      Valore X (distanza in pip tra gli ordini che verranno immessi)

2.      Orari e giorni di consenso al trading per l’EA

3.      Volume del lotto iniziale V

Indicherò nel seguito con P il prezzo del primo ordine eseguito, con SL lo Stop Loss, con TP il Take Profit, con V il volume iniziale espresso in lotti.

Il robot immetterà il primo ordine buy a mercato con volume V e supponiamo che P sia il prezzo dell’eseguito.

L’ordine sarà immesso con TP di X e SL di 2X.

Appena eseguito il primo ordine al prezzo P saranno inseriti due ordini stop:

1.      il primo sarà un ordine buy stop al prezzo P+X e volume V, con TP di X pips e SL di 2X pips.

2.      il secondo sarà un ordine sell stop con prezzo P-X, volume 3V e avente anch’esso con TP di X e SL di 2X

Se il prezzo va nel verso giusto, raggiungerà il livello di TP e l’eseguito viene chiuso in profitto, mentre contemporaneamente sarà stato eseguito l’ordine di cui al punto 1 precedente

Se il prezzo si muove nel verso sbagliato e raggiunge il valore di P-X allora verrà eseguito l’ordine di cui al punto 2 precedente e contemporaneamente verranno immessi altri due ordini stop di cui:

3.      il primo sarà un ordine sell stop al prezzo P-2X e volume V, con TP di X pips e SL di 2X pips.

4.      il secondo sarà un ordine buy stop con prezzo P, volume 6V e avente anch’esso con TP di X e SL di 2X

Ogni volta che il prezzo ritraccia di X senza raggiungere il TP dell’ultimo ordine eseguito ma raggiungendo il prezzo dell’ordine pendente immesso precedentemente, il robot immetterà un nuovo ordine stop di segno opposto con volume incrementato secondo la sequenza V, 3V, 6V, 12V, 24V, 48V, ecc.

Di fatto il robot immetterà ordini secondo una martingala che diventa vincente quando si esce dalla fascia di prezzo compresa tra P+X e P-2X.

Quando la martingala arriva a Take Profit sarà iniziata una nuova martingala ordine iniziale pari al prezzo del take profit.

Esempio di funzionamento

Facendo un esempio grafico si ha quanto segue.

esempio di funzionamento

Al punto 1 del grafico, il robot immetterà il primo ordine buy a mercato con volume V che viene eseguito al prezzo P.

Appena eseguito l’ordine al punto 1 vengono immessi i due ordini pendenti

A.     ordine buy stop al prezzo P+X e volume V, con TP di X pips e cioè al livello P+2X e SL di 2X pips e cioè STOP loss a livello di prezzo P-X.

B.     ordine sell stop con prezzo P-X, volume 3V e avente anch’esso con TP di X e SL di 2X

Il prezzo dopo un iniziale salita ritraccia fino al livello di prezzo P-X (punto 2 del grafico), dove viene eseguito l’ordine pendente al punto B.

Anche qui appena eseguito l’ordine di cui al punto B precedente saranno immessi due ordini pendenti

C.     il primo sarà un ordine sell stop al prezzo P-2X e volume V, con TP di X pips e SL di 2X pips.

D.     il secondo sarà un ordine buy stop con prezzo P, volume 6V e avente anch’esso con TP di X e SL di 2X

a questo punto il prezzo risale raggiungendo il punto 3 del grafico al  prezzo P. Viene quindi eseguito l’ordine D al punto precedente e viene immesso il nuovo ordine pendente seguente:

E.      ordine sell stop al prezzo P-X con volume 6V, con TP di X pips e SL di 2X pips.

Il prezzo scende nuovamente e raggiunge il punto 4 del grafico al prezzo P-X. Viene quindi eseguito l’ordine pendente E e viene immesso un nuovo ordine pendente che è il seguente:

F.      ordine buy stop al prezzo P, con volume 12 V, con TP di X pips e SL di 2X pips.

Il prezzo ricomincia a salire e arriva al punto 5 del grafico al prezzo P. Viene quindi eseguito l’ordine pendente F e viene immesso un nuovo ordine pendente che è il seguente:

G.     ordine sell stop al prezzo P-X con volume 12V, con TP di X pips e SL di 2X pips.

Il prezzo continua a salire e raggiunge il punto 6 del grafico al prezzo P+X. A questo livello di prezzo tutti gli ordini buy stop eseguiti vanno in take profit, tutti gli ordini sell stop eseguiti vanno in stop loss, viene eseguito l’ordine pendente di cui al punto A e si ricomincia tutto da capo essendo ripartiti con un oridne con volume V pari al lotto iniziale. Il robot quindi inserirà i nuovi ordini A e B i cui livelli di prezzi, SL e TP saranno stati spostati in alto di X pips. Il robot cancellerà gli altri eventuali ordini pendenti della serie precedente appena chiusa e tutto ricomincerà come prima ma con livelli di prezzo spostati.


Per il momento è sufficiente che il robot possa funzionare solo in backtest. Successivamente si potrà passare, previa nuova negoziazione a sviluppare il robot completo per il funzionamento in DEMO e REAL.


Han respondido

1
Desarrollador 1
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
This EA must have the following functions together: BE: place BE when the price reach a certain gain in PIPS and you can choose the offset too, so, for example it activates after 10 pips with 1 pip of offset so you can have profit with BE too Auto SL and TP Can manage the trades made by phone when MT5 is open in the PC or VPS Trailing stop (step by step): I can decide at what number of pips the trailing stop get
This is a strategy based on crossing two trend indicators on the second timeframe (1s, for example). We work not only with the market but with the limit orders as well (robot must "read" an order book). Read the whole instruction please for more details. Speak Russian, English
Martingale EA for MT5 30 - 100 USD
Criteria: Only one trade at a time. Cannot open another trade if one is running Trade on EURUSD only, once job is completed I will be happy to schedule more for other pairs You choose entry strategy and criteria win rate must be above 50% in long term backtest of EURUSD Every trade has got TP and SL Trades to last about a day, few trades a week, at least 10 pips gain per trade, so that it can be launched on normal
I have a indicator, mql file. The signals are seen below on a EURNZD H1 chart. Very important to get accurate entries. The signal to trade is the first tic after the the indicator signal paints. I've tried to demonstrate that below. Other than that the EA will have a lot size escalation, an on-screen pip counter, a button to stop taking new trades, SL/TP, and magic number. I would like the indicator to be within the
I would like to create an EA based on the Shved Supply and Demand indicator. you can find the Shved Supply and Demand v1.7 indicator in the following link https://www.mql5.com/en/code/29395 NB: Checks the trading robot must pass before publication in the Market ( https://www.mql5.com/en/articles/2555 ) MQ5 file to be provided
Im looking for an coder to code an EA: Trade management 1. opening trades according to the indicator 2. trades settings to choose from like: open all trades according to the signal open only trade 1,2,3 or 4 % per trade ( example 50/30/20 of the lot settings, with 4 trades it would be for example 50/30/10/10) 3. SL/Trailing settings: Move SL to entry after hitting TP1/TP2 or TP3 moving SL by % keep the original SL
Hi I'm looking to have 2 of my pinescript strategies converted to MQL5 and was wondering if you could first give me a quote for the more simple strategy and then for both the simple and complex strategy together. The simple strategy is a MACD crossover type thing that uses a special EMA script that filters out some ranging price action and also fractal candles for the stop loss. The second strategy is market
I want grate robot for making profits that know when to start a good trade and close a trade and must be active all time to avoid lost of money
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
Mbeje fx 50+ USD
I like to own my robot that why I want to build my own.i like to be a best to every robot ever in the life to be have more money

Información sobre el proyecto

Presupuesto
30+ USD
IVA (22%): 6.6 USD
Total: 36.6 USD
Para el ejecutor
27 USD
Plazo límite de ejecución
a 2 día(s)