仕事が完了した
指定
Hi there,
Thanks for viewing my EA request. In a previous previous job I have ordered the creation of a simple breakout strategy indicator and EA based on that indicator. It draws a box on predefined periods of time (first hours of 3 major forex sessions) to display high/low prices of that period. High/low lines are placed and after a candle is fully formed outside that box a trade will be opened. Used session differ per pair. The EA works, but it could work better. That's the reason for this job. The indicator in action looks like this:
Based on SBS-indicator, it should work on any timeframe.
Trade Entry
First full candle outside of box (either side) triggers buy or sell on opening of next candle.
Single trade logic
Lot size should be either fixed or calculated as n% risk of equity per trade taking into account the size of the box. TP1 should be the size of the drawn box. For instance, if box hight is 15 pips then the TP1 is at 15 pips as well. At TP1 n% of trade will be closed and the remaining trade will be allowed to run with a trailing stop based on Bollinger bands with fixed exit at tp1. Option: Filter out trades based on Hull Moving Average: If price movement does not match with HMA color, trade signal should be discarded.
After a trade is closed, if the price re-enters the box and exit again in the same session a new trade must be started, in both directions. No new trades must be opened in the same direction if a new signal is generated and a trade is still running. Once a new session box is formed the old box is obsolete.
No Stop loss. If price goes the other we wait for an opposite signal to be formed. On opposite signal new opposite direction trade will be opened. Lot size will be calculated to recover loss from first trade +n pips profit. Again if price goes the other way. In price calculation the lot size from earlier trade must be taken into account to reduce risk. As trade reaches recovery target (minimum BE + commission, max BE + commision + profit in pips) losing trades must be closed + n% of winning trades. Remaining winning trades should be allowed to run as per single trade (trailing stop at BB, fixed exit at recovery target). Also, for recovery purposes, the lines of the old box must be respected even if a new session box has formed as long as the trade runs.
PS: since I trade a raw account the commision per 0.01 lot should also be taken into account with lot calculation.
General Settings:
Initial Trade
-Max risk% per trade
-% of trade closed at tp1
-commision per 0.01 lot
-Use HMA true/false
-HMA method exponential/simple/smoothed/linear
-HMA period n
Trailing Stop
-Use trailing stop true/false
-Trailing stop BBperiod n
-Trailing stop BBperiod div
Recovery settings:
-Use recovery true/false
-profit for recovery exit in pips
-% of winning trades closed at recovery target
Trade session Indicator settings
- Asia Activate
- Asia begin time
- Asia end time
- Eur Activate
- Eur begin time
- Eur end time
- USAActivate
- USA begintime
- USA end time.
Please only respond if you understand above requirements and are able to properly code the trade recovery algorithm as described above. I want to receive the source file after the work is finished to be able to continue to improve this strategy. Looking forward to working with you!