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
類似した注文
I have a indicator working good but have some bug for arrow placement . budget is fixed 30 used . only experience developer apply. i want to arrow get put on just above the candle high and candle low
I need a professional MT5 Expert Advisor (EA) built with clean, modular code. This is an advanced strategy combining liquidity concepts, controlled DCA, hedge protection, and strict risk management. Core Requirements: Entry Logic (ALL must align): Liquidity sweep (Previous Day High/Low breakout and return) EMA50 and EMA200 trend alignment Higher timeframe bias (H1 or H4) RSI confirmation Bollinger Band entry Filters
I need a professional MQL5 developer. BEFORE I SHARE ANY DETAILS: 1. You must sign a PERPETUAL NDA with no expiration date 2. NDA includes €100,000 penalty for any breach 3. I require full .mq5 source code ownership 4. Developer must have 500+ completed jobs, 4.9+ rating Budget: €1500 EUR Duration: 14 days Start your application with "RULER" to prove you read this
i have a simple strategy can you please create the automated forex ea to execute my trading strategy? i need custom ea for tradingview and mt4/mt5 correction: i need a tradingview indicator created that tells me when to buy or sell. and ea in mt4/mt5
Pip Scalper Bot 60+ USD
i want a trading bot that is aleast 98% sure,and cam also do scalping 99% correct using smart money concept, ICT, ALL technical analysis on it and also put risk management on it
It is very important, that your software can replicate the trade logic 1:1 as the original myfxbook statistic. You should have a professional software to analyze the trade logic. I tried it with ChatGPT and GROK and it doesnt worked at all. You need to have better tools for that job. If you can not do it to 99% same trade logic as the original statistic do not message me. Payment only after delivering the EA (Demo
Greetings I need MT5 developer that has expertise in developing a custom indicator for mt5 boom and crash based on my exact details and requirements which would be discuss later. Kindly bid for this project if it is something you can handle for me
I need a fully functional Expert Advisor (EA) for MetaTrader 5 focused on trading XAUUSD (Gold). The strategy should be based on fast scalping entries using indicators such as RSI, Moving Averages, or similar confirmation tools. The EA must include fixed risk management (1%–2% per trade), automatic lot calculation, and stop loss/take profit settings. It should be optimized for low spread conditions and quick market
Mt5 EA 50 - 69 USD
I am a private trader looking for a reliable EA that can generate steady daily profits of around $35 to $40 with proper risk management. My goal is to find or improve an EA strategy that can deliver consistent results, especially on Gold (XAUUSD). If you believe you can review the current EA or develop a better solution, I would be interested in working with you. However, I would need to verify the EA on a demo
Subject:currently have a working EA installed with 3 indicators, but it’s not profitable.What I need: A trader/developer with a proven indicator that can be converted/integrated into my existing EA. The indicator must show a pass rate of 80% or higher on backtest/forward test.Scope of work: Your indicator will be added to my existing EA and must work with the current strategy logic. I will first test the indicator’s

プロジェクト情報

予算
30+ USD
締め切り
最高 2 日