So maybe just put it on several pairs.
This will not work, because I wrote for one pair... signals are taken from the current pair, and the work with orders is organised for one pair only(
if(OrdersTotal()==0)... if(OrdersTotal()>0)...
Of course, I can connect the signals with other pairs... ...but I can't manage orders with them... at least not yet)
Maybe someone would like to redo it. I'm too lazy.
We'll wait, then. >> maybe somebody can help.)
I'd really like to test a few pairs at the same time...
I cannot do it myself... but I'd appreciate it if you could help me make a multicurrency EA)
If you want to make a multi-currency EA in a tester, you cannot test it in principle (it generates ticks only for one pair under test). For this purpose one and the same EA should distinguish its own orders and orders of other EAs using the same magic number set for example in its parameters ;)
...To do this, the same advisor must be able to distinguish between its own and other people's orders by the same magic set for example in its parameters ;)
In principle, it does not matter for me if it will be a real multi or just distinguish other's orders. I want to trade on several pairs, not on one... I want to try it on a demo for a month or two... I'm just interested in the result...)
..To do this, the same EA must distinguish between its own and other people's orders by the same magic set for example in its parameters ;)...
..or automatically generated ;))
I'll put in the code with the magik generator... but what's in it for me... I need to understand the algorithm.)
Might help.
int Order_Count[6]; //=============================================================================== // Функция возвращаюшая количество ордеров определенного типа исхода из заданных ограничений //=============================================================================== void Order_Count_Calculate(string _Symbol, int Magic){ ArrayInitialize( Order_Count,0); for (int i = OrdersTotal() - 1; i >= 0; i--) { if (!OrderSelect( i, SELECT_BY_POS, MODE_TRADES)) continue; if (OrderSymbol() != _Symbol) continue; if (OrderMagicNumber() != Magic) continue; Order_Count[OrderType()]++; } }
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I'd really like to test a few pairs at the same time...
I cannot do it myself... If you can help me to make a multicurrency EA) I will understand the essence of working with several pairs...
I wrote it myself, for five digits... ...and took something from the forum...)
description here)