Strategy tester can only order for the selected pair in the user interface
-BB-

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
I'm trying to run an optimization to see which is the best currency pair for trading, here is what I have thus far:
extern int currency = 1;
if(currency ==1)
{
plugcu = "EURUSD";
}
if(currency ==2)
{
plugcu = "USDJPY";
}
if(currency ==3)
{
plugcu = "USDCHF";
}
if(currency ==4)
{
plugcu ="GBPUSD";
}
ticket = OrderSend(plugcu, OP_SELL, lots, Bid, slippage, realSL, realTP, nameEA, 16384, 0, Red);
All indicators include plugcu for currency input (instead of NULL).
The tester is returning Ordersend error invalid symbol. I belive the problem lies in when I put 2 into the currency extern variable but I specify a backtest or optimization using the EURUSD symbol (because you have to have something in that field).
Any ideas?