FX5 MACD Divergence v1.1 Expert Advisor
I need an expert advisor which works when divergences are created on the FX5 MACD Divergence v1.1 Indicator.
I am attaching an indicator which creates Divergence lines automatically on the RSI Indicator.
The main Structure of the Expert Advisor:-
When to open a buy/sell trade?
The indicator is in a separate window (FX5_MACD_Divergence_v1.1).
• Buy Trade: Whenever a green arrow that pops up in the indicator window, the expert advisor should open a Buy Trade at the opening price of the next bar.
• Sell Trade: Whenever a red arrow pops up in the indicator window, the expert advisor should open a sell trade at the opening price of the next bar.
When to close the trade?
It should be automatically close when the current bar in which the trade is opened finishes, if the take profit / stop loss or trailing stop loss is not hit.
Other features which are going to be user defined:-
1. Time Frames to be available (15 min, 30 min, 60 min, 4 Hours, 1 Day).
2. User Defined Take Profit and Stop Loss.
3. Lot Size.
3.1 User Defined i.e., in Numerical Value e.g. .01, .1, 1 etc.
3.2 Formula Defined i.e. the lot size should be calculated by the following formula: - ‘Balance’ / ‘1000’, where in ‘1000’ is a variable. For e.g.: if the balance is USD 3500 then the Lot size opened should be 3548/1000 = 3.54 (calculated up to the second decimal place.)
4. Trailing stop loss
I want the trailing stop loss to be off two types i.e.:-
4.1 Normal Trailing stoploss i.e. used in metatrader and it should be a user defined value in pips.
4.2 Break even stoploss: - Which should become active after the trade has moved ‘x’ number of pips in the favorable direction. For e.g.:- A trailing stop loss of ’10 pips’ should be made active after the trade has moved ’20 pips’ in the favorable direction.
• I am attaching two separate screenshots which indicates a buy/sell trade.
• I am also attaching the FX5_MACD_Divergence_v1.1 on which the entire expert advisor is based.
• The indicator should be used in its Original settings and there should be no changes.
• It is mandatory that the expert advisor must open the trade at the opening price of the next bar and must close the trade when the same bar is closed.
• When the expert advisor opens a trade I want it to be marked on the chart.
• Please be advised the milestone will be release after 15 days of forward testing and after matching the back testing results with the trades opened manually in the month of Jan ‘2013 (excel sheet).
• The budget of this project is $30 to$50; any bids above the budget range will automatically be rejected.
• For any further queries please feel free to contact me.
*** Also there is a third type of trailing stop loss that I want i.e. the Locked Profit Trailing stop loss, it should work in the following way:-
If the expert advisor opens a Buy EURUSD Trade @ 1.3526 with a stop loss at 1.3516 ( stop loss of 10 pips). I want a trailing stop loss of '5' pips to come into action when the trade move '10' pips + '5' pips in my direction i.e. when the EURUSD Price reaches 1.3541 ('5' is a variable),
*** PLEASE USE THE NEW ATTACHED INDICATOR i.e. FX5_MACD_Divergence_v1.0 as the indicator originally attached above has been attached in error ***
Sorry for the inconvenience caused.