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

MQL4 エキスパート

仕事が完了した

実行時間18 日
開発者からのフィードバック
Thanks Bisenti, it's been a pleasure to work with you.
依頼者からのフィードバック
Great work!

指定

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.

ファイル:

ZIP
fxAlgorithm.zip
275.8 Kb

応答済み

1
開発者 1
評価
(8)
プロジェクト
10
40%
仲裁
7
14% / 86%
期限切れ
4
40%
暇
2
開発者 2
評価
(499)
プロジェクト
744
56%
仲裁
48
31% / 31%
期限切れ
120
16%
暇
パブリッシュした人: 1 code
3
開発者 3
評価
(128)
プロジェクト
206
49%
仲裁
29
28% / 48%
期限切れ
33
16%
暇
パブリッシュした人: 1 code
4
開発者 4
評価
(128)
プロジェクト
236
65%
仲裁
30
37% / 23%
期限切れ
49
21%
暇
5
開発者 5
評価
(49)
プロジェクト
134
27%
仲裁
62
13% / 53%
期限切れ
58
43%
暇
パブリッシュした人: 347 articles, 1 code
6
開発者 6
評価
(15)
プロジェクト
68
46%
仲裁
6
0% / 100%
期限切れ
6
9%
暇
7
開発者 7
評価
(1235)
プロジェクト
2820
80%
仲裁
156
22% / 43%
期限切れ
487
17%
暇
8
開発者 8
評価
(30)
プロジェクト
93
49%
仲裁
18
56% / 17%
期限切れ
38
41%
暇
9
開発者 9
評価
(48)
プロジェクト
91
31%
仲裁
28
29% / 43%
期限切れ
42
46%
暇
パブリッシュした人: 1 code
10
開発者 10
評価
(271)
プロジェクト
553
50%
仲裁
57
40% / 37%
期限切れ
227
41%
仕事中
11
開発者 11
評価
(187)
プロジェクト
367
56%
仲裁
45
22% / 56%
期限切れ
188
51%
暇
パブリッシュした人: 1 article, 6 codes
12
開発者 12
評価
(3)
プロジェクト
6
17%
仲裁
1
100% / 0%
期限切れ
0
暇
13
開発者 13
評価
(73)
プロジェクト
257
53%
仲裁
16
50% / 38%
期限切れ
83
32%
暇
14
開発者 14
評価
(18)
プロジェクト
21
38%
仲裁
17
0% / 88%
期限切れ
2
10%
暇
パブリッシュした人: 4 codes
類似した注文
XAUUSD Digger 50 - 300 USD
I want you to create a strategy that fits for my funded account conditions like winrate of 60%+ with good risk reward ratio min 1:2 and max drawdown per day is 2% or 3% and overall should be less then 10% with less consecutive losses should be able to finish the funded stage in of phase 1 8% target and phase 2 of 10% target in a month with good number of trades in a month need journal of all the back tested data and
THE PIP CRUSHER 61+ USD
**PROJECT TITLE:** MQL5 Expert Advisor — Debug, Fix & Finalize (THE PIP CRUSHER) --- **PROJECT TYPE:** Fix and finalize existing MQL5 Expert Advisor code. This is NOT a strategy development job. The strategy is fully designed and the code is already written. I need a skilled MQL5 developer to compile the code, fix all errors and warnings, verify the logic works correctly, and deliver a clean working EA. --- **ABOUT
I need a simple Expert Advisor for MT5 that trades based on RSI overbought/oversold levels. - Entry: Buy when RSI(14) < 30, Sell when RSI(14) > 70 - Exit: Take Profit and Stop Loss as adjustable input parameters (default 50/25 pips) - Position sizing: Risk 1% of account balance per trade, auto-calculated from stop-loss distance - Timeframe and currency pair: adjustable inputs, not hardcoded - Should include basic
1. Trading Instruments: - The robot should trade exclusively on the following currency pairs: - NZD/CHF - NZD/USD - GBP/USD 2. Trading Style: - The robot should implement a day trading strategy, focusing on short-term trades. 3. Risk Management: - Maximum drawdown percentage: 10%. - Stop loss settings: Adjustable based on volatility (suggested default: 30 pips). - Take profit settings: Adjustable
I have an existing working MQL5 Expert Advisor and require an experienced MQL5 programmer/trading-system analyst to independently analyse its historical performance. This is NOT initially a request to rewrite the EA or simply optimize parameters. Current strategy: - MetaTrader 5 - M15 timeframe - EMA / ADX / ATR based - Approximately 1,337 historical trades - Gross Profit approximately USD 271,000 - Gross Loss
Gold robot 30 - 1000 USD
Hello everyone, I’m looking for a developer who has an algorithm in their arsenal that generates quick profits over the long term. I’m interested in a scalping expert advisor—it can be a one-shot, averaging, or grid strategy, with or without TP/SL. Please share your ideas and results; I’ll consider all options. The most important thing is the result. Good luck
Zwivhuya 100+ USD
I would like to be part of this trade because i want to help my family out of the hopeless life we are living now . i thoughts going to school will help me get better job but no i am still sitting for us to eat at home i have to sell my body to someone and get pay with that small money i can buy bread and cooldrink for my family that we can not sleep with emyter stomach
I need an Expert Advisor that trades by signal of ADX and Moving Average indicators. It must check and correctly process possible errors in trading operations. The main criteria of opening and closing positions , direction of Moving Average, Price of last bar . Set the number of lots to trade as an input parameter
I need a new custom MT5 Expert Advisor for XAUUSD.sc on my Vantage cent account. I do not have a ready trading strategy. Please propose simple, specific entry, exit and risk rules first. I will approve the rules before development starts. The EA must open and close trades automatically, place a stop loss on every trade, and have adjustable lot size and maximum loss settings. I do not want martingale or increasing lot
I need an Expert Advisor based on Vantage signals.It must have check and handling of trade operation errors. The main criteria for opening and closing a position: moving average direction the price is higher the previous bar Trade lots is an input parameter

プロジェクト情報

予算
100 - 200 USD