Honesty is a very expensive gift. You wont find it in cheap people.WBuffett
Looking for Death Cross and Golden Cross indicators 4 replies
Rsi cross indicator? (NOT cross 50, etc) 44 replies
Royal Cross/Fresh Cross 7 replies
Ea to be developped on cross ema 15 and 40 8 replies
BunnyGirl Cross system 37 replies
Disliked{quote} Hi Emmanuel, Is there any further activity with respect to 5-Method? Cheers! SachuIgnored
int WaitTime = 1; // 1 Hour
static int TimeSent;
if (TimeCurrent() >= TimeSent + (WaitTime * 3600))
{
OrderSend(.....);
TimeSent = TimeCurrent(); }
else
return(0);
extern int Pipstep=10;
double Last_BUY_OpenPrice=0;
double Last_SELL_OpenPrice=0;
int BUY_OpenPosition=0;
int SELL_OpenPosition=0;
int TOTAL_OpenPosition=0;
int cnt=0;
for (cnt=0;cnt<OrdersTotal();cnt++)
{
OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);
if (OrderSymbol()==Symbol()&&OrderMagicNumber()==Magic&&OrderCloseTime()==0)
{
TOTAL_OpenPosition++;
if (OrderType()==OP_BUY)
{
BUY_OpenPosition++;
Last_BUY_OpenPrice=OrderOpenPrice();
}
if (OrderType()==OP_SELL)
{
SELL_OpenPosition++;
Last_SELL_OpenPrice=OrderOpenPrice() }}}
if (BUY_OpenPosition==0||(Bid-Last_BUY_OpenPrice)>(Pipstep*Point)))BUY="true";
if (SELL_OpenPosition==0||(Last_SELL_OpenPrice-Ask)>(Pipstep*Point)))SELL="true"; extern int Distance = 100; double WO=iOpen(NULL,PERIOD_W1,0); if (Ask<WO+Distance*Point && Ask>WO-Distance*Point)BUY="true""; if (Bid<WO+Distance*Point && Bid>WO-Distance*Point)SELL="true";}