Code for sending orders on opening of new bar

MQL4 Experten Beratung Forex

Spezifikation

I want my EA to perform the same on a live account with tick data than the performance I get when running it in the Strategy Tester under the "Open Prices" model.

That means when I run my normal EA under the Open Prices model in the Strategy Tester I get a certain result - and i want that result to be duplicated when i run the same EA with the code for opening trades at the opening of a new bar under the "every tick" model.

I understand that the following code does not achieve this objective:

bool IsNewCandle() {
   static datetime lastCandleTime;
   if (Time[0] == lastCandleTime) return false;
   lastCandleTime = Time[0];
   return true;
}
void OnTick() {
   if (IsNewCandle()) {
      // rest of logic goes here
   }
}

Please test this properly on a standard MT4  EA before submitting the code.

Bewerbungen

1
Entwickler 1
Bewertung
(87)
Projekte
134
14%
Schlichtung
41
22% / 29%
Frist nicht eingehalten
14
10%
Frei
2
Entwickler 2
Bewertung
(192)
Projekte
232
30%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
9
4%
Frei
3
Entwickler 3
Bewertung
(1102)
Projekte
1459
45%
Schlichtung
49
73% / 12%
Frist nicht eingehalten
36
2%
Frei
4
Entwickler 4
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
5
Entwickler 5
Bewertung
(1)
Projekte
0
0%
Schlichtung
2
0% / 100%
Frist nicht eingehalten
0
Frei
6
Entwickler 6
Bewertung
(2)
Projekte
3
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(2442)
Projekte
3079
66%
Schlichtung
77
48% / 14%
Frist nicht eingehalten
340
11%
Frei
8
Entwickler 8
Bewertung
(4)
Projekte
4
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
1
25%
Frei
9
Entwickler 9
Bewertung
(261)
Projekte
426
38%
Schlichtung
86
44% / 19%
Frist nicht eingehalten
71
17%
Beschäftigt
10
Entwickler 10
Bewertung
(87)
Projekte
114
26%
Schlichtung
7
29% / 57%
Frist nicht eingehalten
5
4%
Frei
11
Entwickler 11
Bewertung
(26)
Projekte
34
26%
Schlichtung
7
14% / 43%
Frist nicht eingehalten
7
21%
Frei
12
Entwickler 12
Bewertung
(126)
Projekte
151
48%
Schlichtung
6
83% / 17%
Frist nicht eingehalten
2
1%
Frei
13
Entwickler 13
Bewertung
(66)
Projekte
143
34%
Schlichtung
10
10% / 60%
Frist nicht eingehalten
26
18%
Frei
Ähnliche Aufträge
Hi, i want you to code a simple 2 moving average crossover EA for MT5(MQL5). In settings i want to customize the both slow and fast MA Periods, Timeframe, Lots, Take Profit, Maximum stop loss, and trading starting and ending time in UTC. For Buy trades: Fast MA line should cross the Slow MA line from below and closes. If this happens, then place a buy stop order at high price of the crossing bullish candle with the
hello there I need a copy trade for mt4 can ANYONE help me with and let discuss on how to go about it kindly send me message to signify and let discuss mind you i need this urgently let connect to discuss and conclude
I would like the better volume indicator 1.6 in a scanner format. Scanning multiple timeframe and pairs of which can be picked. Would like it to provide all standard notifications and also if pressed to go to the a template timeframe and pair. *To be placed in a table format as the one added. To be able to add which time frame you want to see. *To advise me of the following Climax High - turn the text green High
i have a JavaScript of a code which is a indicator of trading view, i want to convert into python script and make a mql5 automated trading bot which can take automatic trade and also exit when the signals come by the indicator
I need to build EA MT4 that able to connect as copy trading between demo account to real account with partial of positions not all Example: If the demo account open position so the real account will be opened same position with ability to place different volume size based on real account equity and demo equity, and ability to choose which position should be copied, position one, two, three, four, five, six, seven
I would like an existing, older MT4 EA I had developed converted into an MT5 EA and debugged where necessary. The EA is attached and should be fairly self-explanatory. It is a breakout order entry EA with customisable parameters
I require an MT4 Expert Advisor (EA) that automatically places hedge orders when a buy or sell order is placed by me or another EA. The hedge orders will consist of a stop order (either Buy Stop or Sell Stop), with the same lot size as the original order, deployed at a predefined price distance. The EA must ensure that only one hedge order is placed for each trade. The system should monitor trades based on specific
For Chart Panel : Needs a Black Back ground at present its transparent . ✔️ Trading Panel (To be reset weekly = 1-6) 1. EA Status : (on/off) 2. Total Trades Taken : 3. Number of Profitable Trades Today : 4. Number of Loosing Trades Today : 5. Number of Profitable Trades This Week : 6. Number of Loosing Trades This Week : (To be Reset every Month = 7-9) 7. Number of Profitable Trades This Month : 8. Number of Loosing
my request is to convert a trading view indicator to mt4. I have a supertrend indicator for trading view or pine script. and all I want is to convert it for to mt4 or mql4
I have more detailed audio/ video attached Close All and restart = tru ___________________________________________ RULES EA MQL5 EA requirements below. MQ5 source code The EA must work in strategy tester with out any errors. The EA must be efficient, must execute trades quickly and not slow down if placed on many charts. require MQ5 source code when code is completed

Projektdetails

Budget
48+ USD
Für die Entwickler
43.2 USD
Ausführungsfristen
von 1 bis 3 Tag(e)