fxDreema

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

    Allow the EA to trade dynamically on any 3 out of 5 charts loaded. How would I do this?

    Questions & Answers
    2
    5
    1862
    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.
    • I
      Implosion last edited by Implosion

      @fxDreema By loading the EA on each chart I can't as yet limit the number of trades initiated on different charts. All I want to do is use three out of the five charts when my trading strategy sees an opportunity to trade. As my margin would not stand 5 charts with trades on them.

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

        But the trades does not depend on the charts. Let's say you are using "No trade" block to check whether there is any trade at the moment. For this block you have Group, Symbol and Type options. The Group is pretty much the magic number, which you should understand how it works. So this block asks for these things that are attributes of the trade itself.

        And you can change all these options. You can also set the magic number of each EA (it's the MagicStart input parameter). It's all depending on which trades you want to control from the particular chart.

        What the chart itself does to the EA is to feed the EA with ticks from its Symbol and also to set the "current" symbol to whatever the symbol is. By Symbol I also mean "Market"... if you see "Market" in some blocks.

        1 Reply Last reply Reply Quote 0
        • I
          Implosion last edited by Implosion

          @fxDreema That's right the trades do not depend on the charts. That is correct.

          Now my problem is I want to logically block the ticks from flowing to a EA which is on a particular chart when I have trades open on other charts. I want the magic number to stay the same as I calculate the profit across all the charts which are running the same magic number EA. I am thinking of a logic block which says this " Number of charts with open trades is less than" It would have all the usual filters you include like groups, specified market.

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

            Logic blocks: For Each Trade->Once Per Trade Order->Counter->Entry Method.
            There is a counter and a reset counter for each parent trade and for each exit strategy. So one entry and two exits would be two counters with resets. Count would depend on how many charts each exit strategy closes.

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

              @implosion You can try to logically block the ticks with these Terminal Variables (called Global Variables in MetaTrader) - https://fxdreema.com/help/working-with/terminal-variables. This is how you can send information from one EA to another.

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

              Online Users

              B
              A
              P
              A
              A
              X
              K

              25
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors