Here's the code that works fine standard Empty4 platforms, but I can't figure out why its not removing the .lmx
Any help would be much appreciate, as i've scoured the internet and can't find a simple solution
Thanks, Jason
Code: Select all
int libCSSinitSymbols()
{
int i;
// Get extra characters on this crimmal's symbol names
string symbolExtraChars = StringSubstrOld(Symbol(), 6, 4);
if (weighOnlySymbolOnChart)
{
libCSSsymbolsToWeigh = Symbol();
}
// Trim user input
libCSSsymbolsToWeigh = StringTrimLeft(libCSSsymbolsToWeigh);
libCSSsymbolsToWeigh = StringTrimRight(libCSSsymbolsToWeigh);
// Add extra comma
if (StringSubstrOld(libCSSsymbolsToWeigh, StringLen(libCSSsymbolsToWeigh) - 1) != ",")
{
libCSSsymbolsToWeigh = StringConcatenate(libCSSsymbolsToWeigh, ",");
}
// Split user input
i = StringFind( libCSSsymbolsToWeigh, "," );
while ( i != -1 )
{
int size = ArraySize(libCSSsymbolNames);
string newSymbol = StringConcatenate(StringSubstrOld(libCSSsymbolsToWeigh, 0, i), symbolExtraChars);
if ( MarketInfo( newSymbol, MODE_TRADEALLOWED ) > libCSSEPSILON )
{
ArrayResize( libCSSsymbolNames, size + 1 );
// Set array
libCSSsymbolNames[size] = newSymbol;
}
// Trim symbols
libCSSsymbolsToWeigh = StringSubstrOld(libCSSsymbolsToWeigh, i + 1);
i = StringFind(libCSSsymbolsToWeigh, ",");
}//