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 am searching for a fully developed and already profitable Expert Advisor focused on XAUUSD scalping. I am not looking for a custom build or experimental system. The EA must already be trading successfully on a real live account. What I am looking for: • At least 6 months of verified live results • Daily drawdown controlled within 10% • Around 13% or more average monthly return • Clean risk management approach with
Modification of EA and Addition of New Trade Logic and Features Currently, the EA is opening trades correctly but in addition, there are times when it is opening the trades wrongly. The EA is based on an indicator (only the .ex5 file is available). A new trigger logic also needs to be added, along with new closing conditions. This project must NOT use any DLL and must be submitted in 1 day (max 2 days) The EA will be
Wayne Butts 100 - 800 USD
I need a great trading robot that can analyze the market for me and make precise and accurate trades and close them at capital gains. I need the robot to not lose below a certain amount and shit down when the goal for the day month quarter or year has been met
Looking to acquire an existing, profitable Expert Advisor (EA) with full source code to add to our client investment portfolio. To be clear, this is not a request to develop or design a new strategy. If you already have an EA that is proven, consistent, and production-ready, with at least 6 months of history performance I’m open to reviewing it immediately. Please apply only if you meet all the requirements below
I am in need of a buy stop sell stop EA that is developed already and profitable in live market for SCALPING XAUUSD. Note: Profitable in LIVE MARKET. It should have god risk management and low drawdown. If you have one developed, pls reply. The developer will need to send a demo so I can test myself
Automated trading system 150 - 250 USD
Anyone I need my own bot with my own licenses keys I will pay up please the bot must make good profit and I will pay up good money just hope it helps me
==CCT Phase 2 Spec== So for this we'll use alternative simplified higher time frame levels (Points Of Interest). In this phase we are swapping out the point of interest and really kicking the tires on core mechanics as we will have more trades. ==Long Entry Example== (((All operations done on 15m bar close))) 1) 20 EMA > 50 EMA > 100EMA on Daily Chart 2) Previous Days formation is Bullish Engulfing or Bullish Chad
Hello Muzaffar, I am inquiring about trading robot for my Gold trading scalping, Day trading and swing trading, could you develop this kind of trading robot, if its yes how long it will take you to deliver and how much will it cost? I would appreciate your response, Kind Regards, Ahmed
Develop a fully automated MT5 Expert Advisor based on a multi-timeframe institutional trend-pullback strategy with: Regime filtering (H4) Execution logic (H1) ATR-based stop model Multi-stage trailing system Risk-based position sizing Portfolio-level risk protection Detailed performance logging This EA will be used for client capital (PAMM/MAM environment). Stability and risk control are higher priority than high
Hello, I have an existing MT5 Expert Advisor that works perfectly on a demo account. The strategy is profitable and executes trades correctly in demo testing. However, when I run the same EA on a live account, it takes trades but the results are not profitable. The performance is significantly different compared to demo. I am looking for an experienced MQL5 developer who can: Analyze the EA logic Identify why live

프로젝트 정보

예산
30+ USD
기한
 2 일