工作已完成
指定
I have two requirements: 1) build the EA, 2) help me optimize the EA (make small changes/augmentations) as I collect data.
This trade bot is very simple, and will progressively become more complex over time.
As such, this is a one-time job that will likely spin-off to other jobs as I request changes to the way the EA trades.
Trading strategy is very simple and based on the break of highs and lows (extremes) of the daily candle.
This trading robot program is designed to be implemented on XAUUSD.
First Requirement:
Please make a way to track percentage drawdown on each trade. Such that I can export to csv the drawdown for each trade. (Drawdown percentage = percentage movement from entry to stop loss. Losing trades have a 100% percentage drawdown, but winners will have varying drawdown percentage before hitting takeprofit. I need to be able to see that data for EACH position).
Second Requirement:
At 8AM EST, MONDAY-FRIDAY, enter a buy stop above the daily high, and a sell stop below the daily low.
Stoploss must be at 50% of the daily range for both stop orders. Takeprofit must be the 27% extension of the daily range. Entry must be at the 1.3333% extension. (The corresponding RR for each trade should be .5:1).
After a trade gets triggered, bot must confirm that the 5min candle that triggers the trade MUST ALSO close PAST the entry level (at or above the 1.333% extension for buy, or at or below the -1.333% extension for sell), or else, the trade must be closed.
If trade is closed because of a lack of a proper 5min close, bot must continue to monitor the price for appropriate close.
If sufficient close is confirmed on the 5min timeframe, LIMIT order must be created that is identical to the original stop order trade (same entry, stoploss, and takeprofit).
If price moves 80% of the range between entry and takeprofit and our position has NOT been triggered, the bot must close the limit order.
For a triggered position if/when price travels 80% of the distance between the entry and the takeprofit, stoploss must be moved to breakeven.
No new orders can be created until 6PM EST (and again at 8AM EST the following day).
Again at 6PM EST MONDAY-THURSDAY, current pending orders must be revised to account for new daily range.
Lot size per trade should be set such that risk per trade is 1% of the account balance.
A maximum of 2 positions can be active at any time (triggered or pending). 1 must be a buy (triggered/stop/limit), and the must be a sell (triggered/stop/limit).