Lavoro terminato


Specifiche
Good day,
I have a script with a few errors in it which needs to be corrected. I also require that the script can do the following:
Once I have selected a developer, the script will be handed over in the trade menu.
I will require at least 4 weeks of backtesting as a proof of concept.
1. There must be a start and stop function I can use to either start or stop the script as I please.
2. Trades that are opened are equal to and not greater than 2 at a time.
3. The total of trades must not exceed 6 executions of the script.
4. The script must include logic to handle closed trades, such as adjusting the values of the openTrades and totalTrades variables.
5. Do not open a trade that exceeds more than 1 percent of the total capital amount of the fund rounded up to the nearest whole number.
6. I should be able to choose how many lots (tradesize) before running the script, and should it be greater than 1% of the capital, it should change it automatically to the 1%
as in point 5.
7. The script will need to run until the capital amount has increased by a total no less than 5% and not greater than 10% since the script was started.
8. If the script wants to stop with open positions, the script must wait till the positions are closed, either by margin call level, profit target and loss thershold reached before
stopping.
9. The script must include logic to handle the case of an order being filled at a different price than the one requested,
10. The script must automatically hedge the trade if the trade is showing a loss of 5 percent of the total capital amount of the fund.
11. If a trade has already been hedged and continues to show a loss of 5 percent of the total capital amount of the fund, close the trade down.
12. When hedging a trade, the trader range at time of purchase for the position must be taken into account when calculating the new profit for the trade to close.
13. The strategy must use the Bollinger Bands, MACD and RSI indicators to determine when to open trades, which I can adjust accordingly to suit my needs.
14. Open trades are closed as soon as they show a profit of 1 percent of the total capital amount of the fund.
15. The strategy must close the largest open trade showing a loss if the margin call level is reached.
16. The margin call level should be set at 50% of the account balance.
17. Before opening any trades, the margin call level will need to be checked and should be below 30% of the account balance.
18. Add a function to be able to backtest the script against historical data.
19. All these variables must be flexible, in other words I should be able to alter them before running the script from a User Interface such as changing lots size, the risk profile,
the amount of trades to open, the profit taken, the paremeters of the indicators as well etc.etc.
20. This must be able to run as an automated script, whereby I can click start and stop as I wish.