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

MQL5 专家

指定

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.


反馈

1
开发者 1
等级
项目
0
0%
仲裁
0
逾期
0
空闲
相似订单
SCALP MARTINCALE SPY TIMEFRAME 1MIN CANDLE - SHORT SIDE ONLY 1-SET RISK : A IS A VARIABLE (HOW MUCH $) 2-SET ATR(3) : SET THE TIME AT WHICH THE ATR SHOULD BE TAKEN, IF SET 933AM THEN THE ATR OF THE 1MIN CANDLE AT 933AM CANDLE WILL BE USED (ROUND AT 0.25 UP OR DOWN) *USE NEW YORK TIME 3-SET MAX NUMBER OF ENTRY : B IS A VARIABLE 4-SET RSI(14) / C IS A VARIABLE, IF RSI(14) > C = ORDERS OPEN 5-IF RSI(14) > C IS TRIGGERED
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
Hello, I need a martingale and grid bot. The programmer must provide a test of about 5 minutes for the EA to see how it works and if everything is fine, it will be selected to make some modifications for personal use to that EA that you provide. If it has a lot of graphics or buttons. better It doesn't matter if the robot is bad, I'm more interested in its functionalities to use with my strategy
Hi Developer, I would like to create the Scalping EA based for Mt4 on the investing.com data https://www.investing.com/currencies/eur-usd-technical EA have timing to adjust time to trade. follow the broker time. From starting time to end time EA have a adjustable Lot size (0.01 incremental to 0.01) EA have a adjustable TP (1pip to 100pip incremental 1pip) EA have a adjustable SL (1pip to 100pip incremental 1pip) EA
Here is the Idea: I want a Semi Auto Trade Panel Manager EA that only activates when I press the BUY or SELL or BUY LIMIT or SELL LIMIT then the EA will do the rest : that includes the BUY STOP 0r SELL STOP and the hedging calculations according to below diagram. So overall , my only intervention is entering the lot size , hedge zone distance and TP ratio or entering the price for buy limit/sell limit then pressing
Hi, I'm looking for a martingale MT4 EA that performs a lot of trading volume per day. If you have the robot, you'll need to send me the demo so I can backtest it. Thank you very much
Hello potential Freelancers I’m very new to trading so please bear with me as I try to explain what ‘m looking for. I'm currently getting signals ( XAUUSD )sent to me and I’m looking to find a person who can look at the data either watch account live, or I send the trade history. The bot my provider is using makes 100’s of trades a day and does very well on average. I’m also looking to have the following features
we want to build a dashboard ea that would display on another chart key metrics : i will foward screeshot of what i want to dashboard to look like : the function i would need to get display are the following: 1. classified past performance ea by magic number ( with classic : total trade , total profit , return/dd , max dd (base on history) , ) 2. equity chart of performance if we click on a magic number we should
the task will be actually quiet simple , i need an active develloper to devellope out of 3 updates an ea STEP 1 (this job): make a classical pair trading ea , that can calculate correlation between assets and trade when the correlation diverge above a specified % the develloper that will postulate for the job will need : 1- to be ok to do the full project this job and the update following 2- very low arbitration , i
Hello, I want to create an EA that can be able to take and optimise trade bids using the trend tracker concept I have developed. The tracker will monitor the 2 lines in the below pictures and then start to activate bids once they cross each other and then be able to manage all bids afterwards towards the direction of the market by opening and closing them intermittently and profitably until the position at the other

项目信息

预算
30+ USD
VAT (22%): 6.6 USD
总计: 36.6 USD
开发人员
27 USD
截止日期
 2 天