+15
sl to be
sl to be
Attached Image
1
MT4: how to change "EURUSD" to "#EURUSD"? 3 replies
Re: EurUsd short term 15 replies
did oanda just drop its spread for eurusd to 1 pip? 11 replies
EA for multiple lot limit order for EURUSD 0 replies
NFP nice bump up on EURUSD 2 replies
DislikedStarting to sell rallies here, 1.1850 with 50/60 pips on every sell I will chanceIgnored
Disliked{quote} I already did that, 3 times. But I also stated that price is still ok (trend not trade). So I admit again, as I did a few times, the trade signal was wrong but price (direction) isn't. You can quote within let's say, a month?My confessions: https://www.forexfactory.com/showthr...2#post10373352 https://www.forexfactory.com/showthr...9#post10375529 https://www.forexfactory.com/showthr...2#post10378242
Ignored
Disliked{quote} Thanks for the recommendation. I'm sure we are allowed to talk about brokers. It would not be much of a forex site if that were forbidden.Ignored
Disliked{quote} I highly don't recommend my strategy that resulted in a 150 pip loss but eventually it turned around and I not only recouped my 150 pips but made a profit. Like I said, I don't recommend it simply because you are committed long term and it can be very frustrating. However the worst that has happened was I broke even.Ignored
Disliked{quote} damn, damn and damn i had used a very very wrong function in my code, just saw it today n thought oh my how could i ever code this ea here, it will never work !!! fixed it now, lolIgnored
//+------------------------------------------------------------------+
//| BRUTE-FORCE-TRADER-TERI-MAA-KI.mq4 |
//| |
//| |
//+------------------------------------------------------------------+
#property copyright ""
#property link ""
#property version "1.00"
#property strict
extern double sl = 20;
extern double lots = 0.05;
extern bool trade = false;
extern int totorders = 0;
extern bool buytrade = false;
extern bool selltrade = false;
extern bool allowstop = false;
extern bool closetrade = false;
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//---
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//---
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
//---
if (trade == true)
{
if ( OrdersTotal() == totorders )
{
if (buytrade == true)
{
bool bt = OrderSend ( Symbol(),OP_BUY,lots,Ask,5,0,0,"", 0,0,Green);
}
if (selltrade == true)
{
bool st = OrderSend(Symbol(),OP_SELL,lots,Bid,5,0,0,"", 0,0,Green);
}
}
}
if (closetrade == true )
{
cltrade();
}
if (allowstop == true)
{
stoploss();
}
}
//+------------------------------------------------------------------+
void stoploss()
{
for (int i = 0 ; i < OrdersTotal() ; i++ )
{
bool a = OrderSelect ( i , SELECT_BY_POS , MODE_TRADES ) ;
if ( OrderSymbol() == Symbol() )
{
if ( OrderType() == OP_BUY )
{
if (OrderStopLoss() == 0 )
{
bool mbs = OrderModify ( OrderTicket() , OrderOpenPrice() , OrderOpenPrice() - (sl * Point) , OrderTakeProfit() , 0 , Green ) ;
}
if ( Bid > ( OrderStopLoss() + ( sl * Point ) ) )
{
bool sbs = OrderModify ( OrderTicket() , Bid - (sl * Point) , OrderStopLoss() , OrderTakeProfit() , 0 , Green ) ;
}
}
if ( OrderType() == OP_SELL )
{
if (OrderStopLoss() == 0 )
{
bool mss = OrderModify ( OrderTicket() , OrderOpenPrice() , OrderOpenPrice() + (sl * Point) , OrderTakeProfit() , 0 , Green ) ;
}
if ( Ask < ( OrderStopLoss() - ( sl * Point ) ) )
{
bool sss = OrderModify ( OrderTicket() , Ask + (sl * Point) , OrderStopLoss() , OrderTakeProfit() , 0 , Green ) ;
}
}
}
}
}
void cltrade()
{
for (int i = 0 ; i < OrdersTotal() ; i++ )
{
bool a = OrderSelect ( i , SELECT_BY_POS , MODE_TRADES ) ;
if ( OrderSymbol() == Symbol() )
{
if ( OrderType() == OP_BUY )
{
bool cbt = OrderClose ( OrderTicket(), OrderLots(), Bid, 0, Green );
}
if ( OrderType() == OP_SELL )
{
bool cst = OrderClose ( OrderTicket(), OrderLots(), Ask, 0, Green );
}
}
}
} Disliked{quote} will try shorts here if we reach today... and again at 1.1914ish... {image}Ignored
Disliked{quote} and here we are, but after taking a closer look, much prefer shorting at 1.1913/15, much crispier....Ignored