razib
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by razib
-
-
Please visit the below link for the live trading performance for each day.
The original link for the EA website http://www.forex-e-trading.com/.
Please share if anybody has this EA.
Thanks in advance.
-
Anybody has this EA ? Please share if possible.
It has a great potential in scalping. Real live trading proof is given in below link
Please check on the daily performance result.
Original website link http://www.forex-e-trading.com/
-
Dear Friends,
Anybody please help adding Maximum open order option to this attached EA. Currently It opens more than 10 trade & after touching the TP level it opens more than 20 trade.
Adding MaxTrade option will be a great help to control the maximum open orders.
-----------------------------------------------------------------------------------
extern double Lots = 0.1;
extern int StopLoss = 50;
extern int TakeProfit = 100;
extern int TrailingStop = 20;
extern int mafastperiod=5;
extern int mafastshift=0;
extern int mafastmethod =MODE_EMA;
extern int mafastprice=PRICE_CLOSE;
extern int maslowperiod=8;
extern int maslowshift=0;
extern int maslowmethod =MODE_EMA;
extern int maslowprice=PRICE_OPEN;
double fast1, fast2, slow1, slow2;
//---------------------------------------------------------------------
int init()
{
return(0);
}
//---------------------------------------------------------------------
int deinit()
{
return(0);
}
//---------------------------------------------------------------------
int start()
{
// Calculate Indicators -------------------------------------------------
fast1=iMA(Symbol(),0,mafastperiod,mafastshift,mafastmethod,mafastprice,1);
fast2=iMA(Symbol(),0,mafastperiod,mafastshift,mafastmethod,mafastprice,2);
slow1=iMA(Symbol(),0,maslowperiod,maslowshift,maslowmethod,maslowprice,1);
slow2=iMA(Symbol(),0,maslowperiod,maslowshift,maslowmethod,maslowprice,2);
// Open Trades ----------------------------------------------------------
//LONG
if (fast1>slow1&&fast2<slow2)
{
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point,NULL,0,0,Blue);
}
//Short
if(fast1<slow1&&fast2>slow2)
{
OrderSend(Symbol(),OP_SELL,Lots ,Bid,0,Bid+StopLoss*Point,Bid-TakeProfit*Point,NULL,0,0,Red);
}
// Close Trades ---------------------------------------------------------
int i;
for (i = OrdersTotal()-1; i >=0 ;i-- )
{
OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
if ( (OrderSymbol() == Symbol()) &&
(OrderType() == OP_BUY) &&
(fast1 < slow1) &&
(fast2 > slow2) )
{
OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),0,White);
}
if ( (OrderSymbol() == Symbol()) &&
(OrderType() == OP_SELL) &&
(fast1 > slow1) &&
(fast2 < slow2) )
{
OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),0,White);
}
}
// Trailing Stop ---------------------------------------------------------
for (i = OrdersTotal()-1; i>=10 ;i--)
{
OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
if (OrderType() == OP_BUY)
{
if ( (Bid - OrderOpenPrice()) > (TrailingStop*Point) )
{
if ( OrderStopLoss() < (Bid - TrailingStop*Point) )
{
OrderModify(OrderTicket(),
OrderOpenPrice(),
Bid - TrailingStop*Point,
OrderTakeProfit(),
Red);
}
}
}
if (OrderType() == OP_SELL)
{
if ( (OrderOpenPrice() - Ask) > (TrailingStop*Point) )
{
if ( (OrderStopLoss() > (Ask + TrailingStop*Point)) ||
(OrderStopLoss() == 0) )
{
OrderModify(OrderTicket(),
OrderOpenPrice(),
Ask + TrailingStop*Point,
OrderTakeProfit(),
Red);
}
}
}
}
return(0);
}
//+------------------------------------------------------------------+
(Rea) 4xpartner all in one Expert Advisor with indicator
in MetaTrader Expert Advisors Request
Posted
Hi,
Could anybody please share this expert advisor with indicators ? It seems v.profitable as it also trades the news as well.
http://4xtrader.net/4xpartner/
thanks in advance.