작업 종료됨
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
명시
Thank you for viewing my request! Successful completion of this task will lead to additional projects!
I request a MT4 EA Robot that does the following:
1) The bot should work on all time frames and reference the chart the EA is installed on. Action is taken as soon as the candle has closed. in other words, if on the hourly, the bot must look at the hourly candles.
2)These two indicators are to be referenced
- Keltner Channels: Factor 1.5, Length 20, Price Close, Simple averages
- Bollingerbands: Price Close, length 20, Deviations 2/-2.
3) The bot should place a BUY at market each time the following is true, once per candle:
- Looking at the previous candle close, the bottom line of the Bollingerband is ABOVE the Keltner Channel bottom line.
- Looking at the same previous candle close, the Price action closed below the 20 SMA
4) Behavior. Here are some critical behaviors that needs to occur.
- The first order that is placed becomes the "Order of reference." All subsequent orders for this set should contain the same TP values and SL values as this Order of Reference.
- When the first order is made, make a variable to remember what the value of the top +2dev bollingerband is, we'll use this for a stoploss later after TP1 is closed.
- When all orders are closed, the next order to open becomes a new set.
- Each set should have it's own identifier so that multiple sets can be made with the EA across several different charts at the same time.
- The stoploss placed for the first order should be -4 standard deviations.
- This order should have a take profit #1 (close half open lots) at 3 standard Deviations and a take profit #2 (final half) at 4 standard Deviations.
- When #1 Take profit is hit, move the stop loss to the +2 standard Deviations variable.
- After an order is opened and the next candle closes with the qualifying requirements as described in number 3) are still true, open up another order. The new order that opens should have the same take profit and stoploss that match the "Order of reference" and not be recalculated based on it's new opening levels.
- Max Orders: Default 10.There should be a user definable "max orders". This is the number of orders the bot is allowed to have open per set at the same time per chart.
- Order size: Default 0.02
- Stop Loss Deviation: Default -4
- Take Profit 1: Default +3 Deviations
- Take Profit 1 Percent close: Default 50% (This is what percentage of the open orders close at TP1)
- Take Profit 2: Default 4 Deviations
- After take Profit 1, move stop loss to Deviation #: Default 2. (0 would be Break Even).
- MagicNumber
7) Particulars and details.
- Sometimes a situation will occur where the candle close triggers a new set of trades but the next candle closes above the 20sma (no new trade), but the candle after that closes below the 20sma and the bottom bollingerband is still above the Keltner channel bottom line, making trade number two. This trade is still apart of the first set, even though one candle in between did not trigger a trade.
- Please check out the attachment image for how a trade will take place. I am happy to make more examples.
8) Absolute requirements.
- I must retain full exclusive rights to the EA the code in all appropriate formats and receive the final version's code in it's entirety that matches the final EA provided.
- I must retain the rights to modify, improve, and/or destroy the final product and all other iterations at my discretion.
- i must retain the rights to improve the bot with another developer after our project is completed.
- I must retain the rights to distribute the code at my discretion, even if for monetary gain that doesn't benefit the programer.
I am willing to support you the programmer with any details that you require. I am a loyal customer and will return with additional projects in the future if you want them!
Robert