Minimal Take Profit (Expert Adviser needs to decide to open and close trades based on immediate past currency prices)

MQL4 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 18 gün
Geliştirici tarafından geri bildirim
Thanks Bisenti, it's been a pleasure to work with you.
Müşteri tarafından geri bildirim
Great work!

İş Gereklilikleri

I am new to Forex trading and not familiar with the Jargon and principles but this is what I have in mind which I will explain the best I can...

 

A trade opens with both a Buy (B) and  Sell (S) Order Price (OP) at an either automated or Manually set Time (T), The Periodicity (P) is set to say, 5 Minutes to check the current Currency Price (CP) every 5 Minutes. The Currency Price (CP) at 5 minutes is compared with the order price of both Buy and Sell orders. If the Currency Price (CP) is greater than the Order Price (OP) then the system continues with the Buy order and closes off the Sell order. If the Currency price is less than the Order Price (OP), then the system continues with the Sell and closes of the Buy Order (B).

 

Buy

 

Let’s Say the CP (at T+P) is greater than the OP, then the Sell will be closed off with a loss of (L = CP - OP), the Buy stays open because the Currency Price (CP) is greater than the Order Price (OP). This process has shown us in which direction the order is moving, upwards.

 

The System saves the New Price (NP), which is the Currency Price (CP) at Time (T). At time (T = T+2P), the system again compares the Currency Price (CP) with the New Price (NP) and if the CP is greater than NP, then CP becomes the new NP. At time (T = T+3P), the system will again compare the Currency Price (CP) with the New Price (NP) and again, if CP is greater the NP, then CP becomes the new NP. This process repeats itself until NP is greater than CP and at this Closing Price (ClP), the System closes the order to take whatever profit has been made and at the same time, opening a New Buy (B) and Sell (S) order at a new Order Price (OP) to begin the process again.

 

Sell

 

Let’s Say the CP (at T+P) is Less than the OP, then the Buy will be closed off with a loss of (L = OP - CP), the Sell stays open because the Currency Price (CP) is less than the Order Price (OP). This process has shown us in which direction the order is moving, downwards.

 

The System saves the New Price (NP), which is the Currency Price (CP) at Time (T). At time (T = T+2P), the system again compares the Currency Price (CP) with the New Price (NP) and if the CP is less than NP, then CP becomes the new NP. At time (T = T+3P), the system will again compare the Currency Price (CP) with the New Price (NP) and again, if CP is less the NP, then CP becomes the new NP. This process repeats itself until NP is less than CP and at this Closing Price (ClP), the System closes the order to take whatever profit has been made and at the same time, opening a New Buy (B) and Sell (S) order at a new Order Price (OP) to begin the process again.

 

This Entire Process is recurring and the logic applies to both the Sell and Buy orders. The actual profit of a trade would be the difference between the Order Price (OP) and Closing Price (ClP) minus the loss (L).

Please find attached an illustration to further clarify my explanation.

Dosyalar:

ZIP
fxAlgorithm.zip
275.8 Kb

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(8)
Projeler
10
40%
Arabuluculuk
7
14% / 86%
Süresi dolmuş
4
40%
Serbest
2
Geliştirici 2
Derecelendirme
(466)
Projeler
697
56%
Arabuluculuk
43
30% / 33%
Süresi dolmuş
113
16%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(128)
Projeler
206
49%
Arabuluculuk
29
28% / 48%
Süresi dolmuş
33
16%
Serbest
4
Geliştirici 4
Derecelendirme
(128)
Projeler
236
65%
Arabuluculuk
30
37% / 23%
Süresi dolmuş
49
21%
Serbest
5
Geliştirici 5
Derecelendirme
(49)
Projeler
134
27%
Arabuluculuk
62
13% / 53%
Süresi dolmuş
58
43%
Serbest
6
Geliştirici 6
Derecelendirme
(15)
Projeler
68
46%
Arabuluculuk
6
0% / 100%
Süresi dolmuş
6
9%
Serbest
7
Geliştirici 7
Derecelendirme
(1235)
Projeler
2820
80%
Arabuluculuk
156
22% / 43%
Süresi dolmuş
488
17%
Serbest
8
Geliştirici 8
Derecelendirme
(30)
Projeler
93
49%
Arabuluculuk
18
56% / 17%
Süresi dolmuş
38
41%
Serbest
9
Geliştirici 9
Derecelendirme
(48)
Projeler
91
31%
Arabuluculuk
28
29% / 43%
Süresi dolmuş
42
46%
Serbest
10
Geliştirici 10
Derecelendirme
(264)
Projeler
538
50%
Arabuluculuk
55
40% / 36%
Süresi dolmuş
224
42%
Çalışıyor
11
Geliştirici 11
Derecelendirme
(187)
Projeler
367
56%
Arabuluculuk
45
22% / 56%
Süresi dolmuş
188
51%
Serbest
12
Geliştirici 12
Derecelendirme
(3)
Projeler
6
17%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
0
Serbest
13
Geliştirici 13
Derecelendirme
(71)
Projeler
254
53%
Arabuluculuk
16
50% / 38%
Süresi dolmuş
83
33%
Serbest
14
Geliştirici 14
Derecelendirme
(18)
Projeler
21
38%
Arabuluculuk
17
0% / 88%
Süresi dolmuş
2
10%
Serbest
Benzer siparişler
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform
Hi, I have an indicator from my friend, I want to copy it to my own MT5 can you do that for me. Here is the link
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it

Proje bilgisi

Bütçe
100 - 200 USD
Geliştirici için
90 - 180 USD