A quick little job about OrderCloseTime() in my EA.

İş tamamlandı

Tamamlanma süresi: 2 dakika
Müşteri tarafından geri bildirim
Lakshan is very helpful and patient programmer, I would recommend.

İş Gereklilikleri

In my EA i have a block of code within the OnTick area and I need it to only run when a trade closes, instead of every tick. Currently I am using OrderCloseTime() and can get a new number when a trade closes, but as said the code block is running every tick, but it only needs to run once, when a trade closes. I think the bit of code I have is close to how to do it, but the logic of exactly how to do it escapes me so a little help is appreciated. Thanks for looking.


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(188)
Projeler
212
58%
Arabuluculuk
9
11% / 89%
Süresi dolmuş
8
4%
Serbest
2
Geliştirici 2
Derecelendirme
(769)
Projeler
1033
44%
Arabuluculuk
50
8% / 50%
Süresi dolmuş
117
11%
Serbest
3
Geliştirici 3
Derecelendirme
(53)
Projeler
74
26%
Arabuluculuk
30
10% / 63%
Süresi dolmuş
22
30%
Serbest
4
Geliştirici 4
Derecelendirme
(647)
Projeler
1295
67%
Arabuluculuk
84
26% / 49%
Süresi dolmuş
338
26%
Serbest
5
Geliştirici 5
Derecelendirme
(50)
Projeler
80
39%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
(117)
Projeler
138
41%
Arabuluculuk
30
7% / 77%
Süresi dolmuş
17
12%
Serbest
7
Geliştirici 7
Derecelendirme
(1133)
Projeler
1436
62%
Arabuluculuk
21
57% / 10%
Süresi dolmuş
43
3%
Serbest
8
Geliştirici 8
Derecelendirme
(564)
Projeler
933
47%
Arabuluculuk
302
59% / 25%
Süresi dolmuş
125
13%
Yüklendi
9
Geliştirici 9
Derecelendirme
(204)
Projeler
209
28%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
10
Geliştirici 10
Derecelendirme
(130)
Projeler
184
32%
Arabuluculuk
16
31% / 63%
Süresi dolmuş
27
15%
Serbest
11
Geliştirici 11
Derecelendirme
(22)
Projeler
114
98%
Arabuluculuk
4
0% / 75%
Süresi dolmuş
35
31%
Serbest
12
Geliştirici 12
Derecelendirme
(213)
Projeler
246
45%
Arabuluculuk
42
10% / 57%
Süresi dolmuş
5
2%
Serbest
13
Geliştirici 13
Derecelendirme
(17)
Projeler
24
33%
Arabuluculuk
5
20% / 40%
Süresi dolmuş
8
33%
Serbest
14
Geliştirici 14
Derecelendirme
(4)
Projeler
4
75%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
0
Serbest
15
Geliştirici 15
Derecelendirme
(66)
Projeler
143
34%
Arabuluculuk
10
10% / 60%
Süresi dolmuş
26
18%
Serbest
16
Geliştirici 16
Derecelendirme
(586)
Projeler
1048
49%
Arabuluculuk
39
28% / 41%
Süresi dolmuş
49
5%
Çalışıyor
Benzer siparişler
BAR STRADDLE EA 60 - 100 USD
Hello Coding Wizards. I need an EA that places pending buy above / sell below orders on a specific bar as it closes. Stop loss orders for both pending orders are on opposite ends of the bar. It needs to have fast execution speed with functions as follows; Position size based on X % risk of account balance. Works on whatever chart the EA is active on. Identification of "Primary Bar" based on server time entered
EA gold HB king5 100+ USD
// เริ่มต้นโปรแกรม EA input double LotSize = 0.1; // ขนาดของล็อต input double TakeProfit = 50; // จุดกำไร input double StopLoss = 50; // จุดขาดทุน // ฟังก์ชันที่เรียกเมื่อมีการสั่งซื้อ void OnTick() { double MA = iMA(NULL, 0, 14, 0, MODE_SMA, PRICE_CLOSE, 0); // Simple Moving Average (SMA) 14 double Price = Bid; if(Price > MA) // เงื่อนไขสำหรับการซื้อ { if(OrderSelect(0, SELECT_BY_POS) == false) //
I’m looking to turn into code. Trading Instrument - Crude Oil Futures (CL) Chart and Timeframe - 30-second chart Entry Setup 1. Time Focus on the first 30-second candle after 11:00:00 AM New York time. (11:00:00 candle) 2. Candle Size Limit : Skip the trade if the first candle is greater than 10 points. 3. Entry Orders - Place stop orders at the high and low of the first 30-second candle after 11:00:00. - Long Entry
Variable Inputs to be added Order Type : Market , Pending Trade Type : Buy, Sell , Buy & Sell Pending Pips Step : ( Pips Value can be negative or positive to decide on what type of Pending Order ) // If trade type Buy is selected Close Type : Close All ( Bulk Close Option in MT5 ) , Close Individually Close Option : %of Equity , %of Balance , Amount $ , %of No: of Trades Close Type : Buy Only , Sell Only , Buy & Sell
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
Below is the pine eidtor script convert it to MQL5 coding language and create bot based on following condition 1. This all should be on 5-minute chart timeframe 2. For Buy side, buy after closing of second candle when buy signal is given and hold buy position until sell signal is given. 3. For sell side, sell after closing of second candle when sell signal is given and hold sell position until next buy signal will be
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
Here's the bot's trading strategy in a nutshell>>> I would like to make a simple scalping MT5 EA trading bot for the synthetic indices, specifically for the Boom 1000 Index. This MT5 EA trading bot will be based off of the 10 period moving average that follows specific rules for entry. The parameters of the moving average are as follows: Period:10 Shift:1 Method:Linear Weight Apply to:Close The bot will only initiate
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

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
from 1 to 3 gün