Encomenda de EA

명시

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. }

응답함

1
개발자 1
등급
(2642)
프로젝트
3357
68%
중재
77
48% / 14%
기한 초과
342
10%
무료
게재됨: 1 코드
2
개발자 2
등급
(2309)
프로젝트
2905
63%
중재
122
44% / 25%
기한 초과
429
15%
작업중
3
개발자 3
등급
(24)
프로젝트
34
9%
중재
3
33% / 0%
기한 초과
8
24%
무료
비슷한 주문
Já tenho um código MQL5 com uma base do funcionamento. Basicamente o EA traça um canal na virada do dia (penso que utilizar horário seria melhor em razão da diferença entre corretoras), com base em um número x de candles, calcula e posiciona ordens stop com base em % do capital. Caso uma ordem aberta venha a stopar, o EA deve realizar uma virada de mão com base no mesmo canal, contudo recalculando o lote para que
//+------------------------------------------------------------------+ //| EA Cruzamento de Médias MT5 | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; //---- Inputs input int FastMAPeriod = 20; input int SlowMAPeriod = 50; input double LotSize = 0.01; input int StopLoss = 300; input int TakeProfit = 600; //----

프로젝트 정보

예산
30 - 100 USD
기한
에서 5  15 일