Steve,
Please add this to the init() procedure:
Code: Select all
...
symbolCount = ArraySize(symbolNames);
ArrayInitialize(currencyOccurrences, 0.0);
for (int i = 0; i < symbolCount; i++ )
{
...
The currencyOccurrence array has to be set to 0 on every initialization. Otherwise the currency Slope Strengths do not calculate right.
'ArrayInitialization(currencyOccurrences, 0.0);' is the only line to add.
Could you also consider changing the default 'PairsToTrade' extern string to:
Code: Select all
extern string PairsToTrade = "GBPNZD,EURNZD,GBPAUD,GBPCAD,GBPJPY,GBPCHF,CADJPY,EURCAD,EURAUD,USDCHF,GBPUSD,EURJPY,NZDJPY,AUDCHF,AUDJPY,USDJPY,EURUSD,NZDCHF,CADCHF,AUDNZD,NZDUSD,CHFJPY,AUDCAD,USDCAD,NZDCAD,AUDUSD,EURCHF,EURGBP";
This to keep it in line with the NanningBob 10.2 system (and my indicators).
Paul