Trabalho concluído
Termos de Referência
Dear programmers,
I would like an expert advisor that allows me to trade HIGHs and LOWs of any hour and any day range I decide so I can trade strategies such as the London Breakout, Day Breakout, US Session, Asian Session. The Range between the high and the low of the (X) previous bars I define as my PriceRange. I only want my expert advisor to trade when my PriceRange is between the minimal value of pips (X) and a maximum value of pips (X). The EA should also have the option to apply a trendfilter (Moving average) so that it only opens trades with the trend. So only place a pending buy stop order if the last bar of the PriceRange was closed above the MA and only place a sell stop pending order if the last bar closed below the MA. For my exit strategy I would like different options like a take profit, a Candle(bar) trailing stop, move to breakeven option and close all trades after a certain amount of time (in most cases this will be the end of the day). I want the time to adjust itself to daylight savings and the choice to choose between server time or local time. The idea is to have a expert advisor that's allows my to trade different currency pairs at different times. I am not a programmer but I've tried to list the above options into the setting below (I hope it is correct!).
The expert advisor is inspired based on this article: https://www.dukascopy.com/fxcomm/fx-article-contest/?Trading-The-London-Session-With=&action=read&id=1253
Looking forward to hear from you,
Kind regards,
Lennon2012
Trading settings:
- Use local time - true or false;
- Start time to track HIGH/LOW - time when the EA start monitoring and tracking highs and lows;
- End time to track HIGH/LOW - time when the EA stop monitoring and tracking highs and lows;
- Distance from HIGH/LOW – distance in pips from actual levels of highs or lows before pending orders are executed to avoid bad breakouts;
- Delete pending orders after X minutes if not engaged – delete the orders in market if price level didn`t reach any of the pending orders;
- One cancels other – if one order executed the other cancelled;
Trade size:
- Fixed lots – lots from 0.01;
- Risk per trade % - risk calculated in %;
Pricerange:
- Minimal size PriceRange - in pips;
- Maximum size PriceRange- in pips;
Trendfilter (MA): //this makes sure that only one pending order is placed: the one in direction with the trend.
- Enable Trendfilter - true or false;
- Moving average that has the general adjustable settings;
Trading day settings:
- Trade on Sundays;
- Trade on Mondays;
- Trade on Tuesdays;
- Trade on Wednesdays;
- Trade on Thursdays;
- Trade on Fridays;
- Trade on Saturdays.
Trading month settings:
- Trade on januari;
- Trade on februari;
- Trade on march;
- Trade on april;
- Trade on may;
- Trade on jun;
- Trade on jul;
- Trade on aug;
- Trade on sept;
- Trade on oct;
- Trade on nov;
- Trade on dec;
Take profit
- Enable Take profit – true or false;
- Take Profit in numbers --> (for example 2 means, I want to take profit when the price has reached two times my initial risk (pricerange)
Candle Trail settings:
- Enable Candle trailing – true or false;
- Amount of bars to track high or low - (X) ;
- Distance Stoploss from HIGH/LOW - in pips;
Break Even Settings:
- Enable Break Even – true or false;
- Move stoploss to break even when profits are 'x' times greater then the initial risk (size of the PriceRange).
Close all orders:
- Enable close all orders after amount of time – true or false;
General Settings:
- Max Slippage – in pips;