Re-initiating pending order EA after SL is hit
Results 1 to 2 of 2

Thread: Re-initiating pending order EA after SL is hit

  1. #1
    Corsou1990
    Guest
    Hello, I have a pending order script but would like it to re-initiate when the SL gets struck.

    The idea behind it is that I will get stopped out many times to get a -5 pip reduction but finally I'll be in the wright place when price makes the decision to move.

    I will pay particular price for in this place but at some time the rend will cover this price back, I am aiming to hold those positions for a few months, till they've grown enough.

    My inspiration for this came after reading the following thread: https://www.forexforum.co.za/cryptoc...rice-feed.html

    Notably the post of TheRealThing caught my attention, according to him this is a technique used by professionals, simply they have some employees that keep watching the market 24h to place the trades manually.

    If that is true then I don't know why I can not loe an EA for this and why there is so little info regarding this on the internet, is this idea maybe to easy?

    I have been backtesting it a little bit visually and seems to be profitable,but I have to forward examine it whit an EA to be certain.


    Does anybody understand what I have to change in the code to make it function as a EA that retains re-initiating it after the SL?

    When I place them in the expert folder an execute then they simply keep opening pending orders each second
    https://www.forexforum.co.za/attachm...1593929914.mq4
    https://www.forexforum.co.za/attachm...9929854401.ex4
    https://www.forexforum.co.za/attachm...1419587360.mq4
    https://www.forexforum.co.za/attachm...2583110212.ex4

  2. #2
    Quote Originally Posted by ;
    Hi, I have a pending order script but I would like it to re-initiate when the SL gets struck.

    The idea behind it's that I will get stopped out several times to get a -5 pip loss but eventually I'll be in the wright position when price makes the decision to move.

    I shall pay certain price to get in this position but at some time the rend will pay this price back, I am aiming to maintain these positions for a few months, until they've grown enough.

    My inspiration for this came after studying the following thread: https://www.forexforum.co.za/cryptoc...p-pricing.html

    Especially...
    You can dig into trade history using order select purpose:
    for (int I = 0; I lt; Total; I )
    OrderSelect(I, SELECT_BY_POS, MODE_HISTORY);
    ....
    ....
    ....


    The one with SL hit would be the one with negative profit or the one with sl in comment area.

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.