You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
given the following two arrays:
string symbols[]=
{
"USDCHF","GBPUSD","USDJPY","EURUSD","AUDUSD","USDCAD","EURCHF","EURGBP",
"EURJPY","EURCAD","EURAUD","GBPCHF","GBPJPY","CHFJPY","NZDUSD","NZDJPY",
"CADCHF","EURNZD","AUDJPY","AUDCHF","AUDCAD","AUDNZD","CADJPY","USDSGD",
"GBPCAD","GBPAUD"
};
double values[26]=
{
51.2, -78.2, 15.6, -22.9, 11.0, 89.4, -44.1, 2.6, -48.6, -45.3, -1.05,
21.2, -8.2, 65.6, 32.9, -71.0, 9.4, -34.1, 52.6, -18.6, 5.3, -51.05,
-94.01,24.3,50.6,-97.5
};
the values in the array values[] correspond to the symbols in the array symbols[]. i would like to send trades in the symbols corresponding to the five highest and five lowest values (in a loop),
that is, [BUY : USDCAD : 89.4],
[BUY : CHFJPY : 65.6],
[BUY : AUDJPY : 52.6],
[BUY : USDCHF : 51.2],
[BUY : GBPCAD : 50.6],
[SELL : GBPAUD : -97.5],
[SELL : CADJPY : -94.01],
[SELL : GBPUSD : -78.2],
[SELL : NZDJPY : -71.0],
[SELL : AUDNZD : -51.05].
thanks in advance...