Need a MT 4 expert adviser based on envelop breakout...
Requirement description for Expert Adviser
Strategy is based on Envelop (made up of simple Moving Average) breakout.
Expert Adviser features:
· EA should be flexible enough to allow the trader to set the “Envelop Period” and “Deviation”.
· EA should provide an option to increase the lot size manually
· EA should be flexible to work on any currency pair and any time frame it is attached to.
· EA should send an e-mail(predefined by the trader) when a trade is opened or closed with following information
o For trade opening
§ Currency pair
§ Date and time trade is entered
§ Lot size
§ Entry level
o For trade closing
§ Currency pair
§ Date and time the trade was entered
§ Date and time of the trade close
§ Lot size
§ Profit/ loss
§ Close level
Trade entry and exit rules
Buy Entry:
When the candle stick price (for the selected time frame) ends above the upper line of the envelope, EA should buy the currency pair at the start of the next candle (at available market price). The key point here is that the body of the candle (either top or bottom) should not be touching the envelope for the EA to trigger the buy signal.
Buy Entry close:
The buy entry should be closed when the candle stick closing price ends below the envelopes lower line. Again the important point here is that the body of the candle (either top or bottom) should not be touching the envelope for the EA to close the trade.
Sell Entry
When the candle stick closing price (for the selected time frame) ends below the lower line of the envelope, EA should sell the currency pair at the start of the next candle (available market price). The key point here is the body of the candle (either top or bottom) should not be touching the envelope for EA to trigger the sell signal.
Sell entry close
The sell entry should be closed when the candle stick closing price ends above the envelopes upper line. Again the point here is that the body of the candle (either top or bottom) should not be touching the envelope for the EA to close the trade.
Only one position should be open at a given time either a buy or a sell. Until the buy position is closed sell will not be opened. Once the position is open if the price moves up and down without meeting the close position signal, no new positions should be opned…
Testing
I should be able to back test my strategies using the MT 4 Strategy tester.
Also see the attachments...