Техническое задание
Hi developers! I'm looking for a good developer to build an EA based on my custom SuperTrend indicator. The requirements are the following:
Features of the EA:
- Start hour and stop hour trade (option to enable/ disable it);
- Stop trading between start and stop hour trading (option to enable/ disable it) ;
- SL & TP ( TP with trailing);
- Capability to compute amount lost (principal + fees);
- Comment with the trade open/ closed detailing the lots size open. How many to recover the principal amount lost and how many to recover the fees.
I have a SuperTrend indicator which I would like to transform in an EA. The logic would be the following:
Entry when the long signal is displayed, short for the opposite way.
If a trade it touches the TP, the trade is closed. However, if the trade is touching the SL or another entry signal in an opposite direction is open, the initial trade will be closed and the second trade will be open with the amount of lots lost and fees in order to recover the initial lost amount (principal + fees)
In the bellow case is an example when the initial trade is not touching the TP and it is displayed another entry in a different direction.
The initial trade was open on XAUUSD with 0.1 lots -> total lost amount is 1300 points resulting in USD 10 lost + USD 0.7 fees.
As a result, the lots size of the second entry would need to be calculated by the EA in order to recover the initial lost of total of USD 10.7 and to make again the initial wanted profit of USD 10.
So, in this case the second entry would have to be of 0.21. In all cases the EA has to round up the lots value.
If the 2nd trade would be lost as well due to touching the SL or another entry signal in an opposite way would be displayed, the same process would be done.
When the EA is computing the new lots size has to take into consideration the initial entry lost size, the fees of the new and old trade and as well the expected TP.
If during the start hour of the break or the end hour of the trading will be triggered and the trade is still running, the trade will be closed and the next open trade will be consider the initial one to be lost.
If the start of the hour trade or break stop is triggered the EA will not wait anymore for the entry signal. In these 2 cases, the EA has to look at the line. If is green, long, if is red, short.Please let me know in the PM if you have experience is building such kind of EA. Thanks! Many green pips for all!
Later Edit: Just want to make sure that the requirements is for the EA to be able to compute by themselv everything. My only manual input to be only the SL and TP.