rebeljedi wrote:I have absolutely no clue why AUD value is different in AUDUSD chart.
I have downloaded a new IBFXAU Empty4 platform and applied the ForceHistoricalData script (all loaded successfully) and the result is AUD value in AUDUSD chart is always different from other AUD pairs (e.g. AUDJPY, EURAUD).
Enclosed are 3 charts - AUDUSD, AUDJPY, EURAUD (All in same timeframe, same Currency Slope Strength indicator settings).
You will see that:
AUD = -0.43 in AUDJPY and EURAUD charts but
AUD = 0.20 in AUDUSD chart??
Any other ideas what need to be done? Any help is appreciated.
I think there is a defect in the code that strips out the pairs when showOnlySymbolOnChart = true. The code is supposed to check all currencies in the symbolsToWeigh list and make sure at least one of the pairs matches one of the pairs on the current chart. The current code:
Code: Select all
// Kill unwanted symbols from array
if ( showOnlySymbolOnChart )
{
symbolCount = ArraySize(symbolNames);
string tempNames[];
for ( i = 0; i < symbolCount; i++ )
{
for ( int j = 0; j < CURRENCYCOUNT; j++ )
{
if ( StringFind( Symbol(), currencyNames[j] ) == -1 )
{
break;
}
if ( StringFind( symbolNames[i], currencyNames[j] ) != -1 )
{
size = ArraySize( tempNames );
ArrayResize( tempNames, size + 1 );
tempNames[size] = symbolNames[i];
break;
}
}
}
for ( i = 0; i < ArraySize( tempNames ); i++ )
{
ArrayResize( symbolNames, i + 1 );
symbolNames[i] = tempNames[i];
}
}
The first "break" should actually be a "continue". The "break" drops us out of the for loop entirely, we really just want to skip the rest of the code inside the for loop and come back through checking the next value from currencyNames.
George