Looking for this EA

I have made use of the Martingale system in my trades and i can say that the system has worked for me only at those times when i saw a Uni-directional Trends in the currency i was doing my trades in :rolleyes:

Martingale is a profitable strategy, but it if you're not careful it will quickly blow up your account.
 
Martingale is a profitable strategy, but it if you're not careful it will quickly blow up your account.

I can say that some of the Forex traders are using the Martingale trading strategy in their trades and if they will use the trading system correctly then they can for sure get much benefits in trading :)
 
Try This Function :


void SetAllTP(double tp,int direction)
{
//check for a clean tp
tp=NormalizeDouble(tp,Digits());
//check all orders
bool selected;
bool modified;
for(int x=0;x<OrdersTotal();x++)
{
//select trade
selected=OrderSelect(x,SELECT_BY_POS,MODE_TRADES);
if(selected)
{
//if trade is on this pair and of this magic number
if(OrderSymbol()==Symbol()&&OrderMagicNumber()==MN)
{
//and its direction matches the direction received upon function call
if(OrderType()==direction)
{
//attempts to modify
for(int a=0;a<9;a++)
{
modified=OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(),tp,0,clrOrange);
if(modified)
{
break;
}
Sleep(612);
}
//attempts to modify end here
}
//and its direction matches the direction received upon function call ends here
}
//if trade is on this pair and of this magic number ends here
}
//select trade ends here
}
//check all orders ends here
}
 
Back
Top