1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. 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

Tutorial Code - Same TakeProfit for many Orders

Discussion in 'Requests and Suggestions' started by garago, 08 Nov 2019 at 22:43.

  1. garago

    garago Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hello my friends
    I need help
    I'm looking for code to calculate the TakeProfit level for all open orders.

    I'll explain

    I opened
    #1 buy 0.01 lots at 1.3
    #2 sell 0.01 lots at 1.3
    #3 buy 0.02 lots at 1.2
    #4 buy 0.03 lots at 0.9
    the cicle FOR must calculate the level of takeprofit for all 4 orders in order to have a profit of 10$

    I hope I explained myself

    Thanks
    Ciao
     

Share This Page