I can create your Expert advisor for free

Greetings:

I would sincerely appreciate your help, that you have graciously offered online.
I work with Forex as a hobby, and wanted to play with the following EA Idea. If you would help me by writing the code for it, I would be very grateful.

I have included the basic idea, below.

Thanks

Thomas

Step One:

Plot on Graph the following (Change in Price) using 14 periods:

Price Change Between Periods = P2-P1 (P stands for period, and the number identifies which period)
Price Change Between Periods = P3-P2

Step Two:

Plot on Graph the following (Percentage Change in Price) using 14 periods:

Percentage Change in Price = P3-P2/P2-P1

Step Three:

Plot on Graph the following (Average Rates of Change) using 14 periods:

Percentage Change in Price for P3-P2/P2-P1 plus Percentage Change in Price for P4-P3/P3-P2 plus Percentage in Price for P5-P4/P4-P3 = Total Percentage Change in Price.

Then: Total Percentage Change in Price/Number of Periods = Total Percentage Change in Price/3 = Average Rate of Change

Note: I want this to be done for 14 periods (3 is an example).

Step Four:

Open and Close Buy Position When:

When Average Rate of Change in Price is positive 1 (1), and no trades open in currency pair, EA will open a Buy Position.
When Average Rate of Change in Price falls to zero (0), EA will close the Buy Position.

Open and Close Sell Position When:

When Average Rate of Change in Price is negative 1 (-1), and no trades open in currency pair, EA will open a Sell Position.
When Average Rate of Change in Price rises to zero (0), EA will close the Sell Position.

Notes:

Parameter Section will give option to EA User to change point of: Opening Position, Closing Position, Number of Periods, etc.

END

Thank you for your help. This should be a relatively simple EA to program. I don’t know the programming languages, and would sincerely appreciate someone that would write and give me this code. Thank you sincerely. I plan to run this on a demo and try many different parameters settings, etc., and see what I come up with. This will be used on the MetaTrader 4 Platform. Last edited by Liongate370; Today at 05:45 AM.

Hello Venichhe.
Would you be able to help me to add a parameter to my exsisting ( not workable ) EA ? if so pls drop me a line at my e-m address which is yogibear13at hotmail dot com Many thanks.

I have a custom indicator that alerts to buy/sell with sound, I’d like you to convert it
into an ea for me. PM me for details.

:44:I have a custom indicator that alerts to buy/sell with sound, I’d like you to convert it
into an ea for me. PM me for details.:44::33::33:

Hello Venichhe:

How shall we begin? I would appreciate your help in creating an EA for me, according to an idea that I have. What is your first step for us to begin the process. Thanks. Liongate370

Your first step should be to post some substantiated results from the system you want automated, how long you’ve used it, and not super detailed, but a basic idea of it’s rules. Is it an MA cross? A grid? Use Martingale? Price action? Scale in? Don’t get specific, just categorize it.

If it’s profitable, you may have more options for coders.

OP could you do this one please? would it take a long time?

http://forums.babypips.com/expert-advisors-automated-trading/46377-would-ea-take-long-time-code-something-newbie-could-do.html

Regards

Hi, I’ve been looking all over for an EA for a strategy I have in mind and want to see if anyone can help with coding it or if there is already something made that will cut down on me having to make adjustments throughout the day. I can make adjustments everyday at the close of the bar, but during the working day and sleep i just dont have time.

Here is what im thinking:
I want a OCO order setup at the end of every daily bar for whatever pair the EA is placed on in MT4. It will buy if the price goes 1 pip over yesterdays high or sell if it goes 1 pip under. TP is at 5 pips (hopefully can vary this depending on the pair) and stop loss will be 1 pip over/under the high/low of yesterday.

For instance, the high and low of EUR/USD (on my chart) was 1.2384 and 1.2316, so I have an OCO setup to buy at !.2385 or sell at 1.2315, then when one hits i just want a profit of 5 pips with stop being basically at the other. If nothing hits then on the close of a new bar cancel them both and just start over

Ive been looking over the charts and this seems like a pretty good strategy. Its not the best risk reward, but more days it works then doesnt. Does anyone have anything like this or can someone make it?

Thanks
Cowboy

i have a custom indicator which give good returns and i will be glad if you can help turn it into EA…

Hi Venichle. As alot of pleople in this forum, I have an indicator wich I´d like you to build an EA with it. I think it´s easy becausethe indicator is ready and the open/close/managment is the usual. Tks.

If you put your indicators and requirements here, I may help as well :).

i got an EA from a guy, i told him i cant install the EA properly, so he took it on himself to install it for me using teamviewer, the EA actually works well on my demo account. But since i formatted my system, i have lost everything, my problem is that i cant just install an EA, i have tried following the instructions but nothing seems to work, i love an EA that can give at least 500$ every week, just like the one that guy gave me.

I want to create an EA using this indicator. Taking the value from gadblSlope - buffer 6. But I keep getting “variable not defined” from the iCustom. Heres is the indicator. Basically I want to open buy order when the value is >=0.6 and sell order when <=-0.6. Open one order per chart (pair) which the EA is attached. Close those orders when the values goes back to 0.6 for opened buy order and -0.6 for opened sell order. Use a simple money managment whit extern int (SL, TP, Trailing and Lote Size). See if you can help me please.

//±-----------------------------------------------------------------+
//| 10.2 TmaSlope v.1.4.mq4 |
//±-----------------------------------------------------------------+
#property copyright “Copyright © 2012, zznbrm”

//Edited by shahrooz "[email protected]"
//Edited by Nanningbob April 2012 for 10.2
//---- indicator settings
#property indicator_separate_window
#property indicator_buffers 7
#property indicator_level1 0.4
#property indicator_level2 -0.4
#property indicator_level3 0.8
#property indicator_level4 -0.8
#property indicator_levelcolor White

#property indicator_color1 Green
#property indicator_color2 Lime
#property indicator_color3 FireBrick
#property indicator_color4 Red
#property indicator_color5 Teal
#property indicator_color6 HotPink
#property indicator_color7 DarkBlue

#property indicator_width1 2
#property indicator_width2 2
#property indicator_width3 2
#property indicator_width4 2
#property indicator_width5 3
#property indicator_width6 3
#property indicator_width7 0

//---- input parameters

extern int eintPeriod = 20;
extern double edblHigh1 = 0.4;
extern double edblLow1 = -0.4;
extern int atrPeriod = 100;

//---- indicator buffers
double gadblUp1[];
double gadblUp2[];

double gadblDn1[];
double gadblDn2[];

double gadblMid1[];
double gadblMid2[];

double gadblSlope[];
color Font_Color_M15;

double TICK;
bool AdditionalDigit;

//±-----------------------------------------------------------------+
//| Custom indicator initialization function |
//±-----------------------------------------------------------------+
int init()
{
//IndicatorBuffers( 8 );
IndicatorBuffers( 7 );
IndicatorDigits( 5 );
IndicatorShortName( “10.2 TmaSlope_Norm” );
AdditionalDigit = MarketInfo(Symbol(), MODE_MARGINCALCMODE) == 0 && MarketInfo(Symbol(), MODE_PROFITCALCMODE) == 0 && Digits % 2 == 1;
TICK = getTick();

SetIndexBuffer( 0, gadblUp1 ); SetIndexLabel( 0, NULL ); SetIndexStyle( 0, DRAW_HISTOGRAM );
SetIndexBuffer( 1, gadblUp2 ); SetIndexLabel( 1, NULL ); SetIndexStyle( 1, DRAW_HISTOGRAM );
SetIndexBuffer( 2, gadblDn1 ); SetIndexLabel( 2, NULL ); SetIndexStyle( 2, DRAW_HISTOGRAM );
SetIndexBuffer( 3, gadblDn2 ); SetIndexLabel( 3, NULL ); SetIndexStyle( 3, DRAW_HISTOGRAM );
SetIndexBuffer( 4, gadblMid1 ); SetIndexLabel( 4, NULL ); SetIndexStyle( 4, DRAW_HISTOGRAM );
SetIndexBuffer( 5, gadblMid2 ); SetIndexLabel( 5, NULL ); SetIndexStyle( 5, DRAW_HISTOGRAM );

SetIndexBuffer( 6, gadblSlope ); SetIndexLabel( 6, “TMA Slope” ); SetIndexStyle( 6, DRAW_NONE );

SetIndexEmptyValue( 0, 0.0 );
SetIndexEmptyValue( 1, 0.0 );
SetIndexEmptyValue( 2, 0.0 );

return( 0 );
}

//±-----------------------------------------------------------------+
//| Custom indicator deinitialization function |
//±-----------------------------------------------------------------+
int deinit()
{
return( 0 );
}

//±-----------------------------------------------------------------+
//| Custom indicator iteration function |
//±-----------------------------------------------------------------+
int start()
{
int counted_bars = IndicatorCounted();
if ( counted_bars < 0 ) return(-1);
if ( counted_bars > 0 ) counted_bars–;

int intLimit = MathMin( Bars - 1, Bars - counted_bars + eintPeriod );

double dblTma, dblPrev;
double dblTmaMTF, dblPrevMTF;
double atr ;
double atrMTF ;
for( int inx = intLimit; inx >= 0; inx-- )
{
//gadblTma[inx] = calcTma( inx );
//gadblPrev[inx] = calcTma( inx+1 );
//gadblSlope[inx] = ( gadblTma[inx] - gadblPrev[inx] ) / TICK;
atr= iATR(NULL,0,100,inx+10)*0.1;
atrMTF= iATR(NULL,0,100,inx+10)*0.1;
if (atr == 0) continue;
if (atrMTF == 0) continue;
dblTma = calcTma( inx );
dblPrev = calcTma( inx+1 );
gadblSlope[inx] = ( dblTma - dblPrev ) / atr;

  gadblUp1[inx] = 0.0;   
  gadblDn1[inx] = 0.0;     
  gadblMid1[inx] = 0.0;   
  gadblUp2[inx] = 0.0;   
  gadblDn2[inx] = 0.0;     
  gadblMid2[inx] = 0.0;   

 if ( gadblSlope[inx] &gt; edblHigh1 )
 {
     if(gadblSlope[inx] &lt; gadblSlope[inx+1]) gadblUp1[inx] = gadblSlope[inx];
     else gadblUp2[inx] = gadblSlope[inx];
 }
 else if ( gadblSlope[inx] &lt; edblLow1 )
 {
     if(gadblSlope[inx] &lt; gadblSlope[inx+1]) gadblDn2[inx] = gadblSlope[inx];
     else gadblDn1[inx] = gadblSlope[inx];
 }
 else  
 {
     if(gadblSlope[inx] &lt; gadblSlope[inx+1]) gadblMid2[inx] = gadblSlope[inx];
     else gadblMid1[inx] = gadblSlope[inx];
 } 

// if(gadblSlope[inx]>=0 && gadblSlope[inx]<gadblSlope[inx+1] && Close[inx]>Open[inx] ) arrowdown[inx]=gadblSlope[inx]+0.1gadblSlope[inx];
// if(gadblSlope[inx]<0 && gadblSlope[inx]>gadblSlope[inx+1] && Close[inx]<Open[inx]&& gadblSlope[inx+2]>=gadblSlope[inx+1]) arrowup[inx]=gadblSlope[inx]+0.1
gadblSlope[inx];

 string tt=DoubleToStr(gadblSlope[inx],2);

ObjectCreate("label",OBJ_LABEL,WindowFind("10.2 TmaSlope_Norm"),0,0);
ObjectSet("label",OBJPROP_XDISTANCE,1);
ObjectSet("label",OBJPROP_YDISTANCE,25);
ObjectSet("label",OBJPROP_CORNER,3);
ObjectSetText("label"," "+tt+" ",20,"Arial",White);

string sObjName="InfoBar1";

if (gadblSlope[0] >= edblHigh1)
ObjectSetText(sObjName, “Buy Only”, 20, “Verdana”, Turquoise);

else if (gadblSlope[0] <= edblLow1)
ObjectSetText(sObjName, “Sell Only”, 20, “Verdana”, Red);

else
ObjectSetText(sObjName, “Ranging”, 20, “Verdana”, DarkGreen);

string name1 = “InfoBar1”;

 }

return( 0 );
}

//±-----------------------------------------------------------------+
//| getTick() |
//±-----------------------------------------------------------------+
double getTick() {
double tick = MarketInfo(Symbol(), MODE_TICKSIZE);
if (AdditionalDigit) {
tick *= 10;
}
return (tick);
}

//±-----------------------------------------------------------------+
//| calcTma() |
//±-----------------------------------------------------------------+
double calcTma( int inx )
{
double dblSum = (eintPeriod+1)*Close[inx];
double dblSumw = (eintPeriod+1);
int jnx, knx;

for ( jnx = 1, knx = eintPeriod; jnx <= eintPeriod; jnx++, knx-- )
{
dblSum += ( knx * Close[inx+jnx] );
dblSumw += knx;

  if ( jnx &lt;= inx )
  {
     dblSum  += ( knx * Close[inx-jnx] );
     dblSumw += knx;
  }

}

return( dblSum / dblSumw );
}

EA name: MACBuger.ex4
Save into …/experts folder

Indi Name: BurgerMACD.ex4 and TD3.ex4
Save into ./experts/indicators folder

Preset file: macburger_usd100_tf_m30.set
Save into …/experts/preset folder or Tester folder if you want to do backtest.
set at TF-M30
.

4 attachments — Download all attachments
MACBurger.ex4 MACBurger.ex4
30K Download
TD3.ex4 TD3.ex4
4K Download
BurgerMACD.ex4 BurgerMACD.ex4
5K Download
macburger_usd100_tf_m30.set macburger_usd100_tf_m30.set
3K Download

EA name: MACBuger.ex4
Save into …/experts folder

Indi Name: BurgerMACD.ex4 and TD3.ex4
Save into ./experts/indicators folder

Preset file: macburger_usd100_tf_m30.set
Save into …/experts/preset folder or Tester folder if you want to do backtest.
set at TF-M30

4 attachments — Download all attachments
MACBurger.ex4 MACBurger.ex4
30K Download
TD3.ex4 TD3.ex4
4K Download
BurgerMACD.ex4 BurgerMACD.ex4
5K Download
macburger_usd100_tf_m30.set macburger_usd100_tf_m30.set
3K Download

i’ll need u very soon :slight_smile:

I need someone who can help me quickly with a short change in an existing EA…

The issue is ive got a pattern bot that works awesome right now, it makes 80-90% of its trade on the LOSING side… BUT … they have got 2 : 1 Risk Reward ON the negative side (double the SL than the TP) , which makes it highly attractive since it only needs 40% to be in positive.

only matter is i need it to be changed that instead of BUYING, it should sell and instead of SELLING, it should buy.

please pm me if you can help me with that,

thanks in advance!

Hi, everyone i am facing some problem with script of auto order sell and buy.My broker is ECN broker. And they quote 5 digits.Since the script works well others brokers but problem with ECN brokers.I want to trade by hot key or drag mouse form the script.My strategy is scalping,so tight take profit and stop loss.Could any one help me? when i take step for buy or sell order it gives error though compiler show o error for coding.i collect from codebase mql4.com. The script is below:

#property copyright “Copyright © 2010, Khlystov Vladimir”
#property link “[email protected]
#property show_inputs
//--------------------------------------------------------------------
extern int stoploss = 0,
takeprofit = 20,
Magic = 123456;
extern bool SELL = false,
BUY = true;
extern double Lot = 0.1;
extern int slippage = 3;
//--------------------------------------------------------------------
double SL,TP;
//--------------------------------------------------------------------
int start()
{
if (BUY)
{
if (takeprofit!=0) TP = Ask + takeprofitPoint; else TP=0;
if (stoploss!=0) SL = Ask - stoploss
Point; else SL=0;
OPENORDER (“Buy”);
}
if (SELL)
{
if (takeprofit!=0) TP = Bid - takeprofitPoint; else TP=0;
if (stoploss!=0) SL = Bid + stoploss
Point; else SL=0;
OPENORDER (“Sell”);
}
return(0);
}
//--------------------------------------------------------------------
void OPENORDER(string ord)
{
int error,err;
while (true)
{ error=true;
if (ord==“Buy” ) error=OrderSend(Symbol(),OP_BUY, Lot,Ask,slippage,SL,TP,"",Magic,3,Blue);
if (ord==“Sell”) error=OrderSend(Symbol(),OP_SELL,Lot,Bid,slippage,SL,TP,"",Magic,3,Red);
if (error==-1)
{
ShowERROR();
err++;Sleep(2000);RefreshRates();
}
if (error || err >10) return;
}
return;
}
//--------------------------------------------------------------------
void ShowERROR()
{
int err=GetLastError();
switch ( err )
{
case 1: return;
default: Alert(“Error " ,err,” ",Symbol());return;
}
}
//--------------------------------------------------------------------

Can you make an EA for TradeStation?

Hi Mellchizedek,
thanks a lot.However about ur question i like to say that i just collect this script and paste into script folder for trading with it.It works well forex4u.com but ECN like Exness.com it shows error.And i use hot key so scalping with it very easy with small pips strategecy.
So can u help me if where it gives error for ECN thought it works well others?
Or if u help me making like this EA?
Thanks pls reply.