Job finished
Specification
Dear Coders/Traders,
I want to give you a task to create an EA for me which detects and trades a breakout profitably.
I want The EA to be meeting the following criteria:
1. Detect and visualize the 'box' of ranging market for (x) candles (draw a box showing stop port and resistance)
2. Place pending orders above and below the range (SR)
Buy pending order (X) points above resistance
Sell pending order (y) points below support
3. When 1st trade is opened – example Buy0 - move the Sell Limit to Break Even (hedging in case of a reversal)
4. If the trend continues - eg upwards - open next Buy after (x) points - Buy1 and move the Sell Limit to Buy0 line
5. If the trend continues - eg upwards - open next Buy after (x) points - Buy2 and move the Sell Limit to Buy1 line
6. If the trend continues - eg upwards - open next Buy after (x) points - Buy3 and move the Sell Limit to Buy2 line
a. continue for (y) steps
7. Once price reverses past Sell Limit - Sell0 opens
a. Close All Buy trades (banking profit)
b. Open Buy Limit at previous top
8. If the trend continues - eg downwards - open next Sell after (x) points - Sell1 and move the Buy Limit to Sell0 line
9. If the trend continues - eg downwards - open next Sell after (x) points - Sell1 and move the Buy Limit to Sell0 line
10. If the trend continues - eg downwards - open next Sell after (x) points - Sell1 and move the Buy Limit to Sell0 line
a. continue for (y) steps
b. trailing vs tp
11. Once price reverses past Buy Limit - Buy0 opens
a. Close All Sell trades (banking profit)
b. Open Sell Limit at previous low
12. Detect Range - Close All - Bank Profit
Includes Money Management to use Percentage of account balance as lotsize, sl, tp, hardstop.
Should target news in live market also in strategy tester (i can provide you the code if you need)