Lavoro terminato
Specifiche
Hello,
I need assistance with the programming of a MACD based EA. I believe this EA is quite simple as it is similar to the MACD Sample provided with the MT4 platform. Several MACD EA are out there and this is nothing new ... my strategy relies more with the statistics and the exits rather than the entries. These aspects are not included in the requested EA. I am trying to keep it simple. If back tests work out as planned, we can expand further with this project.
I will
provide the specific details in future communications as required. Meanwhile, you can find below a summary of
the pre-requisites.
Can you also provide the price range (professional fees) for this service... if you consider enough information has been provided.
General Issues
-The EA must open and close trades based on specific values of MACD and the signal line crossings.
-The EA must be functional with the following time frames...: M5 / M15 / M30 / H1 / H4 / D1
-Must
be compatible with fractional pip pricing 0.00000 (5 digits) as well as
standard pricing 0.0000 (4 digits) on MT4 ... and eventually MT5 at a later point.
-If
possible to have a functioning and non irritating alert when the EA executes an order.... Great
Trade
Long position
-When MACD (RED Line) crosses over and above MA Signal Line (BLACK dashed line) ...at the close of the current bar .... then upon open of next bar ... wait “X” PIP above open of the new current bar ... then open long “Buy” position....or else do nothing.
-If the position is still opened (has not been closed manually) when MACD crosses below and under the MA Signal Line, close the complete position or any partial position still remaining.
Short position
-When MACD (RED Line) crosses below
and under the MA Signal Line (BLACK dashed line) ... at the close of the current bar .... then upon open of next bar ... wait for “X” PIP below the open
of the new current bar ... then open short “Sell” position....or else do nothing.
-If the transaction is still opened (has not been closed manually) when MACD crosses over and above the MA Signal Line, close the complete position or any partial position still remaining.
The code
As the expert with this programming language, you can guide me whit what is possible and what is not feasible. Some of the external variables I would like to see are as follows :
extern
double FastEMA = 12;
extern double SlowEMA = 26;
extern double MASignal Line=9;
extern double Lots = 0.1;
extern double StopLoss = 35;
extern double EntryRulePip = 1;
1,2,3,etc...
extern double GMTMarketWatch = GMT+3; GMT+1,2,3, etc
extern double GMTStartTime = 05:00;
extern double GMTStopTime = 19:30;
extern double OrderAlert = xyz.wav
However, to simplify the coding and speed up access ... some data can be put into internal variables as long as I can modify and compile the internal variables easily .... such as the following ... where I can change the 12-26-9 for other EMA fast, slow and signal line.
MacdCurrent=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0);
MacdPrevious=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1);
SignalCurrent=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0);
SignalPrevious=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,1);
MaCurrent=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,0);
MaPrevious=iMA(NULL,0,MATrendPeriod,0,MODE_EMA,PRICE_CLOSE,1);
Looking forward to working with you on this project,
Kind regards.
Many