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
類似した注文
The detailed specification of the trading strategy is attached. The key here is thet the EA needs to be simple to use yet effective. The indicators DO NOT have buffers that can be used for EAs
Broker is Blackwell Global. I run a MAM account and have been using a bot that uses 0.02 lots per £100 with only 1.5% risk per trade but the bot has been unprofitable. The more lots per £100 the better, but risk of roughly 1%-2% + fees of 4 pence per 0.01 lots should be considered. The more trades the system does the better, as this is a MAM account - HFT would be perfect but any strategy is okay. Any forex pair is
I am looking for an experienced MQL5 developer to build a fully automated trading bot (Expert Advisor) for MetaTrader 5 . The bot will focus on trend-following scalping and must be designed to trade XAUUSD and BTC on the M1 timeframe . The objective is to create a stable and efficient EA that can open multiple trades per day while managing risk using proper stop-loss, take-profit, and trailing stop mechanisms
I am looking for MQL5 Programmer who can convert a trading view indicator into MT5 Prop firm EA. The EA should follow all trading rules of a prop firm and able to pass evaluations. The EA should be able to generate profits in funded account also. There must be dashboard that should all parameters like Account size, daily drawdown, target profit, session name, etc. Please contact me for more details
I am looking for an experienced MT4 (MQL4) developer to build a Harmonic Pattern Indicator with a PRZ (Potential Reversal Zone) detection system , similar to advanced harmonic scanners. Kindly apply if you can handle this project. Note: I don't want unprofessional developer
hello, i want a convertion of this trading view indicator FVG (NEPHEW_SAM_) to mql5 to be add later to an expert advisor. i want to access this data, gap data printed on current timeframe and multi timeframe that i choose (current, timeF1, timeF2, timeF3, timeF4)(gap time, gap value, top gap value, low gap value, gap type bull / bear, gap type iFVG or FVG). a function that check if the price is checking the gap at
I have developed a ready-made quantitative trading system for MetaTrader 5. The system uses an ensemble of machine learning models (XGBoost, LightGBM, Random Forest) combined with a market regime filter based on a Hidden Markov Model. Core features: - Automated trading for XAUUSD - Risk management and dynamic position sizing - Market regime detection (trend / range) - Volatility filter - Telegram monitoring interface
Hello 100 - 200 USD
Programmer Requirement The programmer must have good experience with the following indicators and price action patterns used in this strategy: Bollinger Bands RSI ATR The programmer must also understand and correctly implement the following candlestick patterns: Bullish Engulfing Bullish Pin Bar Bearish Engulfing Bearish Pin Bar The programmer must have experience combining technical indicators with candlestick
EA CONVERTER 30 - 100 USD
I need someone who can create EA CONVERTER that can installed in my phone and convert my EA into mobile bot and should be my app ,and people should be able to use it they're are interested but they should pay for it
I need EA programmer to create me an Ea that trades Gold and Indices it should be mobile bot automation, that can both scalp and swing trades, the bot should use top analysis from D1 then H4 and H1

プロジェクト情報

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