How to find if any EA order has been closed by TP - Page 3
Page 3 of 614 FirstFirst 1234 LastLast
Results 21 to 30 of 38

Thread: How to find if any EA order has been closed by TP

  1. #21

  2. #22
    Quote Originally Posted by ;
    Sure. file
    .

    I shall do some testing at the week and allow you to know what we have. And thanks mate.

  3. #23
    Man you did the job. I can not express how thankful I am.

    I have one question where should I enter indiors and conditions for the very first order entry and the second's order the reverse because I want to check if the adjusted SL is better than if only opposite signal is triggered.

    Because maunually it is fairly difficultto do so much testing.

    Example. buy at 1.3000. Tp 30

    conditions for market = accurate

    open market order with current price TP 30.

    Along with the ping pong remains as it had been.

  4. #24
    You want to have, if I know well?
    I will do that but keep in mind: This will be the last thing that I shall help you with, in this issue.

  5. #25
    Quote Originally Posted by ;
    If I understand well, you want to have control over what side the ping-pong begins on? I will do this but bear in mind: This will be the final thing I shall help you with, in this issue.
    It's virtually correct look I want the side by where it begins and also conditions to be met for the first opposite order.

    Example: Let say I put state that if price is over Moving average buy else if price is below Sell.

    Price is over MA buy order is open. Now I wish to open opposite order when price drops below that MA. And after that to continue ping pong.
    Thanks in advance mate.

  6. #26
    You need to be quite exact about each and every parameter (or step) the EA must consider (because I do not want to get it done over and over again, or ask and ask for clarifiion). Not just a shallow case.
    So, now it seems the measures are as follows? :
    1. If condition #1 is fulfilled: start commerce.
    2. If condition #2 is fulfilled: do the reverse of the last trade.
    3. If condition #1 is fulfilled: do the reverse of the last trade.
    4. Start over from step two.

  7. #27
    Quote Originally Posted by ;
    You have to be quite precise about each and every parameter (or step) that the EA must consider (because I do not wish to do it over and over again, or ask and ask for clarifiion). Not just a shallow example. So, now it looks that the steps are as follows? : 1. If condition #1 is met: start trade. 2. If condition #2 is met: do the reverse of the previous trade. 3. If condition #1 is met: do the reverse of the previous trade. 4. Start over from step two.
    Ok mate I get you.

    Detailed example as you can.
    1. No transactions at all waiting for sign

    1. Price is above 10 MA signal Buy with adjusted TP 30pips.
    2. Following while price drops under 10 MA (sell sign ) open sell order with TP 30 pips.
    3. Ping pong between this buy and sell price until TP is hit from any side.

  8. #28

  9. #29
    Quote Originally Posted by ;
    New code: document
    Thanks.
    I shall test it in the evening because today I am at yesterday and job did not managed to do it. When I test it will come back to you with the outcomes.

  10. #30
    Quote Originally Posted by ;
    New code: document
    It does exactly what I want. The only issue is that after TP is hit. Lot multiplier continues to multiply lot in the previous order instead of starting over again by starting lot.

    Last caution if I will want to add another indior I will need to include in this code right.
    Int cond_start()

    if(Bid gt; iMA(NULL, 0, 100, 0, MODE_SMA, PRICE_CLOSE, 0)) return OP_BUY;

    If Istoc( bla bla) return OP_BUY;

    return -1;


    The return OP_BUY needs to be added after each condition or only in the last state before return -1

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.