Trying to test an EA on multiple pairs simultaneously, within the same demo account. Unfortunately, the EA only opens 1 pair/trade at a time ... on the entire platform. Have set it up with separate Magic #'s for each pair to no avail.
I believe I've isolated the issue but have not yet figured out how to solve this. I've noticed by increasing the total<1 to a larger number then trades can open on all appropriate pairs ... but this includes multiple trades per pair.
Can anyone please suggest how to rework this so as to allow only 1 position per pair ... but multiple positions per account? Would be greatly appreciated.
Current code & placement in EA is below
int start()
total = OrdersTotal();
if(total < 1)
{
// no opened orders identified
I believe I've isolated the issue but have not yet figured out how to solve this. I've noticed by increasing the total<1 to a larger number then trades can open on all appropriate pairs ... but this includes multiple trades per pair.
Can anyone please suggest how to rework this so as to allow only 1 position per pair ... but multiple positions per account? Would be greatly appreciated.
Current code & placement in EA is below
int start()
total = OrdersTotal();
if(total < 1)
{
// no opened orders identified