Tough Boilerplate EA

Esperti Librerie

Lavoro terminato

Tempo di esecuzione 25 giorni

Specifiche

This EA will need to run on Forex.com and on Oanda.com on MT4 platforms.

The specification is tough. Extra consideration will be given to any Developer who identifies flaws or meaningful gaps in my specification prior to selection. I do need this EA running. IF you can code the business functions initially and follow up with 90% of the housekeeping but not do all the housekeeping let me know that and quote me a price for each milestone you define. Be sure to clearly define excluded features. A minimum would be the business math and the housekeeping to limit trading hours, exit all trades for the weekend and avoid reentering trades too early.

Intellectual Property Issues:

I own the copyright exclusively.  You can use the EA for your own trading with your own parameters.

You deliver Source Code with my specification comments adjacent to each functional unit.

You sign a NDA and do not publish my project or any unique portions of it.

You may build upon the project for your own use. However, if you do so, You provide me with source code including all revisions and appropriate comments each time you put a revised version in use.  

You own your intellectual revisions, providing me only a usage right, if I do not pay you for developing them.

Housekeeping and Risk Management features include:

Magic number = 21

Written for 5 digit prices

Eligibility to open a position or not, and price at which the position will be opened is calculated one time only at the beginning of each new bar.

Order parameters are stored in an array and checked against current price on a per tick basis.  

Displayed on the chart in the lower left corner is text in RED listing active Sell trigger price, or text in GREEN listing any active Buy Trigger price.  Suitable GREEN text would read “BarsSince = XX , Buy 3.27 Lots @ 1.27424, SL = 1.27156, TP = 1.28916”. If neither trigger is enabled the text is YELLOW and reads “Trade Entry Disabled by Basic Inspections”,  “Trade Entry Disabled because BarsSince = XX” or “Trade Entry Disabled by Trading Hours” .  On the next line below is a count of how many times the EA checked prices against the array during the previous bar text to read “XXXX cycles last bar” where XXXX is the count of price reviews the value is zero if triggering was disabled.

If the account currently has an opposing open position regardless of magic number of the opposing position, and the triggering event price is approached within one pip, the EA will close the opposing position.

If the account is currently in a correlated open position, any new position will be leveraged such that total leverage from the new position plus the existing position will equal the calculated leverage value. However, no triggering event will cause a correlated position to be reduced if it already exceeded this EA’s leverage allocation.

New positions are opened with Stop loss and Take profit in place. Values are calculated based on a percentage of opening price. “TakeProfit” initialized at 1.2% and “StopLoss” initialized at 0.3%.

Maximum position per order is set by external variable “MAXLOTSperORDER” Larger positions are entered by placing multiple orders without distressing the other logic limiting number of positions to be entered within a look back period.

“FirstMinuteOfWeek”, “LastMinuteOfWeek”, “FirstMinuteOfDay”, and “LastMinuteOfDay” to open new positions are set by external variable. Settings of “FirstMinuteOfWeek” at 1321 corresponds to Sunday 10:00 PM , “LastMinuteOfWeek” at 7801 corresponds to Friday 10:00 AM, “FirstMinuteOfDay” at 1141 corresponds to 7:00 PM Daily, and “LastMinuteOfDay” at 361 corresponds to 6:00 AM Daily. In the illustrated case trades would be enabled from 7:00 PM to 6:00 AM Daily, Open positions would be managed during off hours, Midnight would not confuse the operational hours.  

All times are chart time.

“CloseAllMinuteOfWeek” is set by external variable a zero value disables this feature. In the case where “CloseAllMinuteOfWeek” is set at 8091 all trades would close at 2:50 PM Friday.

IsTradeAllowed or whatever appropriate term is checked to avoid a race condition before placing an order.

Entry and Exit Orders are tracked for responses and managed if glitches occur.

When a position is opened adjusted (other than trailing stop adjustments), or closed, a screenshot of the chart the EA is running in is captured and emailed to me along with trade details, Magic number, price, slippage, account number, Lot size, SL, TP.

Risk Management:

Before opening a position Spread is verified to be < a maximum allowable spread initialized at 18 micro pips. Spread is not checked to enable closing positions.

Trade activity initiated on a tick basis with slippage set to 2 pips using market orders.

A double variable designated “Leverage” initialized to 5 that sets lot size such that the resultant position will have a value of roughly “Leverage” * Net Account Value . Position size is rounded up to the nearest micro lot.

An integer variable designated “BarsSince” initialized to 20 that defines a look back period such that the trigger that enables opening a new trade will not be active if conditions to enter a trade have occurred within the “BarsSince” look back period.

Logic to eliminate the possibility that a position will be reopened if the initial position from a triggering event is stopped out.

Business Math:

The following Logic is all written in Serial with && Logic for each line. I will be able to comment out any line without distressing the remaining code.

Only BUY Logic is shown. I do expect you to write the mirror of this logic into SELL parameters and include that logic to provide a product that trades symmetrically in long and short patterns.

Each line of logic is written to function in any timeframe of chart with the logic operating in the one minute environment unless noted otherwise. For example, “BarsSince” initialized to 20 running in a five minute chart will allow a trade on the fourth or fifth  bar after a previous trigger or as many as three trades in a single one hour bar. If I change the Code to reflect 5 minute bars,  “BarsSince” initialized to 20 running in a one minute chart will allow a trade on the one hundredth or 101st bar after a previous trigger. My inadvertently changing the chart timeframe should not change or disable the EA.

All inspections other than the actual trigger price discovery are calculated on each new bar only one time. Price is checked against an array if a target is set and trade at target price is enabled.

Basic inspections for a LONG ENRY include the following, as they relate to the close of the previous bar:

BarsSince is >= the specified value. &&

A 20 bar SMA was > a 50 Bar SMA OR, a 50 bar SMA was 1.001 * a 50 bar SMA 50 bars ago. &&

An 80 bar SMA in one hour bars was > 1.01 * the same SMA was 100 hours prior. &&

Bid of the low was > A 20 bar SMA. &&

A 20 bar Standard Deviation was >1.5*a 1440 bar Standard Deviation. &&

Trading Hours are enabled.

Calculation of triggering event is done ONE TIME at the beginning of the current bar. Trigger calculation lines may be commented out to leave only one line active, a final trigger line that is always true may be employed to avoid logic errors from use of && in previous lines. Calculate what the collision point will be for moving targets only one time per bar. If open long triggers calculate more than one trigger price only the highest calculated trigger price is used.

OPEN LONG TRIGGER Events include the following:

BID is <= the lower band of a 50 period 2 deviation Bollinger Band &&

Bid is <= a 100 period WMA &&

Bid is <= 0.99 * the high of the previous 1440 bars &&

Bid is >=100 pips below the high of the previous 1440 bars &&

Spread is <= MAXSPREAD &&

No prior opening order has been sent this bar.

Close LONG logic to manage open trades otherwise awaiting dumb exits is shown. You will include appropriate CLOSE SHORT logic SMART EXITS are calculated as follows: 

Calculation of exit triggering event is done ONE TIME at the beginning of the current bar. Trigger calculation lines may be commented out to leave only one line active, a final trigger line that is always true may be employed to avoid logic errors from use of && in previous lines. Calculate what the collision point will be for moving targets only one time per bar.

Calculate what a OPEN SHORT trigger would be and exit one pip before the OPEN SHORT trigger is reached &&

Trailing Stop &&

Stop moved to one pip profit XX minutes into trade OR after price advanced XX Pips or 0.XX percent.

Price is < a Specified SMA &&

High of prior 3 ONE HOUR bars has averaged more than Top Band of a 50 hour 2 deviation Bollinger Band set exit price at >= high of past three bars. &&

Bid >= a 50 hour SMA + the maximum number of pips the Bid has been above that SMA within the last 60 bars. &&

2 > 1 OR

Trading Hours force exit.

Con risposta

1
Sviluppatore 1
Valutazioni
(71)
Progetti
254
53%
Arbitraggio
16
50% / 38%
In ritardo
83
33%
Gratuito
2
Sviluppatore 2
Valutazioni
(59)
Progetti
182
55%
Arbitraggio
31
45% / 16%
In ritardo
103
57%
Gratuito
3
Sviluppatore 3
Valutazioni
(187)
Progetti
367
56%
Arbitraggio
45
22% / 56%
In ritardo
188
51%
Gratuito
4
Sviluppatore 4
Valutazioni
(29)
Progetti
36
39%
Arbitraggio
1
0% / 0%
In ritardo
17
47%
Gratuito
5
Sviluppatore 5
Valutazioni
(5)
Progetti
31
87%
Arbitraggio
1
0% / 100%
In ritardo
12
39%
Gratuito

Informazioni sul progetto

Budget
200 - 1000 USD
Per lo sviluppatore
180 - 900 USD
Scadenze
da 7 a 30 giorno(i)