@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.
Allow the EA to trade dynamically on any 3 out of 5 charts loaded. How would I do this?
-
@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.
-
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.
-
@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.
-
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. -
@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.