작업 종료됨
실행 시간 16 일
명시
Então eu pensei num bot tipo esse aqui de baixo, Quero algum Desenvolvedor de EA que possa concertar isso.
e também quero que insira esses Lots específicos aqui em baixo em cada ordem q for aberta com perda, quando a ganha a ordem volta para o lot inicial
Adiciona eu no whatsapp +55 11 95724-2910

![]()
extern int MagicNumber=10001;
extern double Lots =0.1;
extern double StopLoss=50;
extern double TakeProfit=50;
extern int TrailingStop=50;
extern int Slippage=3;
extern double minlot=0.1;
extern double maxlot=10;
//+------------------------------------------------------------------+
// expert start function
//+------------------------------------------------------------------+
double numero[]={0.1,0.2,0.3};
int n,result;
double lotsfactor=1.5,ilots;
double initiallotsfactor=1;
int start()
{
//|---------martingale initialization
int tempfactor,total=OrdersTotal();
if(tempfactor==0 && total>0)
{
for(int cnt=0;cnt<total;cnt++)
{
if(OrderSelect(cnt,SELECT_BY_POS))
{
if(OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber)
{
tempfactor=NormalizeDouble(OrderLots()/numero[n],1+(MarketInfo(Symbol(),MODE_MINLOT)==0.01));
break;
}
}
}
}
int histotal=OrdersHistoryTotal();
if(tempfactor==0&&histotal>0)
{
for(cnt=0;cnt<histotal;cnt++)
{
if(OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY))
{
if(OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber)
{
tempfactor=NormalizeDouble(OrderLots()/numero[n],1+(MarketInfo(Symbol(),MODE_MINLOT)==0.01));
break;
}
}
}
}
if(tempfactor>1)
lotsfactor=tempfactor;
double MyPoint=Point;
if(Digits==3 || Digits==5) MyPoint=Point*10;
double TheStopLoss=0;
double TheTakeProfit=0;
if( TotalOrdersCount()==0 )
{
int result=0;
if((Bid>Open[0])) // Here is your open buy rule
{
for(n=0;n<numero[n];n++){
result=numero[n]+OrderLots();
numero[n]=NormalizeDouble(numero[n]=martingalefactor(),1);
if(numero[n]<minlot)numero[n]=minlot;if(numero[n]>maxlot)numero[n]=maxlot;
result=OrderSend(Symbol(),OP_BUY,numero[n],Ask,Slippage,0,0,"Bot",MagicNumber,0,Blue);
if(result>0)
{
TheStopLoss=0;
TheTakeProfit=0;
if(TakeProfit>0) TheTakeProfit=Ask+TakeProfit*MyPoint;
if(StopLoss>0) TheStopLoss=Ask-StopLoss*MyPoint;
OrderSelect(result,SELECT_BY_TICKET);
OrderModify(OrderTicket(),OrderOpenPrice(),NormalizeDouble(TheStopLoss,Digits),NormalizeDouble(TheTakeProfit,Digits),0,Green);
}
return(0);
}
}
if((Bid<Open[0])) // Here is your open Sell rule
{
for(n=0;n<numero[n];n++){
result=numero[n]+OrderLots();
numero[n]=NormalizeDouble(numero[n]=martingalefactor(),1);
if(numero[n]<minlot)numero[n]=minlot;if(numero[n]>maxlot)numero[n]=maxlot;
result=OrderSend(Symbol(),OP_SELL,numero[n],Bid,Slippage,0,0,"Bot",MagicNumber,0,Red);
if(result>0)
{
TheStopLoss=0;
TheTakeProfit=0;
if(TakeProfit>0) TheTakeProfit=Bid-TakeProfit*MyPoint;
if(StopLoss>0) TheStopLoss=Bid+StopLoss*MyPoint;
OrderSelect(result,SELECT_BY_TICKET);
OrderModify(OrderTicket(),OrderOpenPrice(),NormalizeDouble(TheStopLoss,Digits),NormalizeDouble(TheTakeProfit,Digits),0,Green);
}
return(0);
}
}
}
for(int vnt=0;vnt<OrdersTotal();vnt++)
{
OrderSelect(vnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()<=OP_SELL &&
OrderSymbol()==Symbol() &&
OrderMagicNumber()==MagicNumber
)
{
if(OrderType()==OP_BUY)
{
if(TrailingStop>0)
{
if(Bid-OrderOpenPrice()>MyPoint*TrailingStop)
{
if(OrderStopLoss()<Bid-MyPoint*TrailingStop)
{
OrderModify(OrderTicket(),OrderOpenPrice(),Bid-TrailingStop*MyPoint,OrderTakeProfit(),0,Green);
return(0);
}
}
}
}
else
{
if(TrailingStop>0)
{
if((OrderOpenPrice()-Ask)>(MyPoint*TrailingStop))
{
if((OrderStopLoss()>(Ask+MyPoint*TrailingStop)) || (OrderStopLoss()==0))
{
OrderModify(OrderTicket(),OrderOpenPrice(),Ask+MyPoint*TrailingStop,OrderTakeProfit(),0,Red);
return(0);
}
}
}
}
}
}
return(0);
}
int TotalOrdersCount()
{
int result=0;
for(int i=0;i<OrdersTotal();i++)
{
OrderSelect(i,SELECT_BY_POS ,MODE_TRADES);
if (OrderMagicNumber()==MagicNumber) result++;
}
return (result);
}
int martingalefactor()
{
int histotal=OrdersHistoryTotal();
if (histotal>0)
{
for(int cnt=histotal-1;cnt>=0;cnt++)
{
if(OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY))
{
if(OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber)
{
if(OrderProfit()<0)
{
lotsfactor=numero[n]+OrderLots();
return(lotsfactor);
}
else
{
lotsfactor=numero[n];
if(lotsfactor>=0)
{
lotsfactor=1.5;
}
return(lotsfactor);
}
}
}
}
}
return(lotsfactor);
}
extern double Lots =0.1;
extern double StopLoss=50;
extern double TakeProfit=50;
extern int TrailingStop=50;
extern int Slippage=3;
extern double minlot=0.1;
extern double maxlot=10;
//+------------------------------------------------------------------+
// expert start function
//+------------------------------------------------------------------+
double numero[]={0.1,0.2,0.3};
int n,result;
double lotsfactor=1.5,ilots;
double initiallotsfactor=1;
int start()
{
//|---------martingale initialization
int tempfactor,total=OrdersTotal();
if(tempfactor==0 && total>0)
{
for(int cnt=0;cnt<total;cnt++)
{
if(OrderSelect(cnt,SELECT_BY_POS))
{
if(OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber)
{
tempfactor=NormalizeDouble(OrderLots()/numero[n],1+(MarketInfo(Symbol(),MODE_MINLOT)==0.01));
break;
}
}
}
}
int histotal=OrdersHistoryTotal();
if(tempfactor==0&&histotal>0)
{
for(cnt=0;cnt<histotal;cnt++)
{
if(OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY))
{
if(OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber)
{
tempfactor=NormalizeDouble(OrderLots()/numero[n],1+(MarketInfo(Symbol(),MODE_MINLOT)==0.01));
break;
}
}
}
}
if(tempfactor>1)
lotsfactor=tempfactor;
double MyPoint=Point;
if(Digits==3 || Digits==5) MyPoint=Point*10;
double TheStopLoss=0;
double TheTakeProfit=0;
if( TotalOrdersCount()==0 )
{
int result=0;
if((Bid>Open[0])) // Here is your open buy rule
{
for(n=0;n<numero[n];n++){
result=numero[n]+OrderLots();
numero[n]=NormalizeDouble(numero[n]=martingalefactor(),1);
if(numero[n]<minlot)numero[n]=minlot;if(numero[n]>maxlot)numero[n]=maxlot;
result=OrderSend(Symbol(),OP_BUY,numero[n],Ask,Slippage,0,0,"Bot",MagicNumber,0,Blue);
if(result>0)
{
TheStopLoss=0;
TheTakeProfit=0;
if(TakeProfit>0) TheTakeProfit=Ask+TakeProfit*MyPoint;
if(StopLoss>0) TheStopLoss=Ask-StopLoss*MyPoint;
OrderSelect(result,SELECT_BY_TICKET);
OrderModify(OrderTicket(),OrderOpenPrice(),NormalizeDouble(TheStopLoss,Digits),NormalizeDouble(TheTakeProfit,Digits),0,Green);
}
return(0);
}
}
if((Bid<Open[0])) // Here is your open Sell rule
{
for(n=0;n<numero[n];n++){
result=numero[n]+OrderLots();
numero[n]=NormalizeDouble(numero[n]=martingalefactor(),1);
if(numero[n]<minlot)numero[n]=minlot;if(numero[n]>maxlot)numero[n]=maxlot;
result=OrderSend(Symbol(),OP_SELL,numero[n],Bid,Slippage,0,0,"Bot",MagicNumber,0,Red);
if(result>0)
{
TheStopLoss=0;
TheTakeProfit=0;
if(TakeProfit>0) TheTakeProfit=Bid-TakeProfit*MyPoint;
if(StopLoss>0) TheStopLoss=Bid+StopLoss*MyPoint;
OrderSelect(result,SELECT_BY_TICKET);
OrderModify(OrderTicket(),OrderOpenPrice(),NormalizeDouble(TheStopLoss,Digits),NormalizeDouble(TheTakeProfit,Digits),0,Green);
}
return(0);
}
}
}
for(int vnt=0;vnt<OrdersTotal();vnt++)
{
OrderSelect(vnt, SELECT_BY_POS, MODE_TRADES);
if(OrderType()<=OP_SELL &&
OrderSymbol()==Symbol() &&
OrderMagicNumber()==MagicNumber
)
{
if(OrderType()==OP_BUY)
{
if(TrailingStop>0)
{
if(Bid-OrderOpenPrice()>MyPoint*TrailingStop)
{
if(OrderStopLoss()<Bid-MyPoint*TrailingStop)
{
OrderModify(OrderTicket(),OrderOpenPrice(),Bid-TrailingStop*MyPoint,OrderTakeProfit(),0,Green);
return(0);
}
}
}
}
else
{
if(TrailingStop>0)
{
if((OrderOpenPrice()-Ask)>(MyPoint*TrailingStop))
{
if((OrderStopLoss()>(Ask+MyPoint*TrailingStop)) || (OrderStopLoss()==0))
{
OrderModify(OrderTicket(),OrderOpenPrice(),Ask+MyPoint*TrailingStop,OrderTakeProfit(),0,Red);
return(0);
}
}
}
}
}
}
return(0);
}
int TotalOrdersCount()
{
int result=0;
for(int i=0;i<OrdersTotal();i++)
{
OrderSelect(i,SELECT_BY_POS ,MODE_TRADES);
if (OrderMagicNumber()==MagicNumber) result++;
}
return (result);
}
int martingalefactor()
{
int histotal=OrdersHistoryTotal();
if (histotal>0)
{
for(int cnt=histotal-1;cnt>=0;cnt++)
{
if(OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY))
{
if(OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber)
{
if(OrderProfit()<0)
{
lotsfactor=numero[n]+OrderLots();
return(lotsfactor);
}
else
{
lotsfactor=numero[n];
if(lotsfactor>=0)
{
lotsfactor=1.5;
}
return(lotsfactor);
}
}
}
}
}
return(lotsfactor);
}
응답함
1
등급
프로젝트
139
24%
중재
34
32%
/
44%
기한 초과
59
42%
작업중
비슷한 주문
Estou precisando de um programador especializado em MQL4 para realizar uma correção em uma função de um robô de trading do qual possuo o código-fonte, Trata-se de um ajuste fundamental para que o robô volte a operar de maneira estável e confiável, sem apresentar falhas que possam comprometer os resultados. Busco alguém com experiência em programação para MetaTrader 4 , que compreenda bem a estrutura do código e seja
Revisão de Script Python Metatrader
30 - 45 USD
Desenvolvi um script com ajuda de IA, para operar uma carteira de uma casa de análise, onde basicamente quero comprar ou vender, um ou mais ativos no leilão ou abertura de mercado, onde eu escolho os ativos, e opero em paralelo com o python metatrader 5 na operadora RICO, desenvolvi 3 modos de operação, Leilão, Agressão e Leilão + Agressão, onde basicamente eu tento limitar um preço de acordo com o preço de
Olá, pessoal. Estou procurando um sócio/parceiro para desenvolvimento de estratégias em MQL5. Já possuo um código-fonte pronto, funcional e bem estruturado, com recursos como grid, martingale, trailing stop e diversos filtros operacionais. Ou seja, a base do robô já está desenvolvida. O foco agora seria criar e testar novos sinais de entrada, para acelerar a pesquisa e validação de estratégias. Meu perfil: Sou
"I am looking for an Elite Developer capable of coding a high-frequency multi-symbol synchronization using the OnTimer() function. This project requires mathematical precision for Fibonacci 61.8% dynamic trailing stops. If you can handle low-latency execution across 3 symbols, apply now." EMA 9/21 crossovers + RSI (14) filter across 3 symbols (Multi-symbol sync). News Filter (High Impact events auto-pause). Max
Gostaria de uma EA simples que trace a fibonacci em basicamente tudo e pegue as operaçoes sozinho com a gestao de risco igual ao position size colocando por porcetangem entrar em contato e podemos negociar e explica mais detalhadamente
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
프로젝트 정보
예산
20 - 30 USD
기한
에서 1 로 10 일