指定
Here is the EA I would like programming done for:
General Parameters
The EA would utilize a 200 hour simple moving average and daily Fibonacci pivot points.
Lot size would be set to .25 equity, rounded down to the nearest 1K.
The EA should be utilizable with any currency pair.
No more than one (1) trade is be executed per day in a currency pair.
The EA will operate without stop losses.
Buy Parameters:
if current ask price >200 hour MA, then execute a buy when ask = .236 daily Fibonacci pivot point level with a limit/target price of the bid = .764 daily Fibonacci pivot point level.
Sell Parameters:
If current bid price <200 hour MA, then execute a sell when bid = .764 daily Fib pivot point level with a limit/target price of the ask = .236 daily Fibonacci pivot point level.
Adding Positions to Open Positions/Moving Target Price Parameters Where Trade Did Not Hit Target Price by New York Close:
Parameters for adding to or changing target prices of positions opened by the EA that did not hit the target price by the time of the New York close:
Open Buy Positions
Move target price to to bid = .764 daily Fib pivot point level or 10 pips above position's price, whichever is greater.
Add to position if: current ask price > 200 hour MA, execute a buy when ask = .236 daily Fibonacci pivot point level and move the limit/target price for the entire position (the original entry plus any addition) to bid = the .764 daily Fib pivot point level or 10 pips, whichever is greater.
Example: The EA executes a buy at price x, but the target price is not hit by the end of the New York close. After the New York close, the EA moves the target price to the new .764 or (x+10 pips), whichever is greater. The position remains open and price eventually hits the "new" .236, at which time the EA opens another buy position and moves the target price for entire position (the "old" buy plus the "new" buy) to the new .764 or (x+10 pips), which ever is greater.
Open Sell Positions
Move target price to ask = .236 daily Fib pivot point level or 10 pips below position price, whichever is greater.
Add to position if: current bid price < 200 hour MA, execute a sell when bid = .764 daily Fibonacci pivot point level and move the limit/target price for the entire position (the original entry plus any addition) to ask = the .236 daily Fib pivot point level or 10 pips below the net position, whichever is greater.
Additional Comments
I may want to tweak the entry and exit points for the EA after backtesting, as I am not particularly set on the .236 and .764 as entry/exit points.
Additionally, the lot sizes can be set manually if that is a huge problem; it would just be kinda nice for the EA to change the lot size as a function of equity on its own.
The EA needs to be prevented from executing multiple trades per day, since a given Fib level may be touched multiple times. The intention is to limit the EA to make one trade max per day.
10 pips may differ from one currency pair to the other, so it might be necessary to include this as a drop down to be changed at the time the EA is set up to run with a given pair. For example, 10 pips for EUR/USD is .0010, while it is .10 for USD/JPY.
I see basic elements of the code scattered about in the Code Base, so it is likely to be a cut-and-paste for the most part.