Specifiche
I want to design an EA that can identify key Supports and Resistances. This should be able to work on any timeframe from 1 minute to 1 hour (i.e 1 minute, 5 minutes, 15 minutes and 1 hour time frames.)
The EA should be able to determine a Fibonacci retracement from a support and the next resistance point in an uptrend and vice versa (i.e
the EA should be able to determine a Fibonacci retracement from a resistance and the next support point in a down trend.)
When the market reaches the Fibonacci 50.0 - 61.8 zone and unable to break beyond this zone after say three candles close within the zone then the EA should execute even If any of these three candles breaks beyond this zone and still refuses to close beyond the zone, the EA should execute as long as three candles consecutively are unable to close beyond the 61.8 line and closes within the 50.0 - 61.8 zone. The execution in an uptrend will be a buy and in a downtrend will be a sell.
In a case where 1 or 2 candles close within and the third one closes within the 38.2-50.0 zone, wait until the market has another 3 consecutive candles close within the Fibo 50.0-61.8 zone before execution.
The moment any candle closes beyond the 61.8 line, ignore this retracement and wait for another set up entirely.
In an uptrend market the Fibonacci should take reading from the highest point in the body of the topmost candle in the resistance point and the lowest point in the downmost candle in the support point and vice versa in a downtrend. The wicks should be ignored.
When there is current open trade and the set up aligns in an opposite direction, EA should close the current open trade and open a new trade in the opposite direction.
I want to be able to set my stop loss to a fixed value and take profit at Fibo 0,0 level. I should be able to set a fixed lot size and maximum daily risk daily (i.e once maximum daily risk or drawdown has reached, EA should stop for the day).
I should be able to set a time in which EA will run, for example 06:00 hours to 18:00 hours broker time everyday. At the set time for EA to close, EA should close running trade either in profit or loss. For this example once it's 18:00 hours broker time, EA should close any running trade.
I should be able to set minimum pips for the fibonacci retracement for the EA before execution is allowed. For example, if Fibonacci retracement from 0.0 to 61.8 is less than 100 pips on XAUUSD then EA should not execute even though all parameters align. I want this to avoid overtrading that can occur due to every small Fibo retracement.
If there is an open trade and another set up occurs in the same direction, the EA should ignore this set up to also avoid overtrading. No two trades should run at the same time. EA can only open another trade if the set up occurs in an opposite direction and the current open position should be closed before opening the new trade.
Lastly if it is possible for this to work is such a way that no other trade can be placed except the one executed by the EA, evey manual trade executed should be disallowed. I will strictly be using this for gold.
Thank you.