Mql4 code to detect the last trade to close

MQL4 EA Strategy modules

작업 종료됨

실행 시간 24 분
고객의 피드백
Quick and good commumication. Did small job for me without delay and instantly made small requested adjustments. Would use again.

명시

Hi,

I need a code written to detect when a trade closes, the last one, so it can be used to run a block of code everytime a trade closes.

So I guess something like this.

 bool tradeclosed
{
code to check if a trade just closed
tradeclosed=false
}
else
{
traseclosed=true
}

//So if a trade just closed
if(tradeclosed=true)
{
run my code
}

Thanks for looking

응답함

1
개발자 1
등급
(53)
프로젝트
74
26%
중재
30
10% / 63%
기한 초과
22
30%
무료
2
개발자 2
등급
(22)
프로젝트
28
29%
중재
3
0% / 67%
기한 초과
7
25%
무료
3
개발자 3
등급
(221)
프로젝트
412
61%
중재
13
38% / 23%
기한 초과
163
40%
무료
게재됨: 51 기고글, 1 코드
4
개발자 4
등급
(50)
프로젝트
80
39%
중재
4
50% / 25%
기한 초과
0
무료
5
개발자 5
등급
(258)
프로젝트
269
29%
중재
2
50% / 0%
기한 초과
3
1%
작업중
게재됨: 2 코드
6
개발자 6
등급
(365)
프로젝트
507
40%
중재
159
17% / 74%
기한 초과
99
20%
로드됨
7
개발자 7
등급
(221)
프로젝트
369
66%
중재
10
50% / 0%
기한 초과
46
12%
무료
8
개발자 8
등급
(66)
프로젝트
95
28%
중재
20
25% / 55%
기한 초과
24
25%
무료
9
개발자 9
등급
(130)
프로젝트
184
32%
중재
18
28% / 67%
기한 초과
27
15%
무료
게재됨: 1 코드
10
개발자 10
등급
(1156)
프로젝트
1462
63%
중재
21
57% / 10%
기한 초과
43
3%
무료
11
개발자 11
등급
(646)
프로젝트
874
48%
중재
29
38% / 17%
기한 초과
63
7%
작업중
12
개발자 12
등급
(90)
프로젝트
118
17%
중재
44
23% / 39%
기한 초과
20
17%
무료
13
개발자 13
등급
(94)
프로젝트
148
59%
중재
16
38% / 13%
기한 초과
25
17%
무료
게재됨: 1 코드
14
개발자 14
등급
(574)
프로젝트
945
47%
중재
309
58% / 27%
기한 초과
125
13%
무료
15
개발자 15
등급
(4)
프로젝트
6
0%
중재
2
0% / 50%
기한 초과
4
67%
무료
비슷한 주문
Project: Custom MT5 Day Trading Expert Advisor I need a custom automated trading robot (EA) for MetaTrader 5, developed in MQL5. Markets: - Gold (XAUUSD) - Selected Forex pairs Trading style: Automated day trading. All positions should be closed according to predefined strategy rules and before the end of the selected trading session. Strategy: The developer should propose a clear trading strategy, explain its rules
Hi, I need NinjaTrader 8 Strategy Analyzer backtests on two of my strategies, each over 1 year AND 3 years of data. Please quote the full job. Common settings: NT8 Strategy Analyzer, MCL (Micro WTI Crude Oil) continuous front-month contract (MCL ##-##), 5-minute bars, 1yr + 3yr of the most recent data, $2.50 round-turn commission per contract. Deliverables per run: full Strategy Analyzer summary (net profit, profit
a { text-decoration: none; color: #464feb; } tr th, tr td { border: 1px solid #e6e6e6; } tr th { background-color: #f5f5f5; } Project Description I need an Expert Advisor (EA) for MetaTrader 5 (MT5) that can automatically trade Gold (XAUUSD) and major Forex pairs. The EA must analyze market conditions, open and close trades automatically, manage risk effectively, and be fully compatible with the MT5 Strategy Tester
To create a unique description that meets the freelance site's requirements, you can type the following: "I am looking for an experienced MQL5 developer to create a custom Forex Expert Advisor. The trading strategy should be based on a moving average crossover system, filtered by the Relative Strength Index indicator. The expert advisor needs to feature distinct strategy modules with adjustable settings for the
Hello, I’d like to develop an AI-powered analysis dashboard for , with a clear, easy-to-use design that works on mobile and web, or on the platform we agree on. I’d like it to include: Main dashboard: Show the market status, the latest data update, and the current signal, if available, including direction, entry price, stop loss, targets, and risk-to-reward ratio. AI signal explanations: Explain in clear language why
Scalping bort 30+ USD
GOLD SCALPING BOT STRATEGY Symbol: XAUUSD (Gold vs USD) Broker: Exness Account: Standard Starting Balance: $20 1. TIMEFRAME - Trend analysis: M15. - Entry timeframe: M5. - Trade only when the market has a clear direction. 2. INDICATORS - EMA 50 - EMA 200 - RSI 14 - Support and Resistance 3. BUY RULES The bot must open a BUY trade only when all these conditions are met: 1. EMA 50 is above EMA 200 on M15. 2. Price is
Request for an Existing Automated Trading System (Expert Advisor) I am looking to acquire an existing, fully functional Expert Advisor (EA) that trades Forex CFDs, with the option of trading other CFDs if the strategy supports them safely. Performance objectives Target average net monthly return: 1.5%. A consistent 1.0% monthly return may be considered if the system demonstrates strong risk control and credible
Are you able to build one bot for stock and one for ninja trader and tell me the win rate on it. I need ninja trader bot that enter buy and exit according the move to do not stay long in the market in each entry . That can follow the smart money concept or other if you have a good one
I need a TradingView Pine Script (v6) indicator that gives BUY and SELL signals in real time on the live chart. MAIN REQUIREMENT – NO REPAINTING: 1. Signals must appear only when the candle closes (barstate.isconfirmed). Example: on 1-min chart, signal for the 10:35 candle must appear at 10:36 and never disappear or move. 2. Signals on historical bars must look exactly the same as they looked live. 3. No lookahead
i need someone to help me create 3 random tradingview strategy i need it for a test, i need it to have 5% to 20% win rate and 1:1 RR, the win rate is very important is the main thing i need those strategy for, i am planning on building a tradingview strategy and i need this 3 tradingview strategy first they are for test on my plans to build the main tradingview strategy, also for he 3 i have a fixed budget of $30 for

프로젝트 정보

예산
30+ USD
기한
에서 1 로 3 일