1. Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)
    Dismiss Notice

Suggestion I will make a Free EA with your Indicator

Discussion in 'Expert Advisor atau Robot Forex' started by winidecorw, 12 Jan 2018.

  1. DanhNPC

    DanhNPC Member Credit Hunter

    Equity
    Credit
    Ref Point
    Dear Tanaka,

    I have an idea for EA TitanXpro as below, please spend some time to modify the EA:

    The function OppositeClose, the EA will close the trade when opposite signal appears AND satisfy following condition:

    - Profit of the trade must be over a specific number (input number, pip or dollar) -> for the purpose that the EA only close trade with positive profit, trade with negative profit remains the same.

    Thank you.
     
  2. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    OK, if current profit is more than **** dollar & oppsite signal appear = close,
    OK?
     
    • Winner Winner x 1
  3. WidiNug

    WidiNug Member Credit Hunter

    Equity
    Credit
    Ref Point
    This good idea for other EA too,, option opposite close with profit more than xxx option.
     
  4. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    OK, i will add my template.
     
  5. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    upload_2019-6-20_13-18-23.png
    I added it.
     

    Attached Files:

  6. DanhNPC

    DanhNPC Member Credit Hunter

    Equity
    Credit
    Ref Point
    Wow super Tanaka, thank you a lot for your contribution!
     
    • Agree Agree x 1
    • Friendly Friendly x 1
  7. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    Here you go.
    upload_2019-6-20_13-38-52.png

    upload_2019-6-20_13-39-1.png
     

    Attached Files:

  8. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    I also FT this EA now, if you get good FT result, please tell me.:ok:
     
    • Agree Agree x 1
  9. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    HI, This is new template.
     

    Attached Files:

    • Winner Winner x 1
  10. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    I added smart phone alert.
     

    Attached Files:

  11. DanhNPC

    DanhNPC Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hello Tanaka,
    Opposite close with minimum profit works fine with MaxTrade=1, but more than 1 trades then the EA doesn't close trade with profit.
    Please modify, opposite close profit is applied for a single trade, not basket.
     

    Attached Files:

  12. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    Oh, you mean single trade.ok
     
  13. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    If you have 5 orders total now.
    1. $20
    2. -$5
    3. $10
    4. -$5
    5. $2

    So how can I code? Sum all profit and if it is more than xxx dallers, close with opposite?
     
  14. DanhNPC

    DanhNPC Member Credit Hunter

    Equity
    Credit
    Ref Point
    In that case, if the opposite signal appears and profit is set at 1 dollar, I want the EA close trade number 1, number 3 and number 5. Trade with negative profit (#2 and #4) still open, then the next opposite signal appears again and profit condition is satisfied, the trade will be closed.
     
  15. fenny123

    fenny123 Member Credit Hunter

    Equity
    Credit
    Ref Point
    THANK YOU!
     

    Attached Files:

    • Like Like x 1
  16. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    Wow, it is a little bit complicate code... I need to check each order profit ..Give me some time.
     
  17. DanhNPC

    DanhNPC Member Credit Hunter

    Equity
    Credit
    Ref Point
    Of course! Thank you in advance.
     
  18. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    Here you go.

    You set below
    upload_2019-6-20_16-3-37.png


    Then only orders which profit is more than $10, they are closed with opposite signal.

    upload_2019-6-20_16-5-44.png
     

    Attached Files:

    • Like Like x 2
    • Agree Agree x 1
    • Winner Winner x 1
  19. w4ndie

    w4ndie Member Credit Hunter

    Equity
    Credit
    Ref Point
    Reminder Master
     
  20. valentin

    valentin Member Credit Hunter

    Equity
    Credit
    Ref Point
    Снимок.PNG Hello, Mr. Tanaka make EA.. blue bar green arrow-buy. red bar red arrow-sell. the exit at the opposite signal arrow
     

    Attached Files:

    • Winner Winner x 1

Share This Page