Auftrag beendet
Ausführungszeit 2 Minuten
Bewertung des Kunden
Great job, very professional and fast.
Bewertung des Entwicklers
Great customer, very co-operative and easy to work with.
Spezifikation
Hello,
when I close my position manually all is well my EA works great,
but when I close my position with another EA it does not go.
Example:
I drag my EA on my chart the first order opens at 0.01 and if my StopLoss is hit it opens
a second position at 0.02 and if my SL is hit he opens a position at 0.03 ect ... and it works well
but when I get in profit and my other EA closes the position and they close them well, my EA should
start again from the beginning 0.01 then 0.02 then 0.03 ect .. but it opens my first position to 0.02
and if my trade is a winner it goes to 0.03 instead of 0.01.
I put you the other EA that closes the positions.
when I close my position manually all is well my EA works great,
but when I close my position with another EA it does not go.
Example:
I drag my EA on my chart the first order opens at 0.01 and if my StopLoss is hit it opens
a second position at 0.02 and if my SL is hit he opens a position at 0.03 ect ... and it works well
but when I get in profit and my other EA closes the position and they close them well, my EA should
start again from the beginning 0.01 then 0.02 then 0.03 ect .. but it opens my first position to 0.02
and if my trade is a winner it goes to 0.03 instead of 0.01.
I put you the other EA that closes the positions.
#property copyright "xxx" #property link "http://www.mql5.com" #property version "1.00" #property strict extern double lots1 = 0.01; extern double lots2 = 0.02; extern double lots3 = 0.03; extern double lots4 = 0.04; extern double lots5 = 0.05; input int TakeProfit1 = 1000 ; input int StopLoss1 = 3 ; input int TakeProfit2 = 1000 ; input int StopLoss2 = 2 ; input int TakeProfit3 = 1000 ; input int StopLoss3 = 3 ; input int TakeProfit4 = 1000 ; input int StopLoss4 = 4 ; input int TakeProfit5 = 1000 ; input int StopLoss5 = 4 ; extern int magic = 111112; //extern double Level = 1.3509; //extern double MaxDeviation = 9; // Max Deviation, points bool RunOnce=false; int last_order_check = false; datetime EaStartTime=TimeCurrent(); double takeprofit1=TakeProfit1; double stoploss1 =StopLoss1; double takeprofit2=TakeProfit2; double stoploss2 =StopLoss2; double takeprofit3=TakeProfit3; double stoploss3 =StopLoss3; double takeprofit4=TakeProfit4; double stoploss4 =StopLoss4; double takeprofit5=TakeProfit5; double stoploss5 =StopLoss5; //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { RunOnce=false; MathSrand(GetTickCount()); if(Digits==5 || Digits==3) { takeprofit1 =TakeProfit1*10; stoploss1 =StopLoss1*10; takeprofit2 =TakeProfit2*10; stoploss2 =StopLoss2*10; takeprofit3 =TakeProfit3*10; stoploss3 =StopLoss3*10; takeprofit4 =TakeProfit4*10; stoploss4 =StopLoss4*10; takeprofit5 =TakeProfit5*10; } return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnTimer() { OnTick(); } void OnDeinit(const int reason) { //--- } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { if(IsLastOrderClose()) { OnInit(); Print("Ea Closed Manually "); EaStartTime=TimeCurrent(); } int ticet; int t=MathRand(); if(CountVsego()==0) { if(t>16384) { if(Counts()==0)// && (RunOnce || (Ask >=Level && Ask<=Level+(MaxDeviation*_Point) && Level !=0))) { ticet=OrderSend(Symbol(),OP_BUY,lots1,Ask,3,Bid-stoploss1*Point,Ask+takeprofit1*Point,"1",magic,0,clrGreen); if(ticet>0) { RunOnce=true; } } } // Partie 1 else if(t<16384) { if(Counts()==0)// && (RunOnce || (Bid <=Level && Bid >= Level-(MaxDeviation*_Point) && Level !=0))) { ticet=OrderSend(Symbol(),OP_SELL,lots1,Bid,3,Ask+stoploss1*Point,Bid-takeprofit1*Point,"1",magic,0,clrRed); if(ticet>0) { RunOnce=true; } } } if(t>16384) { if(Counts()==1)// && (RunOnce || (Ask >=Level && Ask<=Level+(MaxDeviation*_Point) && Level !=0))) { ticet=OrderSend(Symbol(),OP_BUY,lots2,Ask,3,Bid-stoploss2*Point,Ask+takeprofit2*Point,"2",magic,0,clrGreen); if(ticet>0) { RunOnce=true; } } } // Partie 2 else if(t<16384) { if(Counts()==1)// && (RunOnce || (Bid <=Level && Bid >= Level-(MaxDeviation*_Point) && Level !=0))) { ticet=OrderSend(Symbol(),OP_SELL,lots2,Bid,3,Ask+stoploss2*Point,Bid-takeprofit2*Point,"2",magic,0,clrRed); if(ticet>0) { RunOnce=true; } } } if(t>16384) { if(Counts()==2)// && (RunOnce || (Ask >=Level && Ask<=Level+(MaxDeviation*_Point) && Level !=0))) { ticet=OrderSend(Symbol(),OP_BUY,lots3,Ask,3,Bid-stoploss3*Point,Ask+takeprofit3*Point,"3",magic,0,clrGreen); if(ticet>0) { RunOnce=true; } } } //Partie 3 else if(t<16384) { if(Counts()==2)// && (RunOnce || (Bid <=Level && Bid >= Level-(MaxDeviation*_Point) && Level !=0))) { ticet=OrderSend(Symbol(),OP_SELL,lots3,Bid,3,Ask+stoploss3*Point,Bid-takeprofit3*Point,"3",magic,0,clrRed); if(ticet>0) { RunOnce=true; } } } if(t>16384) { if(Counts()==3)// && (RunOnce || (Ask >=Level && Ask<=Level+(MaxDeviation*_Point) && Level !=0))) { ticet=OrderSend(Symbol(),OP_BUY,lots4,Ask,3,Bid-stoploss4*Point,Ask+takeprofit4*Point,"4",magic,0,clrGreen); if(ticet>0) { RunOnce=true; } } } // Partie 4 else if(t<16384) { if(Counts()==3)// && (RunOnce || (Bid <=Level && Bid >= Level-(MaxDeviation*_Point) && Level !=0))) { ticet=OrderSend(Symbol(),OP_SELL,lots4,Bid,3,Ask+stoploss4*Point,Bid-takeprofit4*Point,"4",magic,0,clrRed); if(ticet>0) { RunOnce=true; } } } if(t>16384) { if(Counts()==4)// && (RunOnce || (Ask >=Level && Ask<=Level+(MaxDeviation*_Point) && Level !=0))) { ticet=OrderSend(Symbol(),OP_BUY,lots5,Ask,3,Bid-stoploss5*Point,Ask+takeprofit5*Point,"5",magic,0,clrGreen); if(ticet>0) { RunOnce=true; } } } // Partie 5 else if(t<16384) { if(Counts()==4)// && (RunOnce || (Bid <=Level && Bid >= Level-(MaxDeviation*_Point) && Level !=0))) { ticet=OrderSend(Symbol(),OP_SELL,lots5,Bid,3,Ask+stoploss5*Point,Bid-takeprofit5*Point,"5",magic,0,clrRed); if(ticet>0) { RunOnce=true; } } } } } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int CountSELL() { int count=0; int i; for(i=OrdersTotal()-1;i>=0;i--) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) { if(OrderSymbol()==Symbol() && OrderMagicNumber()==magic && OrderType()==OP_SELL) count++; } } return(count); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int CountBUY() { int count=0; int i; for(i=OrdersTotal()-1;i>=0;i--) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) { if(OrderSymbol()==Symbol() && OrderMagicNumber()==magic && OrderType()==OP_BUY) count++; } } return(count); } //+------------------------------------------------------------------+ int Counts() { int count=0,i; for(i=OrdersHistoryTotal()-1;i>=0;i--) { if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)) { if(OrderSymbol()==Symbol() && OrderMagicNumber()==magic && OrderCloseTime()>=EaStartTime) count++; if(count > 4 && OrderCloseTime()>=EaStartTime) count=0; } } return(count); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int CountVsego() { int Vsego; Vsego=CountBUY()+CountSELL(); return(Vsego); } //+------------------------------------------------------------------+ bool IsLastOrderClose() { bool signal = false; for(int i=OrdersHistoryTotal()-1;i>=0;i--) { bool select = OrderSelect(i,SELECT_BY_POS,MODE_HISTORY); if(select && OrderSymbol()==_Symbol && OrderMagicNumber()==magic) { if(OrderType()==OP_BUY && OrderCloseTime()>=EaStartTime) { if(OrderClosePrice()>OrderStopLoss() && OrderClosePrice()<OrderTakeProfit()) { signal = true; } break; } else if(OrderType()==OP_SELL && OrderCloseTime()>=EaStartTime) { if(OrderClosePrice()<OrderStopLoss() && OrderClosePrice()>OrderTakeProfit()) { signal = true; } break; } break; } } return(signal); }
the other EA that closes the positions.
//+------------------------------------------------------------------+ //| TakeProfit 1 | //+------------------------------------------------------------------+ #property copyright "" #property link "" extern double My_Money_Equity_Target=0.10; int Slippage=4; int i; double EquityTarget; //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ int init() { //---- EquityTarget = AccountBalance()+My_Money_Equity_Target; //---- return(0); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ int start() { if (AccountEquity()>= EquityTarget) { for(i=OrdersTotal()-1;i>=0;i--) { if(OrderSelect(i,SELECT_BY_POS)) { bool Res=false; if(OrderType()==OP_BUY) { Res = OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),Slippage,clrNONE); }else if(OrderType()==OP_SELL) { Res = OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_ASK),Slippage,clrNONE); }else { Res = OrderDelete(OrderTicket()); } } } Print ("Equity reached to ",DoubleToStr(AccountEquity(),2)); if(!Res) return(0); EquityTarget = AccountBalance()+My_Money_Equity_Target; } Comment("Balance: ",AccountBalance(),", Account Equity: ",AccountEquity(),", Account Profit: ",AccountProfit(), "\nMy Account Equity Target: ",EquityTarget); return(0); }
Bewerbungen
1
Bewertung
Projekte
255
30%
Schlichtung
0
Frist nicht eingehalten
3
1%
Arbeitet
Veröffentlicht: 2 Beispiele
2
Bewertung
Projekte
680
57%
Schlichtung
25
16%
/
60%
Frist nicht eingehalten
228
34%
Frei
3
Bewertung
Projekte
789
71%
Schlichtung
9
33%
/
33%
Frist nicht eingehalten
22
3%
Frei
Veröffentlicht: 8 Beispiele
4
Bewertung
Projekte
507
40%
Schlichtung
159
17%
/
74%
Frist nicht eingehalten
99
20%
Beschäftigt
5
Bewertung
Projekte
1462
63%
Schlichtung
21
57%
/
10%
Frist nicht eingehalten
43
3%
Frei
6
Bewertung
Projekte
74
50%
Schlichtung
5
0%
/
60%
Frist nicht eingehalten
19
26%
Frei
Ähnliche Aufträge
1. Project Objective We require the design, development, deployment, and go-live of a fully functional synthetic token CFD on MetaTrader 5. The instrument (JOJOUSD) must: Be visible to all clients Be fully tradable (long & short) Be priced dynamically in real time Display live charts and candles Calculate floating and closed P/L correctly in USD Behave exactly like a native MT5 CFD The solution must be implemented
Gold robot Ga1
30 - 200 USD
mport pandas as pd import numpy as np def detecter_tendance(data): # Code pour détecter la tendance pass def identifier_niveaux(data): # Code pour identifier les niveaux de support et de résistance pass def calculer_stop_loss(tendance, support, resistance): # Code pour calculer les stop loss pass def calculer_profils(tendance, support, resistance): # Code pour calculer les profils mport pandas as pd
Create trading alerts straight to phone
30 - 200 USD
European Central Bank (ECB) Interest Rate Decision The European Central Bank left interest rates unchanged at its first policy meeting of 2026, in line with expectations. source: https://www.mql5.com/en/economic-calendar/european-union/ecb-interest-rate-decision '407332776' : added order #481999464 sell 0.01 BTCUSDm at market
I am looking for a professional developer to build a custom trading analysis software for me. This tool is NOT an automated trading bot (EA); it is an analysis dashboard to help me identify high-probability setups based on my strategy. Key Requirements: Multi-Timeframe Analysis: The software should scan 4 different timeframes (M15, M30, H1, H4, D1, WK1, MTH1) and alert me when my conditions are met. Indicator
Core Requirements: Two selectable timeframes - dropdown inputs to choose from M1, M5, M15, H1, H4, D1, W1, MN1 Timeframe 1 = Chart's own timeframe (if chart is M5, TF1 should be M5) Timeframe 2 = Higher timeframe for confluence All Ichimoku components displayed for both timeframes: Tenkan-sen Kijun-sen Senkou Span A Senkou Span B Chikou Span Cloud (bullish and bearish) Technical Settings: All buffers accessible for
Hello everyone, I am looking for a highly experienced MQL5 developer to build a fully automated Expert Advisor (EA) based strictly on Smart Money Concepts (SMC) 🔍 Core Strategy Requirements (SMC Only) The EA must be based on Advanced Smart Money Concepts , including: ✅ Market Structure (BOS & CHOCH) ✅ Liquidity concepts (equal highs/lows, stop hunts)✅ Trap Blocks / Fake Order Blocks detection ✅ Valid Order
AI SIGNAL GENERATING BOT
30 - 35 USD
I need a AI signal generating bot for forex trading that use the latest ai technology to track real time forex market, analyse and give signals. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame
Hello I want to convert my tradingview indicators into Ninja trader can anyone help me with it it is urgent and I will like to discuss more about it to you if you can help me Kindly do well to bid on it
📌 JOB DESCRIPTION – FULLY AUTOMATED TRADING SYSTEM I am looking for an experienced developer to build a fully automated end-to-end trading system for MetaTrader 5. This is not an indicator-based bot and not a discretionary or black-box AI system. The system must follow a strict, deterministic rule-based trading framework that is already defined. 🎯 PROJECT GOAL Build a system where: A backend continuously evaluates
EA with Zones
30+ USD
Good day! I have an indicator .mq5 this indicator calculates and draw zones on the chart. My request is to add these specific zones drawn and calculated exactly as the indicator in the EA. A replicate behavior of the zones from the indicator to the EA. Thank you
Projektdetails
Budget
30+ USD
Ausführungsfristen
bis 8 Tag(e)