Specifiche
I need an Expert Advisor (EA) programmed and designed to help me with trading. Requirements:
* The programmer must have experience in implementing software projects.
* The code must be high-quality, clean, clear, and editable at any time, with ownership of the code provided.
* It must work on MT4 and MT5 platforms.
* The maximum project completion time is 3 days.
* The programmer must be cooperative and flexible, providing support and addressing feedback.
The workflow should be as follows:
# A settings screen must be added, consisting of:
A- A field for the risk amount per trade.
B- A button to add a new trade.
C- A drop-down menu to track trade chains, consisting of the following elements:
1/ Chain number
2/ Original trade size
3/ Trade type within the chain (buy/sell) for each trade
4/ The result of trades within the chain (profit/loss) for each trade, which is (amount + overnight cost), as well as the result for the entire chain.
D- A button to close pending trades that have not been activated. After adding to the same currency pair only:
- A button to close all active trades on the same currency pair and another button to close a specific trade.
# Now that the settings screen has been added, let's move to the execution section.
1/ If a new trade is added from the settings:
2/ A new line called the "Activation Line" (blue) will appear on the trading screen. Move it to the desired location.
3/ Press the "Pin" button that appears at the end of the line.
4/ A new line called the "Balance Line" (red) will automatically appear.
5/ You can then move the "Balance Line" to your desired location.
6/ The "Balance Line" is pinned using the "Pin" button at the end of the line. There are two possibilities here:
A/ If the Balance Line is pinned above the execution line, the trade type is "Sell."
B/ If the Balance Line is pinned below the execution line, the trade type is "Buy."
7/ After pinning and setting the trade type, the trade is ready to be executed.
8/ The trade is executed as soon as the price reaches the execution line.
9/ Also, after pinning the Balance Line, it appears automatically. A new line called the "Take Profit Line" is green.
Note that this line is not a requirement for executing the trade. To activate the Take Profit Line, it must be locked using the "Lock" button.
10/ If the price reaches the equilibrium line after the trade is executed, a reverse trade of the same type and size will be opened immediately. The original trade should not be closed.
11/ In this case, we now have two trades: a buy trade and a sell trade, both of the same size. This leads us to a new definition regarding these trades:
"A Chain" is a group of trades linked to each other and to their parent trade.
(End)
Notes:
1/ The settings interface and lines must be well-organized, clean, and presented with consistent and calming colors.
2/ Any trade within the chain can be closed individually without affecting the other trades, even if it is the parent trade. The result is recorded in the chain's total profits. If the parent trade is closed individually, the parent trade's status is changed to the oldest trade in the chain, and trading proceeds accordingly. The basis of this is linking trades to it.
3/ The lines must be moved dynamically and flexibly.
4/ It is possible to activate and deactivate all lines using the lock button located at the end of each line before the trade is executed. After the trade is executed, it cannot be controlled, except for the take-profit line, which can be controlled before and after the trade is executed.
5/ The option to close the trade after activation via settings or a button at the end of the execution line.
6/ The pending order must be within the same Expert Advisor (EA) and not on the trading platform. Execution should be at the bid price only, ensuring the pending order is not affected by the spread.
7/ The EA must calculate the contract size based on the risk amount pre-set in the settings, taking into account the pip price for each pair.
8/ The balance line calculates the contract size based on its distance from the execution line and the pip price for the pair. It also opens a reverse trade if the price reaches the line with the same size, without closing the original trade.
9/ The trade information must be added to the execution line in the center. The required information is:
a- Risk/Reward ratio (e.g., 3:1)
b- Trade profit/loss amount
c- Contract size
d- Series profit/loss amount