Modify existing EA to use iCustom

Esperti

Lavoro terminato

Tempo di esecuzione 4 giorni
Feedback del dipendente
It is easy to work

Specifiche

The job is to code a new trade logic to this well structured and well functioning EA. The original EA is using a moving average crossover to trigger trade signals, and features multiple individual settings.

In short I want the moving average trade logic removed and use my own simple trade logic from a custom indicator, Complex_Pairs1_M. This is a crossover strategy as well: when the indicator signal line crosses its own SMA a trade signal is given. A few additions to the EA is needed as well.

Detailed specification:

1) Use the EA Generic MA Crossover Version 2 [TD] as basis for the final solution.
2) Delete external parameters for the original moving averages (iMA).
3) Add the indicator Complex_Pairs1_M as iCustom, so it follows the trade-logics below.
4) Add the indicator parameter periodSMA as external integer.
5) Add a "stoplossbuffer" as external double. This parameter sets the minimum distance required (0.0001 as default) between signal line and SMA to trigger a stop loss.
6) Add "useCloseBuyLogic/CloseSellLogic" as external booleen value.
7) Add "ClosePositions on Friday" before market close as external booleen value.
8) Add "DoNotTradeSundays" as external booleen value. Trades must only be placed Monday-Friday GMT when true.
9) Make sure that the EA can only have one open trade for each currency pair.
 
The EA must be able to follow the trade-logics below:

double dSignalLineShift2, dSignalLineShift1, dSignalLineShift0, dSmaShift2, dSmaShift1, dSmaShift0;

OpenBuyLogic: Open long when signal line of custom indicator is crossing its own SMA to the upside.
if( (dSignalLineShift2<=dSmaShift2) && (dSignalLineShift1>=dSmaShift1) && (dSignalLineShift0>dSmaShift0))

CloseBuyLogic: Close long when signal line touches back below SMA.
if( ((dSignalLineShift0 + StopLossBuffer) < dSmaShift0) || or StopLoss(pipvalue) is triggered).
OpenSellLogic: Open short when signal line of custom indicator is crossing its own SMA to the downside.
if( (dSignalLineShift2>=dSmaShift2) && (dSignalLineShift1<dSmaShift1) && (dSignalLineShift0<dSmaShift0))
CloseSellLogic:  Close short when signal line touches back above SMA.
if( ((dSignalLineShift0 - StopLossBuffer) > dSmaShift0) || or StopLoss(pipvalue) is triggered).

I have pasted an explanation to the EA from forexfactory below.
 
Thanks,

Tomas
 
______________
http://www.forexfactory.com/showthread.php?t=211654
The most classic of any trading system, is the humble MA crossover. It is tick-database enabled.

 

extern string Remark1 = "== Main Settings ==";
extern int MagicNumber = 0;
This number should be unique when multiple EAs are attached to a terminal.
extern bool SignalsOnly = False;
If set to true, the EA will only alert you to a trade using any combination of the alerts below.
extern bool Alerts = False;
If set to true, the EA will send a pop-up alert when a trading signal arrives.
extern bool SignalMail = False;
If set to true, the EA will send you an e-mail (assuming you set up your mail in your MT4 Terminal.) when a trading signal arrives.
extern bool PlaySounds = False;
If set to true, the EA will play the file, "alerts.wav" when a trading signal arrives.
extern bool ECNBroker = False;
Some brokers require EAs to first place a trade, and then modify the trade with the stoploss and takeprofit. If your broker requires this, set this value to True.
extern bool TickDatabase = True;
If set to True, the EA will send tick data into the tick database.
extern bool CloseOnOppositeSignal = True;
If set to true, the EA will close a trade if an opposite trading signal appears.
extern bool EachTickMode = True;
If set to true, the EA will take a trade immediately if it sees a signal. If set to false, the EA will take a trade only if there is a signal at the end of the bar.
extern double Lots = 0;
Fixed lot size
extern bool MoneyManagement = False;
Enables/Disables the lot sizing function.
extern int Risk = 0;
The percent of your available margin that you are willing to put into a trade.
extern int Slippage = 5;
Maximum slippage allowed when placing an order.
extern bool UseStopLoss = True;
Enables/Disables the stoploss
extern int StopLoss = 100;
Hard Stoploss in pips.
extern bool UseTakeProfit = False;
Enables/Disables the takeprofit
extern int TakeProfit = 60;
Hard take profit in pips.
extern bool UseTrailingStop = False;
Enables/Disables the trailingstop
extern int TrailingStop = 30;
Trailing stop in pips. Note, the EA will only trail profits.
extern bool MoveStopOnce = False;
Enables/disables the move-to-breakeven function.
extern int MoveStopWhenPrice = 50;
Trigger price to move the stoploss.
extern int MoveStopTo = 1;
Price in pips relative to breakeven to move the stoploss to once the trigger price is hit.
Using these values as an example, the EA will move the stoploss to breakeven + 1 if the trade hits 50 pips profit.
extern string Remark2 = "";
extern string Remark3 = "== MA1 Settings ==";
extern int MA1Period = 0;
Period of the Fast MA
extern int MA1Shift = 0;
Shift of the Fast MA
extern int MA1Method = 0
Method of the Fast MA;
0 = SMA
1 = EMA
2 = SMMA
3 = LWMA
extern int MA1Price = 0;
Price of the Fast MA
0 = Close
1 = Open
2 = High
3 = Low
4 = Median
5 = Typical
6 = Weighted
extern int MA1CrossBuffer = 0;
The number of pips above or below MA2 in order to trigger a trade. This is designed to prevent some whiplash and false entries.
extern string Remark4 = "";
extern string Remark5 = "== MA2 Settings ==";
extern int MA2Period = 0;
Period of the Slow MA
extern int MA2Shift = 0;
Shift of the Slow MA
extern int MA2Method = 0;
Method of the Slow MA;
0 = SMA
1 = EMA
2 = SMMA
3 = LWMA
extern int MA2Price = 0;
Price of the Slow MA
0 = Close
1 = Open
2 = High
3 = Low
4 = Median
5 = Typical
6 = Weighted
Note: You can enable all of the stoploss options if you so choose, just keep in mind that the EA will use the tightest stoploss available to it.

Con risposta

1
Sviluppatore 1
Valutazioni
(473)
Progetti
1138
44%
Arbitraggio
51
31% / 33%
In ritardo
500
44%
Gratuito
2
Sviluppatore 2
Valutazioni
(71)
Progetti
254
53%
Arbitraggio
16
50% / 38%
In ritardo
83
33%
Gratuito
3
Sviluppatore 3
Valutazioni
(30)
Progetti
71
18%
Arbitraggio
9
22% / 67%
In ritardo
15
21%
Gratuito
Pubblicati: 2 codici
Ordini simili
Hi I have a semi-automated open-source NinjaScript (C#) strategy running in Ninja Trader 8. Parameters are optimized daily in Strategy Analyzer. It works on tick charts. The work involves backtesting and optimizing the strategy. The strategy must be configured to work with the Rithmic Trader Pro/Ninja Trader 8 brokers, and any errors must be debugged. The strategy is used in the futures, MES, ES, MNQ, NQ, etc
FRESHBOT 30+ USD
I want an EA for Gold (XAU/USD) with trend prediction and trade execution. Timeframe: 1H and 4H Indicators: - 50 EMA & 200 EMA (trend) - RSI (above 50 = bullish, below 50 = bearish) - MACD (for momentum) Entry Rules: - Buy if: - 50 EMA > 200 EMA - RSI > 50 - MACD line > signal line - Sell if: - 50 EMA < 200 EMA - RSI < 50 - MACD line < signal line Trade Settings: - Stop Loss: 30 pips - Take
I need an EA that can consistently make profits with low drawdowns and no dangerous martingale or grid. Requirements: - EA needs to open trades with dynamic lotsizes based on account balance or some other measure. - Minimum 15-30% growth monthly. - Open to any and all strategies, including advanced stuff like AI/SVM/HMM/etc or moderate/light martingale mechanism - No lower than 5mins timeframe for trading. - EA can
🔹 1. Core features (must have) Multi-account connection: MT5, can run many different brokers with different suffixes Real-time order copy: When the master opens/cuts/edits the order → the follower matches exactly. Low latency (the closer to 0 seconds the better). Customize copy volume: Fixed lot (fixed volume). Proportional lot (by % of capital). Multiplier (multiplier). Copy by order type: Choose to copy Buy/Sell
Pocket option bot 50 - 100 USD
I want a developer that can build a pocket option bot, You can only send application if you are experienced pocket option bot developer The bot should be develop base on my details that I will provided to the person that send application Best Regard
🔹 Job Offer: MQL5 Developer Needed for Prop Firm Challenge MT5 EA (US30 / GER40) I am looking for an experienced MQL5 programmer to build a high-performance trading bot for MT5, designed to pass prop firm challenges with selected providers. The EA should be focused on index trading , specifically US30 (Dow Jones) and GER40 (DAX) . Requirements: Proven expertise in MQL5 and algorithmic trading Development of a fast
Hello, good day to you Developers, I am looking for someone that can deliver on a project with the following requirements: The job I am about to give out will involve "Tradingview" and "cTrader" Tradingview: for analysis, as the Strategy uses one second charts/candles, cTrader: for executing and managing the trades. - For this cBot to work well for the project's aims, SPEED of execution is of upmost importance. - The
Job Description: · I am looking for an experienced MQL4 developer to create a high-speed scalping EA for US30 and DE40. The EA must be optimized for ultra-fast execution and should not rely on any indicators—only price action and pending orders (Buy Stop & Sell Stop). · I have written a complete and detailed documentation outlining the logic, execution flow, risk management, and required settings
The following Logic should be created example entryprice 3000 SL in the beginning 2996 Price reaches Entrpy oint = 3000 nothing happens Price reaches Entry point +NowTrailingSL_value(=2.0) price is then 3002 SL is moved to = 3000.20 ( is 3000+ 0.20) Price reaches Entry point +TopOnNowTrailingStoplossValue(=4.0) price is then 3004 SL is still 3000.20 Nothing happens Price reaches Entry point
I 'm contacting you because I'm currently managing an Excel project that centralizes the results monitoring of my trading accounts and the technical characteristics of my Expert Advisors (EAs) . The current system consists of several linked spreadsheets where : • Trading data is automatically uploaded from FXBlue/CSV • Key metrics are consolidated (Win Rate, Profit Factor, Expectancy, SQN, Drawdown, MAR , etc.) •

Informazioni sul progetto

Budget
40- USD
Scadenze
a 3 giorno(i)