Need Pending order EA
Page 1 of 502 12 LastLast
Results 1 to 10 of 18

Thread: Need Pending order EA

  1. #1
    Hi,

    I need EA who creates pending order. Example. EURUSD is on 1.37555. . When price cross ex. 1.37700 it creates long position. . with SL. When position hits SL, EA again make pending order on same price 1.37700. . So really it is like breakout EA.

  2. #2
    Yes, if price ch SL, EA again must open pending order. It may even hit 100 times SL, but it must always open pending order on Delta price (choosen price).


    EX. S/R level is seen by me. I simply set in EA price that I want to split out. . EA opens pending order. If price hit and interrogate SL, it opens again pending order on same price.

    Sorry for my english. Thank you.

  3. #3
    I've modified the ea (see link above) and it appears to work.
    The ea does not send orders so the first order you will have to send manually or whatever.

    When there are no errors/bugs I believe I will not do further modifiions to your ea.
    https://forexintuitive.com/attachmen...483970559275.1
    https://forexintuitive.com/attachmen...484782378083.1

  4. #4
    Wau fast. Big Thank you!!!

    What mean SLthresholdPip?

    So I drag EA on chart. . Then I create pending order. . with sl. . And when it will hit that order. . And when it will retrace and hit sl, it will open again that same pending order?

  5. #5
    You can conduct the ea in the backtester, there opens orders and you see how it functions.

    You have to adjust the settings too (e.g. magicnumber( which will be 0 for manual trades).

    Slthresholdpips is the buffer (the pips involving orderstoploss and ordercloseprice), serve:

    Inserted Code bool IsSLhit(string symbol,int type,dual ordercloseprice,dual orderstoploss) dual slcpdistance = MathAbs(ordercloseprice-orderstoploss)/pips2dbl; if (slcpdistancegt;SLthresholdPips) return(FALSE);//assume that there was NO sl hit return(true);
    Another option is to see if (OrderProfit Ordercommission OrderSwap)lt;0, but so you can check if the order was shut in reduction and not if the sl was hit (when using profittrailing for example), so I thought I'd attempt the way I did...

    I think comparing if orderstoploss is equal -LRB-==-RRB- ordercloseprice Won't be safe (slippage), so we can let a buffer (default: 5 pips) for considering an order was shut in SL

  6. #6
    aaaa. . Thank You. !! It works great!!

  7. #7
    Hi, I have problem, EA doesn't operate on XAUUSD. On alpari uk. When trade hits sl, it will not open new one.

  8. #8
    Actually, it does not work on some pair. It works good on backtesting, but does not work on live.

  9. #9

  10. #10
    Any errormessages in the experts/journal tab?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners more information