Auftrag beendet
Ausführungszeit 2 Minuten
Bewertung des Entwicklers
Excellent customer. Clear specifications and fast payment. Thank you.
Spezifikation
I want an EA that closes open positions at a fixed time.
for example.
I have an open buy trade on EURUSD, and i want it to close at say 4am, regardless of if it is in profit or not. if it has not hit my tp or sl by 4am i want the EA to close it.
I had AI write a code for me, but i have errors and i dont know how to fix it.
#property strict // Define the exit time (hours and minutes) int exitHour = 16; int exitMinute = 0; // Timer interval (in seconds) - Adjust as needed int timerInterval = 60; // Check every minute // Function to check if current time matches exit time bool IsExitTime() { time_t currentTime = TimeCurrent(); tm someTime; gmtime(¤tTime, &someTime); // Assuming you have gmtime defined return (someTime.tm_hour == exitHour && someTime.tm_min == exitMinute); } int OnTimer() { // Flag to prevent multiple executions within the timer interval static bool alreadyExecuted = false; // Check for first execution or exit time reached if (!alreadyExecuted && IsExitTime()) { alreadyExecuted = true; // Loop through all open positions int totalPositions = PositionsTotal(); for (int i = 0; i < totalPositions; i++) { // Get position information position_info position = PositionGet(i); if (position.magic == EMPTY) continue; // Skip positions without magic number // Close the position double lots = position.lot; int result = OrderClose(position.ticket, lots, position.bid ? position.bid : position.ask, 0, ""); if (result != RET_OK) { Print("Error closing position:", GetLastError()); } } } return 0; }
Bewerbungen
1
Bewertung
Projekte
849
61%
Schlichtung
33
27%
/
45%
Frist nicht eingehalten
24
3%
Frei
Veröffentlicht: 1 Beispiel
2
Bewertung
Projekte
45
47%
Schlichtung
5
40%
/
60%
Frist nicht eingehalten
9
20%
Frei
Veröffentlicht: 1 Beispiel
3
Bewertung
Projekte
457
55%
Schlichtung
24
54%
/
17%
Frist nicht eingehalten
31
7%
Arbeitet
4
Bewertung
Projekte
246
74%
Schlichtung
7
100%
/
0%
Frist nicht eingehalten
1
0%
Frei
Veröffentlicht: 1 Artikel
5
Bewertung
Projekte
21
19%
Schlichtung
5
40%
/
40%
Frist nicht eingehalten
0
Frei
6
Bewertung
Projekte
29
14%
Schlichtung
3
0%
/
67%
Frist nicht eingehalten
3
10%
Arbeitet
7
Bewertung
Projekte
9
0%
Schlichtung
1
0%
/
100%
Frist nicht eingehalten
2
22%
Frei
8
Bewertung
Projekte
64
20%
Schlichtung
11
27%
/
55%
Frist nicht eingehalten
5
8%
Frei
9
Bewertung
Projekte
6
33%
Schlichtung
4
0%
/
100%
Frist nicht eingehalten
0
Frei
10
Bewertung
Projekte
945
47%
Schlichtung
309
58%
/
27%
Frist nicht eingehalten
125
13%
Frei
11
Bewertung
Projekte
0
0%
Schlichtung
1
0%
/
100%
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
I need a professional XAUUSD signal indicator for MetaTrader 5, written entirely in MQL5 (.mq5). IMPORTANT: This is NOT an auto-trading EA. It must never open, close or modify trades. It only analyzes XAUUSD and generates signals + MT5 push notifications. 1. Multi-timeframe analysis: H4 → H1 → M30 → M15 → M10 → M5 → M1. 2. Detect market structure: - Swing High / Swing Low - BOS - MSS - CHOCH - Bullish/Bearish HTF
I would like to create a tradingview robot that will sync with tradovate. My strategy is as follows: Chart Setup - MES on left and MNQ on right. The MES chart has quarter levels on it. The MNQ has the volume indicator. Trading Session is from 9:30AM EST - 11:00AM EST If most recent price action has crossed *up* a quarter level on MES, I look for *sells* on MNQ. My trigger for a sell is a bearish engulfing candlestick
Smart money concepts EA
90 - 125 USD
Hi, I would like to commission an Expert Advisor (EA) for MetaTrader 5 (MT5) based on the Smart Money Concepts (LuxAlgo) indicator, which is available in the MQL5 Market. Below are the detailed specifications for the EA: 1. General Parameters & Symbol Trading Asset: Gold (XAUUSD) Timeframe: 5-Minute (M5) Indicator Integration: Integration with "Smart Money Concepts (LuxAlgo - Smart Money Concepts)" via
We are looking for an experienced MQL5 developer who also has real trading experience to build our existing trading strategy into a fully automated MT5 Expert Advisor (EA). We already have our entry and exit trading rules documented . We are not looking for someone to invent a strategy for us. We need someone who understands trading well enough to understand our rules, discuss them with us in normal trading terms
XAUUSD Reversal EA
30 USD
Hello, I need an MQL5 Expert Advisor for MT5 on XAUUSD (H1) using a 1.0 lot size where every $1 movement matters. The logic must work as follows: When any active trade reaches $20.0 in profit, close that specific trade immediately and open a new opposite trade automatically. When an active trade reaches a loss of $4.0, DO NOT close the existing trade; instead, keep it open and immediately open a new opposite trade
I'm looking to purchase a profitable trading robot (EA) for MetaTrader. Requirements: Backtest Requirements: Verified backtest results covering exactly 2 years of historical data (no more, no less) Data must be from a reputable source with tick-level accuracy (99% modeling quality preferred) Please include key metrics: total net profit, profit factor, maximum drawdown, win rate, and Sharpe ratio Strategy Explanation
Surebot
100+ USD
I want a sure bot that will be able to plat a good and nice trade thst i will benefit from and that i all use to make it in life
i have indicator for Trading View, also copy for NT, i need someone to improve and check the NT version (indicator is simple is volume density koncept)…. when i put same settings on TV version and NT version i have diffrerent results, but this can be because diffrent market data or fact that TV sending tick info in blocks , not tick by tick like NT8 on both. I(ndicator base on counting volume) so besied that is it
MT5 Expert — Custom Manual Fibonacci Automation & Cycle Synchronization Project Overview I am looking for an experienced MT5 / MQL5 Expert developer to build a fully customized Expert based on my own chart cycle/engine and manual Fibonacci workflow. This is not an auto-trading robot . The Expert is designed to assist my manual trading workflow by automating the repetitive chart and Fibonacci process while keeping the
Guys hi! Need a profitable trading Advisor for (MT5)
200 - 1200 USD
Hi, I am looking for a profitable MT5 EA,If you are interested in this job, grateful if you could provide a brief description of the strategy and one week demo trial , Thank you
Projektdetails
Budget
30+ USD
Ausführungsfristen
bis 1 Tag(e)