작업 종료됨
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
명시
I need an EA with the following logic. It's basically a zone recovery hedging EA that base it's opening lots on the Stochastic Oscillator indicator.
1. EA loads Stochastic Oscillator indicator in its operation.
2. Set Stochastic Oscillator to user defined pparameters. Available parameters: stoch_K, stoch_D, stoch_slowing
3. Where stoch_K represents %K period, stoch_D represents %D period, and stoch_slowing represents slowing in the Stochastic Oscillator Indicator parameters. Price field should be fixed and non-user adjustable to Low/High and method should be fixed and non-user adjustable to Simple.
4. User defined parameters as stated above to be available in user configurable EA parameters.
5. Time frame parameter for the Stochastic Oscillator Indicator should also be made available for user configuration.
6. Upon launch of EA, EA should set up the Stochastic Indicator in its operation and open a trade based on Stochastic Oscillator indicator. If the %K period value is above 50, open a sell order of user configurable lot size. If the %K period value is below 50, open a buy order of user configurable lot size. If the %K period is exactly at 50, open a either a buy or sell order (at random) of user configurable lot size. This is to loop. It means the EA will keep opening positions (maintaining one open position all the time).
7. User configurable lot size can be Fixed or Auto (to be user configurable too, to Fixed or Auto). Auto lot size will be based on Margin Used per trade. This is to include calculations of current account leverage to determine the outcome of lot size.
8. User configurable option with the parameter name of "EA Operation" and parameters "On" and "Off". When parameter state is "On", EA will perform the loop as at point #6 written above. When parameter state is "Off", EA will not loop and stop operation when all positions are closed by the EA or user.
9. After EA opens any trade at #6, a pending order of opposite direction should be opened at user configurable distance defined by parameter hedge_distance (parameter name "Hedging Distance"). If original order is a buy order, the pending position of "Sell" opened should be hedge_distance amount of POINTS (NOT pip) below the original "Buy" order. If original order is a sell order, the pending position of "Buy" opened should be hedge_distance amount of POINTS (NOT pip) above the original "sell" order.
10. If the pending order is hit, opposite PENDING order (from the first pending) should be opened at the original/initial order opened. And vice versa (it keeps going on until profit target is reached. It's a zone recovery / hedging logic. Kindly research on this if you're not familiar.
11. Profit target should be user configurable at parameter "profit_target" with parameter name "Profit Target". Profit target should be defined by account equity %. If user set this parameter to "100", all trades (including pending) should be closed when equity = balance. If user set this parameter to "150", all trades (including pending) should be closed when equity = balance x 1.5. Get the idea?
12. All trades (opened and pending) should have a user configurable comment set to it. If user leaves the parameter blank, then comment is not modified. Parameter name should be "Comment".
13. EA name to be set to "Super Forex".
14. Work is to be delivered in a SINGLE .mq4 file (no dlls).
I'm willing to communicate anything you're not sure of. Prefer developers who have decent English so that communication is good.