fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    takeprofit and Groups

    Questions & Answers
    2
    3
    512
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      holygrailfx last edited by

      I have 3 different trade groups (which are assigned different groups by an Fxdreema EA and I add manual trades sometimes

      I want to have group 1 and manual trades to be dandled by Takeprofit routine 1
      and group 3 by takeprofit routine 2
      and the group 2 trades by takeprofit routine 3

      Ok so it is easy to have group 2 and 3 assigned to a certain TP regime, I just plug in their number in the exsiting system

      In the current system, I would ahve to duplicate the TP routines in order to have one that treats manual and another (an exact copy) to handle group 1

      So my question is, is there any way I can assign a group number to manual trades?
      that way I dont have to duplicate code, even though it is easy enough to do

      Thanks

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        No, manual trades are always 0. The magic number (and the group, which is basically the magic number) exists only because of expert advisors. Maybe if you set the MagicStart parameter to 0, so the EA would normally works with manual trades, and then you can use Group # as a real Magic number.

        Magic Number (the real magic number that the trade has) = MagicStart (which is an input parameter of the ea) + Group number (found in blocks)

        1 Reply Last reply Reply Quote 0
        • H
          holygrailfx last edited by

          I will try that
          should ahve thought of that, darn 😉

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          T
          M
          C
          A
          A
          H
          E

          12
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors