Jump to content

ukezguy

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by ukezguy

  1. we cannot have tp 1pip because with fxch stop level is 5pip

    some one have this ea?

    I think that it will work with LMAX (stop level 0)

    i hve tested ea of waddah attar ,it have the same strategy

     

    yeah edgar. But i don't get why its taking only 1pip.It reminds me of cyberiatrader that last in a trade for few seconds,aiming for 1pip profit before closing a trade. Whatever ea he is using,i am sure it wouldn't work live. No broker would allow such manner of scalping.

  2. I found the fault. Its in orderclose function.It sends sell order at bid(normally) and at the same time the ordercloses at ask making you loose almost instantly.But i have made it work,i added another feature(pipgain).This is the pip profit the ordercloses and not tp.

    Before:if (OrderMagicNumber()==Magic&&OrderSymbol()==Symbol()){if(OrderType()==OP_BUY){OrderClose(OrderTicket(),OrderLots(),Bid,3);

    Now:if (OrderMagicNumber()==Magic&&OrderSymbol()==Symbol()){if(OrderType()==OP_BUY){OrderClose(OrderTicket(),OrderLots(),Bid Pipgain*0.0001,3); same for sell. Thanks for the support. I know just alittle 'bout mql4 programming. My settings,just change BBperiod to "2" not "50". You would get a perfectly straight down equitygraph,no gains. Lol. But now its reversed,its straight up

  3. Can anyone code an ea using any good indicator. My strategy is "when a new candle is open it doesn't open a trade at once but a pending trade and just keeps riding with the candle".If the candle opens in a buy,the robot would place a pending buy but if it goes down to a sell,the pending buy changes to pending sell with tp of 3pips adjusting to the different order type.Backtest won't work on this robot.

    Second idea:Use MA indicator to create an ea of simple parameters but thoughtful entry. double diClose0=iClose(NULL,5,0); double diMA1=iMA(NULL,5,7,0,MODE_SMA,PRICE_OPEN,0); double diClose2=iClose(NULL,5,0); double diMA3=iMA(NULL,5,6,0,MODE_SMA,PRICE_OPEN,0);

    if ((diClose0<diMA1)){ OpenSell(); return(0); } if ((diClose2>diMA3)){ OpenBuy(); return(0); }.

    Takeprofit=3(according to symbol spread)

    stoploss=0(adjustable)

    lot=0.01

    trailingstop=0(adjustable)

    tradingstart=21:00

    tradingstop=10:00

    If you have any idea that would benefit us both,it is welcome(two heads better than one). Thanks in advance.

×
×
  • Create New...