Hello,
I have a very short day trading code in Easy Language and I want to convert it to Metatrader 4 language.
Here is the EL code:
inputs: FastLength( 31 ), SlowLength( 1 ), MACDLength( 3 ), StopAmt(1000), ProfitAmt(2100),
BOD(0800), EOD(1659);
variables: MyMACD( 0 ), MACDAvg( 0 ), MACDDiff( 0 ), MP(0);
MyMACD = MACD( Close, FastLength, SlowLength ) ;
MACDAvg = XAverage( MyMACD, MACDLength ) ;
MACDDiff = MyMACD - MACDAvg ;
MP = MarketPosition();
if Time >= BOD and Time < EOD then begin
if CurrentBar > 1 and MyMACD crosses over MACDAvg then
Buy ( "le" ) next bar at market ;
if CurrentBar > 1 and MyMACD crosses under MACDAvg then
Sell Short ( "se" ) next bar at market ;
End;
SetStopContract;
SetStopLoss(StopAmt);
SetProfitTarget(ProfitAmt);
// Set Time Exit
if MP = 1 and Time >= EOD then
Sell("EODx") all shares next bar at market ;
if MP = -1 and Time >= EOD then
BuyToCover("EODx") all shares next bar at market ;
My extensive experience with EasyLanguage will make this a relatively easy project. I look forward to working with you. Please see additional thoughts in PM.
Hi, I can do it. My skype ChinaRickySkype .
I created hundreds of EA, indicators for my China client in the past few years. I owned 10 years' IT experience and rich trade experience. 4 years's programming experience on MT4, 1 year's experience on MT5.
Hi,
I am a Brazilian Forex trader living in France.
I have coded dozens of EAs for personal utilization and I can code you AE with all your specification.
I will send you the source codes with comments.
Thank you.