Encomenda de EA

Tarea técnica

Preciso dos inputs abaixo.

input double Volume;
input double NovaOrdem;
input double Lucro;
----------------------------------------------
Regras:
if(não houver nenhuma ordem, nem Buy nem Sell aberta no gráfico)
{
abrir neste exato momento, uma ordem Buy, com o volume do Input Volume, sem SL, e com o TP baseado no input Lucro + Swap desta ordem.
abrir neste exato momento, uma ordem Sell, com o volume do Input Volume, sem SL, e com o TP baseado no input Lucro - Swap desta ordem.
}

if(não houver nenhuma ordem Buy aberta no gráfico)
{
abrir neste exato momento, uma ordem Buy, com o volume do Input Volume, sem SL, e com o TP baseado no input Lucro + Swap desta ordem.
}

if(não houver nenhuma ordem Sell aberta no gráfico)
{
abrir neste exato momento, uma ordem Sell, com o volume do Input Volume, sem SL, e com o TP baseado no input Lucro - Swap desta ordem.
}

if(qualquer ordem aberta no gráfico, seja ela Buy ou Sell, alcançar o lucro estipulado no input NovaOrdem)
{
feche, independente de que ordem for. Buy ou Sell.
}


===================================================================================


I need the inputs below.

input double Volume; input double NovaOrdem; input double Lucro; ---------------------------------------------- Rules: if (there is no order, neither Buy nor Sell open in the chart) { to open at this moment, a Buy order, with the volume of the Input Volume, without SL, and with the TP based on the Lucro + Swap input of this order. to open at this moment, a Sell order, with the volume of the Input Volume, without SL, and with the TP based on the Lucro - Swap input of this order. } if (there is no Buy order open in the chart) { to open at this moment, a Buy order, with the volume of the Input Volume, without SL, and with the TP based on the Lucro + Swap input of this order. } if (there is no open Sell order in the chart) { to open at this moment, a Sell order, with the volume of the Input Volume, without SL, and with the TP based on the Lucro - Swap input of this order. } if (any open order on the chart, be it Buy or Sell, achieve the profit stipulated in the NovaOrdem input) { close, regardless of what order. Buy or Sell. }

Han respondido

1
Desarrollador 1
Evaluación
(2625)
Proyectos
3332
67%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
2
Desarrollador 2
Evaluación
(2281)
Proyectos
2875
63%
Arbitraje
121
45% / 26%
Caducado
428
15%
Trabaja
3
Desarrollador 3
Evaluación
(24)
Proyectos
34
9%
Arbitraje
3
33% / 0%
Caducado
8
24%
Libre
Solicitudes similares
//+------------------------------------------------------------------+ //| Gold MetaLockDay EA (MT5) | //| Meta líquida diária com MIX de entradas (XAUUSD) | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; //======================== INPUTS ========================// input string InpSymbol = ""; //

Información sobre el proyecto

Presupuesto
30 - 100 USD
Plazo límite de ejecución
de 5 a 15 día(s)