Using ElCollection to read CSV file: Error

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Using ElCollection to read CSV file: Error

Postby arjfca » 22 Mar 2013

Hello

I'm trying to use ElCollection dll to read a CSV file. The code compiled OK, but when it is run, I received an error message

:Can't find dll Elcollection.dll

Since the code did compile, how can I receive an error message that MC can't find the ElCollections.dll since << ListC.Readfile >> is a standard function from MC.

Martin :)

Code: Select all

Input:
StartLine (1);

Var:
Intrabarpersist Index (0),
ReadCSVString (""),
Instrument (""),
Date_ (""),
Tine_ (""),
Action (""),
QTE (""),
Price(""),
Reference ("");

Once Index = Startline;

Once begin
Value1 = ListC.Readfile(Index, "G:\Documents\Trading_Report");
print (value1);
end;

User avatar
ABC
Posts: 721
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: Using ElCollection to read CSV file: Error

Postby ABC » 23 Mar 2013

Martin,

ListC.Readfile is not a standard MC function, but a function from the ELCollections set. So you probably just need to place the ELCollections.dll in the MC program folder and everything should work fine.

Regards,
ABC

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Using ElCollection to read CSV file: Error

Postby arjfca » 23 Mar 2013

Martin,

ListC.Readfile is not a standard MC function, but a function from the ELCollections set. So you probably just need to place the ELCollections.dll in the MC program folder and everything should work fine.

Regards,
ABC
Good afternoon Chris

I did install the dll in MC folder and I'm receiving another error message. I will read again the documentation to see where it could fail

Martin :)
Attachments
Elcollection_Error_1.png
(9.6 KiB) Downloaded 539 times

User avatar
ABC
Posts: 721
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: Using ElCollection to read CSV file: Error

Postby ABC » 23 Mar 2013

Martin,

that error tells you that you are trying to retrieve values from a collection that doesn't exist or (if I recall it correctly) you are using a key that is not stored in your collection.

Regards,

ABC

youn56
Posts: 46
Joined: 29 Mar 2012
Has thanked: 13 times
Been thanked: 6 times

Re: Using ElCollection to read CSV file: Error

Postby youn56 » 26 Mar 2013

Hi Martin,

Perhaps, the issue is your file name ?

Have you tried to replace

Code: Select all

Value1 = ListC.Readfile(Index, "G:\Documents\Trading_Report");
by this one :

Code: Select all

Value1 = ListC.Readfile(Index, "G:\Documents\Trading_Report.CSV");
Best regards.


Return to “MultiCharts”