Change my Expert code(Simple)

MQL4 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 37 saniye
Müşteri tarafından geri bildirim
Perfect programmer, I will work with him again
Geliştirici tarafından geri bildirim
Excellent customer, highly recommended!

İş Gereklilikleri

Hello


I have a simple code:

void OnTick()
  {
//---

double current_bid = SymbolInfoDouble(_Symbol, SYMBOL_BID);
double current_ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK); 
Print("First");
Print(current_ask);
Sleep(10000);
double current_ask_new = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
Print("Second");
Print(current_ask_new);
Print("Difference");
Print(int(current_ask_new-current_ask)*Point);
}


It print the current price and then wait 10 sec's and print the price after 10 sec's

The problem is: It works on live Meta correctly, But I know that sleep() function doesn't works on strategy tester, I want to modify the above code that works on strategy tester


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(590)
Projeler
789
71%
Arabuluculuk
9
33% / 33%
Süresi dolmuş
22
3%
Serbest
2
Geliştirici 2
Derecelendirme
(87)
Projeler
134
14%
Arabuluculuk
41
22% / 29%
Süresi dolmuş
14
10%
Serbest
3
Geliştirici 3
Derecelendirme
(229)
Projeler
339
49%
Arabuluculuk
21
5% / 33%
Süresi dolmuş
24
7%
Serbest
4
Geliştirici 4
Derecelendirme
(2)
Projeler
2
0%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
1
50%
Serbest
5
Geliştirici 5
Derecelendirme
(647)
Projeler
1295
67%
Arabuluculuk
84
26% / 49%
Süresi dolmuş
338
26%
Serbest
6
Geliştirici 6
Derecelendirme
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
7
Geliştirici 7
Derecelendirme
(210)
Projeler
252
78%
Arabuluculuk
3
67% / 33%
Süresi dolmuş
19
8%
Serbest
8
Geliştirici 8
Derecelendirme
(42)
Projeler
70
43%
Arabuluculuk
6
33% / 50%
Süresi dolmuş
19
27%
Serbest
9
Geliştirici 9
Derecelendirme
(356)
Projeler
632
26%
Arabuluculuk
89
73% / 13%
Süresi dolmuş
12
2%
Serbest
10
Geliştirici 10
Derecelendirme
(257)
Projeler
341
58%
Arabuluculuk
7
14% / 71%
Süresi dolmuş
9
3%
Serbest
Benzer siparişler
Hello, send robot models with a solid strategy (to trade forex), I want to use it to make money for the week. It is important that you present me with your profitability graph and a test. I also want to hire him for future jobs
I am looking to develop an automated trading bot based on a strategy involving the crossing of four Simple Moving Averages (SMA). The bot should be capable of entering trades based on this strategy. Additionally, I would like to incorporate some custom diversions tailored for NinjaTrader
Seeking an experienced MQL5 developer to create a sophisticated Expert Advisor focused on harmonic pattern trading . The EA will be designed to identify and trade based on popular harmonic patterns in the forex market. Entry and Exit Logic: Develop smart entry and exit rules based on pattern completions and price action confirmations. Risk Management: Incorporate adjustable risk-per-trade settings and position sizing
preciso de um robô com duas médias móveis, uma exponencial high e uma exponencial low. preciso também ter a opção de utilizar e todos os tempos gráficos e alterar os parâmetros das médias. entrada de compra será feita quando um candle de alta romper e fechar a cima da média high e fechará a posição quando um candle de baixa romper e fechar a baixo da média low. a venda será feita quando o candle de baixa romper e
Description - An expert advisor(s), placing sell trades in EUR/USD, based on the close price of the previous two candles, as shown in the figure below. The trades would be made in the 5 minute, 1 hour, and 1 day timeframes. In the 5 minute and 1 hour timeframes the market orders would be placed at the start of a new candle, at specific times EST. The order would be cancelled at the close of that candle, i.e after 5
Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link
Develop a simple trading robot from rainbow oscillator Additional features Include timeframe specification in rainbow oscillator trailing features moving average filter TP (true/false) SL (true/false) Fixed lot Risk percentage Percentage profit lock
Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link
I need a dashboard that shows my various accounts that shows balance, equity, number of trades open, drawdown and some more information. I want to use it to monitor my accounts in one screen or chart. If there is anyone who can do it please show me the screenshot of your sample
Hi, I need a robot, which wil get instructions to trade in 3 symbols at the same time based on few parameters and calculations. Example: There is 1 symbol called Gold-Near and the rate for it is 1000-1002 If i specify that when the rate reaches 1050, it should sell 1 lot Upon execution it will have to sell 1 lot of cme gold, buy 3 lots of mcx gold and buy currently (lots will be based on calculation). All the

Proje bilgisi

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