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

MQL4 Experts

Trabalho concluído

Tempo de execução 18 dias
Comentário do desenvolvedor
Thanks Bisenti, it's been a pleasure to work with you.
Comentário do cliente
Great work!

Termos de Referência

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.

Arquivos anexados:

ZIP
fxAlgorithm.zip
275.8 Kb

Respondido

1
Desenvolvedor 1
Classificação
(8)
Projetos
10
40%
Arbitragem
7
14% / 86%
Expirado
4
40%
Livre
2
Desenvolvedor 2
Classificação
(461)
Projetos
688
56%
Arbitragem
43
30% / 33%
Expirado
110
16%
Trabalhando
3
Desenvolvedor 3
Classificação
(128)
Projetos
206
49%
Arbitragem
29
28% / 48%
Expirado
33
16%
Livre
4
Desenvolvedor 4
Classificação
(128)
Projetos
236
65%
Arbitragem
30
37% / 23%
Expirado
49
21%
Livre
5
Desenvolvedor 5
Classificação
(49)
Projetos
134
27%
Arbitragem
62
13% / 53%
Expirado
58
43%
Livre
6
Desenvolvedor 6
Classificação
(15)
Projetos
68
46%
Arbitragem
6
0% / 100%
Expirado
6
9%
Livre
7
Desenvolvedor 7
Classificação
(1235)
Projetos
2820
80%
Arbitragem
156
22% / 43%
Expirado
489
17%
Livre
8
Desenvolvedor 8
Classificação
(30)
Projetos
93
49%
Arbitragem
18
56% / 17%
Expirado
38
41%
Livre
9
Desenvolvedor 9
Classificação
(48)
Projetos
91
31%
Arbitragem
28
29% / 43%
Expirado
42
46%
Livre
10
Desenvolvedor 10
Classificação
(261)
Projetos
535
50%
Arbitragem
54
41% / 37%
Expirado
224
42%
Trabalhando
11
Desenvolvedor 11
Classificação
(187)
Projetos
367
56%
Arbitragem
45
22% / 56%
Expirado
188
51%
Livre
12
Desenvolvedor 12
Classificação
(3)
Projetos
6
17%
Arbitragem
1
100% / 0%
Expirado
0
Livre
13
Desenvolvedor 13
Classificação
(71)
Projetos
254
53%
Arbitragem
16
50% / 38%
Expirado
83
33%
Livre
14
Desenvolvedor 14
Classificação
(18)
Projetos
21
38%
Arbitragem
17
0% / 88%
Expirado
2
10%
Livre
Pedidos semelhantes
Hello, I would like you to help me develop a simple Expert Advisor (EA) for trading the Boom and Crash markets. All the project requirements is available with me . kindly bid if you can develop EA for boom and out crash . Thanks
Hello, I am looking for an programmer to convert a TradingView strategy pine script to MT5 EA auto trade bot. The indicator is based on the FVG/Imbalance (Pine script will be provided) The MT5 EA must return 100% the same results as TradingView script The MT5 EA must include the same options as TradingView The MT5 EA must be errors free
Project Overview: We are seeking an experienced developer to create a custom Copy Trading Expert Advisor (EA) that supports two-way communication between MetaTrader 4 (MT4), MetaTrader 5 (MT5), and cTrader trading terminals. The EA should enable seamless copying of trades from one account to another, incorporating additional settings for flexibility and customization. The project will involve developing a DLL
I am currently seeking the expertise of a skilled MQL5 developer to assist with a custom trading bot project tailored to specific requirements. The project entails the development of a versatile trading bot capable of implementing both manual and automated strategies, with flexibility to switch between strategies seamlessly. Additionally, the bot should be designed to convert profits automatically into USDT, allowing
PRESQUE PAREIL QUE L’AUTRE ROBOT AVEC QUELQUE PETIT CHANGEMENT. IL N’Y AURA PLUS DE SL; SI TU PEUX M’ENVOYER TON MAIL, JE T’ENVOIE LE DOCUMENT QUI EXPLIQUE LE MODELES DU ROBOT QUE JE VEUX. @page { size: 8.27in 11.69in; margin: 0.79in } p { line-height: 115%; margin-bottom: 0.1in; background: transparent }
Mt4 EA 30+ USD
Would it be possible to get a reasonable quote for an MT4 EA with multiple trade entry criteria. With the help of chatgpt I've got a code that compiles without errors or warnings that I have attached in a zip file, it is simply not taking valid trade signals. Not sure if it's of any use to you or if it's better to start from scratch. talk soon
I would like a Forex trading robot for MT5. The market entry signal is based on a TradingView Indicator (I will provide the name of which one), and the robot should execute Buy or Sell trades based on the Buy/Sell alerts that this indicator provides. The TradingView Pine Script is open source, so it will be available for you to see. Closing of positions is done by the SL, TP. The lot size is calculated as a
I trade in future indices of a Brazilian brokerage via MT5 and would like to import the data of another future index (djia future - which does not exist at the brokerage where I operate) into a new window, showing its price and volume variations in the shortest possible time. This new Symbol should also have the capability to be displayed in candlestick mode and adjustments in its timeframe. I will use an indicator
I have an EA with the sourse code but instead of using an FX blue copier to invert the trades i want the EA to reverse its Strategy. For example if the EA wants to buy it will sell. And the stop loss and take profit will be inverted also
Hi I'm looking for a developer who can improve on an existing basic EA that isn't quite working correctly due to a lack of comprehension from the previous coder on the logic. It's a hedging system that trades in the opposite direction to a bad entry by entering every x pips until the average of all the bad trades and the good trades are in profit. It then closes all of them at the same point which is in profit by x

Informações sobre o projeto

Orçamento
100 - 200 USD
Desenvolvedor
90 - 180 USD