Meu robô daytrade

Tarea técnica

//+------------------------------------------------------------------+
//| Expert Advisor Inside Bar com ADX para MetaTrader               |
//+------------------------------------------------------------------+
#property strict

// Definindo as variáveis
input int ADXPeriod = 14;       // Período do ADX
input int ADXThreshold = 25;    // Limite do ADX para confirmação da tendência
input double RiskRewardRatio = 2; // Risco/Recompensa (1:2)
double LotSize = 0.1;           // Tamanho da Lote

// Função para verificar Inside Bar e executar a ordem
void OnTick()
{
    // Calculando o valor do ADX
    double ADXValue = iADX(NULL, 0, ADXPeriod, PRICE_CLOSE, 0);
    
    // Verificando Inside Bar (vela atual dentro da vela anterior)
    if (High[1] < High[2] && Low[1] > Low[2]) 
    {
        // Confirmando a tendência com o ADX
        if (ADXValue > ADXThreshold)
        {
            // Definindo o Stop Loss e Take Profit com base na mínima/máxima do Inside Bar
            double InsideBarHigh = High[1];
            double InsideBarLow = Low[1];
            double InsideBarRange = InsideBarHigh - InsideBarLow;

            // Calculando Stop Loss e Take Profit
            double StopLoss, TakeProfit;
            
            // Condição de compra (rompimento da máxima do Inside Bar)
            if (Close[1] > InsideBarHigh)
            {
                StopLoss = InsideBarLow; // SL na mínima do Inside Bar
                TakeProfit = InsideBarHigh + RiskRewardRatio * InsideBarRange; // TP com risco/recompensa 1:2

                // Abrindo a ordem de compra
                OpenBuyOrder(StopLoss, TakeProfit);
            }
            
            // Condição de venda (rompimento da mínima do Inside Bar)
            if (Close[1] < InsideBarLow)
            {
                StopLoss = InsideBarHigh; // SL na máxima do Inside Bar
                TakeProfit = InsideBarLow - RiskRewardRatio * InsideBarRange; // TP com risco/recompensa 1:2

                // Abrindo a ordem de venda
                OpenSellOrder(StopLoss, TakeProfit);
            }
        }
    }
}

// Função para abrir uma ordem de compra
void OpenBuyOrder(double StopLoss, double TakeProfit)
{
    // Calculando o preço de abertura da ordem de compra
    double AskPrice = Ask;

    // Abrindo a ordem de compra
    int ticket = OrderSend(Symbol(), OP_BUY, LotSize, AskPrice, 3, StopLoss, TakeProfit, "Inside Bar Buy", 0, 0, clrGreen);
    if (ticket < 0)
    {
        Print("Erro ao abrir ordem de compra: ", GetLastError());
    }
}

// Função para abrir uma ordem de venda
void OpenSellOrder(double StopLoss, double TakeProfit)
{
    // Calculando o preço de abertura da ordem de venda
    double BidPrice = Bid;

    // Abrindo a ordem de venda
    int ticket = OrderSend(Symbol(), OP_SELL, LotSize, BidPrice, 3, StopLoss, TakeProfit, "Inside Bar Sell", 0, 0, clrRed);
    if (ticket < 0)
    {
        Print("Erro ao abrir ordem de venda: ", GetLastError());
    }
}

Han respondido

1
Desarrollador 1
Evaluación
(153)
Proyectos
238
33%
Arbitraje
20
45% / 30%
Caducado
2
1%
Libre
2
Desarrollador 2
Evaluación
(571)
Proyectos
663
32%
Arbitraje
42
45% / 45%
Caducado
12
2%
Trabajando
3
Desarrollador 3
Evaluación
(298)
Proyectos
477
40%
Arbitraje
105
40% / 24%
Caducado
81
17%
Trabajando
Ha publicado: 2 ejemplos
4
Desarrollador 4
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
5
Desarrollador 5
Evaluación
(7)
Proyectos
8
0%
Arbitraje
4
0% / 100%
Caducado
3
38%
Libre
6
Desarrollador 6
Evaluación
(49)
Proyectos
50
8%
Arbitraje
0
Caducado
0
Trabaja
7
Desarrollador 7
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
8
Desarrollador 8
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
9
Desarrollador 9
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
10
Desarrollador 10
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(3)
Proyectos
3
0%
Arbitraje
1
0% / 100%
Caducado
0
Trabaja
12
Desarrollador 12
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
Solicitudes similares
(Please read carefully to fully understand the job) I am looking for a developer who has real knowledge in HFT strategies and the ability to create an EA that can run on a real account and be profitable. I already have an EA that performs well on a demo account, but not on a real account. This EA can be used as an example to build a new strategy. I repeat: it should only be used as a reference, not to modify or
Project Description: I am looking for a Senior MQL5 Developer to build a high-precision Expert Advisor (EA) for the US30 (Dow Jones) index, based on Smart Money Concepts (SMC) and ICT methodologies. The EA must handle multi-timeframe analysis and execute trades with mechanical precision. 1. Multi-Timeframe Analysis & Structural Logic • D1 (Confluence): Automatic plotting of Daily Fair Value Gaps (FVG) and Order

Información sobre el proyecto

Presupuesto
40+ USD