old trader need help for a ea

 

hi

is it possible for anyone to help me to built a ea please?

I dont think it will be very complicated for someone like you.

in exchange, every one here will be able to use it an I will tell you how to use it, how to reject bad trade and how to find good one.

cause I dont think a ea cant work alone, take a ea on a demo account and take only good trade on your real account.

btw, we will see...

the ea, use only moving average, it buy or sell when the difference between the moving average and the price = the number you want

so in "input" I would like to be able to set : for the sell :the number of pips between the moving average and the price

for buy: same thing (if we write 50 there, it wil buy if the price go 50 pip over the moving average, and if we write -50 it will buy if the price go 50 pip under the moving average)

the number of period for the MA

if possible the target and the stop lost

after that I will tell you how to use it and we will all be able to make money!

thank you very much

 
I think, I can help You... Mail me: pszurpita[at]o2[dot]pl
 
4ex wrote >>

hi

is it possible for anyone to help me to built a ea please?

I dont think it will be very complicated for someone like you.

in exchange, every one here will be able to use it an I will tell you how to use it, how to reject bad trade and how to find good one.

cause I dont think a ea cant work alone, take a ea on a demo account and take only good trade on your real account.

btw, we will see...

the ea, use only moving average, it buy or sell when the difference between the moving average and the price = the number you want

so in "input" I would like to be able to set : for the sell :the number of pips between the moving average and the price

for buy: same thing (if we write 50 there, it wil buy if the price go 50 pip over the moving average, and if we write -50 it will buy if the price go 50 pip under the moving average)

the number of period for the MA

if possible the target and the stop lost

after that I will tell you how to use it and we will all be able to make money!

thank you very much

I can help you, contact me at jyforex@gmail.com

 

Hi EX4,

You will find here-attached the requested EA,

dowload it and enter your parameters,

I added some filters you can easily neutralise like ATR (volatility) our trading hours

I can optimise it with new filters if you want.

Actually it i programmed to work on any pair and any timeframe.

You can give me your parameters to secure the choices and limit the possible mistakes

You can email me directly on

lionel.houba(at)wanadoo.fr

Hope this helps

Lionel

France

//+------------------------------------------------------------------+
//| delta MA bar driver.mq4 |
//| Leyoye trading corp. |
//| |
//+------------------------------------------------------------------+
//| Lionel HOUBA |
//| |
//+------------------------------------------------------------------+
#property copyright "Lionel HOUBA"
#property link ""

//----The goal of this EA is to catch a market returnment after a strong market reaction
//----analysing the delta between the MA and the bar
//----You can set the trading hours, Take profit, Stop loss, delta MA bar, volatility level.

//---- input parameters

extern double lotsize = 0.1;
extern double MAXORDERS = 1;
int ticket;
extern double take_profit = 0.003;
extern double stop_loss = 0.003;
extern double hour_start = 0;
extern double hour_end = 24;
extern double moving_period = 14;
int delta_MAbar ;
extern double delta_MAbarchoice = 0.004;
extern double ATR_value = 0.0004;
double MA;
return;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----

//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----

//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
double MA;
double delta_MAbar;

//----defining MA :

MA=iMA(NULL,0,moving_period,0,MODE_SMA,PRICE_OPEN,0);

//----defining delta MA/bar = mobile average - last open

delta_MAbar = MA-Open[0];


//---BUY conditions-------------------------------------------------------
// if the delta betwwen the MA and the last is more than the defined GAP (enter this value previously)

if (

(delta_MAbar>delta_MAbarchoice)

//---- limitation of the number of open positions (not more than one open position simultaneously)
&&(OrdersTotal() < MAXORDERS)

//---- if volatility (ATR) is enough (enter this value - put 0.0001 to neutralise this function)

&& (iATR(NULL,0,12,0)>ATR_value)

)

OrderSend (Symbol(),OP_BUY,lotsize,Ask,3,Open[0]-stop_loss,Open[0]+take_profit,"",0,0,Red);


//----SELL conditions------------------------------------------------------------------------+

if (

(delta_MAbar<-delta_MAbarchoice)

//---- limitation of the number of open positions

&&(OrdersTotal() < MAXORDERS)

//---- volatility (ATR) is enough

&& (iATR(NULL,0,12,0)>ATR_value)

)

OrderSend(Symbol(),OP_SELL,lotsize,Bid,3,Open[0]+stop_loss,Open[0]-take_profit,"",0,0,Green);

return(0);
}
//+------------------------------------------------------------------+

Files: