ADE, ELcollections, and GlobalVariables

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
damageboy
Posts: 70
Joined: 15 Sep 2006
Been thanked: 14 times

ADE, ELcollections, and GlobalVariables

Postby damageboy » 26 Oct 2006


[Moderator's notes:]
This thread was created when MultiCharts was a 32 bit software.
The attachments in this thread are for MultiCharts 32 bit version.
If you are using MultiCharts 64 bit version,
please download your 64 bit add-ons here: viewtopic.php?f=16&t=10094

[Moderator's notes:]
MultiCharts64 comes with the latest GlobalVariables (version 2.2); it is automatically installed into your computer during the MultiCharts installation. You do not need to install it again, all you needed is to read the documents and import the sample codes in the attachment below.





Hi everyone,
I'm writing this post so that anyone who needs to install indicators which are dependant of ADE (All Data Everywhere) will have a reference...

NOTE: The ELCollections library only works with the very latest beta (1.90.644.1126 as of the time of this writing).

ADE is a framework built on top of ELCollections.

In order to install ELCollections, you have to download the package in
https://www.TS.com/Discussions/Topic.aspx?Topic_ID=33397

You can follow the instructions in the documentation, the only thing you have to change for ELCollections to work in MC is the destination of the ELCollections.dll file. Just place it in the Multicharts.exe program directory (i.e. "C:\Program File\TS Support\Multicharts\"), once that it done you can import the "ELCollections.eld" file in the zip with PLEditor and you have ELCollections installed.

As for ADE (All Data Everywhere), which you an download from:
https://www.TS.com/discussions/topic.aspx?topic_id=33398
the installation is even simpler: You can follow the instruction exactly as they are described in the ADE.doc file. and you will have ADE installed in no time.

In addition, those of you in need of the GlobalVariables extension, will probably want to use the updated version to the one supplied with MC.
The latest GV (version 2.2) is available from here: https://www.TS.com/Discussions/Topic.aspx?Topic_ID=32115
To install it, simply replace the .dll found in MC program directory with the one in the zip, and import the .ELD file after you have deleted the GV_ functions found by default in MC.


[Update:]
Since some people have problems accessing the TS forums, I've posted the .zip file below, hope this doesn't piss anyone off, there was no license attached to these files, so I don't think I'm breaking anything... :)

Hope this helps someone
Attachments
ELCollections.zip
(264.12 KiB) Downloaded 2395 times
ADE.zip
(145.03 KiB) Downloaded 2195 times
Global Variable22.zip
(192.4 KiB) Downloaded 3123 times
Last edited by damageboy on 27 Oct 2006, edited 4 times in total.

miltonc4
Posts: 150
Joined: 14 Apr 2006
Has thanked: 1 time
Been thanked: 3 times

Postby miltonc4 » 26 Oct 2006

Thanks Damageboy
I tried with earlier versions of MC,but had no luck
Will try again
Its exellent stuff
Appreciate the update
Milton

damageboy
Posts: 70
Joined: 15 Sep 2006
Been thanked: 14 times

Postby damageboy » 27 Oct 2006

@Guest:
My bad,
I've updated the main post, so it's downloadable there too...

bowlesj3
Posts: 2028
Joined: 21 Jul 2007
Has thanked: 174 times
Been thanked: 405 times

Postby bowlesj3 » 29 Nov 2009

The command ListC.ReadFile(ID, FileName) is poorly explained. I finally got it to work and inserted an example of the basic code you need to get it to work. The revised document is included in the attached zip file.



Also this thread
Older Links on this forum seem to be messed up. this one does not work.
viewtopic.php?t=7286
I can not remember but this may be the proper link.
viewtopic.php?f=5&t=7764
Has a zip file containing a matching script that has great examples of how to use the ELcollections "list of Lists" method of getting data into MC. Speciflcally data which is in a line by line format with "numeric and string" data. Here is what it brings in.
10,M,1,M
5,M,1,M
1,M,10,S
0,M,0,M

This may help.
viewtopic.php?f=1&t=6919&hilit=ReadFile
Attachments
ELCollections_With_ListC_ReadFile_Example.zip
(21.93 KiB) Downloaded 1381 times
Last edited by bowlesj3 on 01 Apr 2012, edited 2 times in total.

User avatar
tucciotrader
Posts: 34
Joined: 31 Jul 2010

Re: Installing ADE/Elcollections in MC

Postby tucciotrader » 14 Feb 2011

Hi,

I tried ELCollections 1.05 on Multicharts v5.5 and it works great!! I was wondering if it works on v6 as well...thanks!

bowlesj3
Posts: 2028
Joined: 21 Jul 2007
Has thanked: 174 times
Been thanked: 405 times

Re: Installing ADE/Elcollections in MC

Postby bowlesj3 » 14 Feb 2011

Yes the MC collections version downloaded from this thread works on MC 6.0 beta 2 and 3 for sure. I am still on MC 6.0 beta 2 but I assume it works on all releases after that.

AntiMatter
Posts: 60
Joined: 03 Mar 2011
Has thanked: 9 times
Been thanked: 2 times

Re: Installing ADE/Elcollections in MC

Postby AntiMatter » 07 Mar 2011

I installed ECollection and the ADE as above on MC 6.1

It all seemed to compile fine. ADE wanted to overwrite some of the ECollection functions. I have tried both overwriting and not-overwriting them, but I get the same problem both ways.

When inserting the study "ADE Plot OHLCV" into a graph, I get an ADE Error: "No data available for Class OHLCV, MSFT, Daily".

I'm probably doing something stupid, but I can't for the life of me figure out what it is?!

User avatar
piranhaxp
Posts: 236
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 29 times

Re: Installing ADE/Elcollections in MC

Postby piranhaxp » 08 Mar 2011

@Antimatter

To plot OHLC via ADE_PlotOHLC makes sense if you want to plot OHLC-bars from a higher time frame only. So in your case "Weekly,Quarter,Month or Year"-Data only. Therefore you should insert ADE_SaveOHLC in the chart of the higher time frame first.

Regards.

Mike

AntiMatter
Posts: 60
Joined: 03 Mar 2011
Has thanked: 9 times
Been thanked: 2 times

Re: Installing ADE/Elcollections in MC

Postby AntiMatter » 08 Mar 2011

Ah yes, I'm an idiot. Thanks very much.

User avatar
piranhaxp
Posts: 236
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 29 times

Re: Installing ADE/Elcollections in MC

Postby piranhaxp » 08 Mar 2011

No one is an idiot after he can spell it ;o).

It was a pleasure to help you.

Mike

eto
Posts: 33
Joined: 09 May 2011
Has thanked: 13 times
Been thanked: 7 times

Re: Installing ADE/Elcollections in MC

Postby eto » 19 May 2011

anyone has the latest ADE/ELCollection ?

User avatar
TJ
Posts: 6586
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 971 times
Been thanked: 1907 times

Re: Installing ADE/Elcollections in MC

Postby TJ » 19 May 2011

eto wrote:anyone has the latest ADE/ELCollection ?


there have been no changes for the last few years.

eto
Posts: 33
Joined: 09 May 2011
Has thanked: 13 times
Been thanked: 7 times

Re: Installing ADE/Elcollections in MC

Postby eto » 19 May 2011

thanks TJ ..

csharpstudent
Posts: 4
Joined: 12 Mar 2013
Has thanked: 4 times

Re:

Postby csharpstudent » 13 Mar 2013

bowlesj3 wrote:The command ListC.ReadFile(ID, FileName) is poorly explained. I finally got it to work and inserted an example of the basic code you need to get it to work. The revised document is included in the attached zip file.



Also this thread
Older Links on this forum seem to be messed up. this one does not work.
https://www.multicharts.com/discussion/viewtopic.php?t=7286
I can not remember but this may be the proper link.
https://www.multicharts.com/discussion/viewtopic.php?f=5&t=7764
Has a zip file containing a matching script that has great examples of how to use the ELcollections "list of Lists" method of getting data into MC. Speciflcally data which is in a line by line format with "numeric and string" data. Here is what it brings in.
10,M,1,M
5,M,1,M
1,M,10,S
0,M,0,M

This may help.
https://www.multicharts.com/discussion/viewtopic.php?f=1&t=6919&hilit=ReadFile


@bowlesj3

Thank you. I was sort of looking for help in this direction - Have a csv file in the format of

dd/mm/yyy hh:mm Value1

Would like to pass from PL date and time and search this file and return Value1 into PL.

Read through the documentation and since I am a newbie of newbie to integrating DLLs into PL, and using DLL embedded functions, I am at a loss of how to use a Map of Maps function to do this. I say that because the doc attached has that kind of sample example...

Any help would go a long way...

Thank You

bowlesj3
Posts: 2028
Joined: 21 Jul 2007
Has thanked: 174 times
Been thanked: 405 times

Re: Installing ADE/Elcollections in MC

Postby bowlesj3 » 15 Mar 2013

Hi csharpstudent

This is the one that probably will help you the most. It uses the List of Lists.
How to get ELcollections to read a 3 field CSV file.
viewtopic.php?f=1&t=6901

I am curious. Does cSharp mean you are a music student or just a sharp student?

John

User avatar
TJ
Posts: 6586
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 971 times
Been thanked: 1907 times

Re: Installing ADE/Elcollections in MC

Postby TJ » 15 Mar 2013

bowlesj3 wrote:Hi csharpstudent
...
I am curious. Does cSharp mean you are a music student or just a sharp student?

John

or a C# programming student?

csharpstudent
Posts: 4
Joined: 12 Mar 2013
Has thanked: 4 times

Re: Installing ADE/Elcollections in MC

Postby csharpstudent » 15 Mar 2013

bowlesj3 wrote:Hi csharpstudent

This is the one that probably will help you the most. It uses the List of Lists.
How to get ELcollections to read a 3 field CSV file.
https://www.multicharts.com/discussion/viewtopic.php?f=1&t=6901

I am curious. Does cSharp mean you are a music student or just a sharp student?

John


Thank you John. It is a reference to C#. Not very creative u/n, I know...

Best

WHM
Posts: 6
Joined: 28 May 2015
Location: Australia
Has thanked: 13 times

Re: Installing ADE/Elcollections in MC

Postby WHM » 17 Jun 2015

Hi there,

I installed EL Collections and ADE as suggested on MC64 v9.0 and followed the instructions but just can't get it working

I've put the ELCollections.dll for MC64 into C:\Program Files\TS Support\MultiCharts64; Unblocked the .dll (right click\Properties\Unblock); and set MC64.exe and PLE.exe to be run as Administrator.

I imported and compiled everything fine, then added the ADE Generate Class indicator to a workspace to test it out.

I then receive the error message:
Company: Bamboo
Error Location: EL Collections
Error Category: EL Collections Error
Short String: EL Collections Error
Source String: Unable to Open Requested File

Any suggestions would be greatly appreciated!

User avatar
Henry MultiСharts
Posts: 8511
Joined: 25 Aug 2011
Has thanked: 1213 times
Been thanked: 2733 times

Re: Installing ADE/Elcollections in MC

Postby Henry MultiСharts » 17 Jun 2015

WHM wrote:Hi there,

I installed EL Collections and ADE as suggested on MC64 v9.0 and followed the instructions but just can't get it working

I've put the ELCollections.dll for MC64 into C:\Program Files\TS Support\MultiCharts64; Unblocked the .dll (right click\Properties\Unblock); and set MC64.exe and PLE.exe to be run as Administrator.

I imported and compiled everything fine, then added the ADE Generate Class indicator to a workspace to test it out.

I then receive the error message:
Company: Bamboo
Error Location: EL Collections
Error Category: EL Collections Error
Short String: EL Collections Error
Source String: Unable to Open Requested File

Any suggestions would be greatly appreciated!
Hello WHM,

Please make sure you are using the 64 bit ELCollections.dll, which can be downloaded from this page: viewtopic.php?f=5&t=9870

WHM
Posts: 6
Joined: 28 May 2015
Location: Australia
Has thanked: 13 times

Re: Installing ADE/Elcollections in MC

Postby WHM » 18 Jun 2015

Henry MultiСharts wrote:
WHM wrote:Hi there,

I installed EL Collections and ADE as suggested on MC64 v9.0 and followed the instructions but just can't get it working

I've put the ELCollections.dll for MC64 into C:\Program Files\TS Support\MultiCharts64; Unblocked the .dll (right click\Properties\Unblock); and set MC64.exe and PLE.exe to be run as Administrator.

I imported and compiled everything fine, then added the ADE Generate Class indicator to a workspace to test it out.

I then receive the error message:
Company: Bamboo
Error Location: EL Collections
Error Category: EL Collections Error
Short String: EL Collections Error
Source String: Unable to Open Requested File

Any suggestions would be greatly appreciated!
Hello WHM,

Please make sure you are using the 64 bit ELCollections.dll, which can be downloaded from this page: https://www.multicharts.com/discussion/viewtopic.php?f=5&t=9870


Thanks Henry,

I am indeed using the 64 bit ELCollections.dll - just to be sure I deleted the .dll from C:\Program Files\TS Support\MultiCharts64 and re-added it, then re-imported the ELCollections.eld file followed by the AllDataEverywhere.eld into PLE.

Still getting the same error when I add the ADE Generate Class indicator to a workspace...

I've read everything I can find on ELCollections and ADE and can't see that I've missed anything - confirming there's nothing else that needs to be installed, added to to the MultiCharts64.exe directory or imported to PLE in order to make it work?

User avatar
Henry MultiСharts
Posts: 8511
Joined: 25 Aug 2011
Has thanked: 1213 times
Been thanked: 2733 times

Re: Installing ADE/Elcollections in MC

Postby Henry MultiСharts » 22 Jun 2015

WHM wrote:Thanks Henry,

I am indeed using the 64 bit ELCollections.dll - just to be sure I deleted the .dll from C:\Program Files\TS Support\MultiCharts64 and re-added it, then re-imported the ELCollections.eld file followed by the AllDataEverywhere.eld into PLE.

Still getting the same error when I add the ADE Generate Class indicator to a workspace...

I've read everything I can find on ELCollections and ADE and can't see that I've missed anything - confirming there's nothing else that needs to be installed, added to to the MultiCharts64.exe directory or imported to PLE in order to make it work?
According to the ADE Generate Class code and "All Data Everywhere.doc" manual:

Code: Select all

   if Class <> "" then begin
      // Read the user's class specification file (from the ADE\Class directory) into a list.
      // Copy the contents of the list into the Members and Params lists as appropriate.
      // A line containing "#PARAMS" signals the beginning of the parameters (if any).
      // If no parameters are present in the class file, Params will remain zero.
      TempList = ListS.New;
      Value1 = ListS.ReadFile(TempList, ClassDir + "\" + Class + ".txt");
The study is unable to open the user's class specification file in C:\ADE\Classes\ which most likely does not exist on your PC.

tinlans
Posts: 2
Joined: 21 Dec 2015

Re: Installing ADE/Elcollections in MC

Postby tinlans » 21 Dec 2015

Does anyone have the source code of 64-bit ELCollections?

I sometimes get the error "There is no collection with that ID." when I excessively use ADE and want to dig into this issue. My usage is simply: plot indicators from multiple time frames, such as plotting 2min, 10min, 30min and 60min MACDs on a 1min chart. It normally works fine, but sometimes it stops plotting because of the error.

sptrader
Posts: 637
Joined: 09 Apr 2010
Location: Colorado
Has thanked: 400 times
Been thanked: 238 times
Contact:

Re: Installing ADE/Elcollections in MC

Postby sptrader » 22 Dec 2015

I have a question for the ADE users... I currently use GV's for sending data from time based charts to non-time based charts and it works great but they only work in RT, no historical data.
Question: is there a way to make ADE send time based data to contract charts (volume charts) in RT with history ???
I know a very old program called PushPop could do it, so I don't see why ADE can't do it..(I haven't found a way to do it yet anyway)..

User avatar
TJ
Posts: 6586
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 971 times
Been thanked: 1907 times

Re: Installing ADE/Elcollections in MC

Postby TJ » 22 Dec 2015

sptrader wrote:I have a question for the ADE users... I currently use GV's for sending data from time based charts to non-time based charts and it works great but they only work in RT, no historical data.
Question: is there a way to make ADE send time based data to contract charts (volume charts) in RT with history ???
I know a very old program called PushPop could do it, so I don't see why ADE can't do it..(I haven't found a way to do it yet anyway)..

Can you explain a bit more on what you want to do?
Maybe with an example?

sptrader
Posts: 637
Joined: 09 Apr 2010
Location: Colorado
Has thanked: 400 times
Been thanked: 238 times
Contact:

Re: Installing ADE/Elcollections in MC

Postby sptrader » 22 Dec 2015

I calculate 1 sma of several market sectors(etf's) on a 5 minute chart and I want to send (plot) that average on an ES volume chart, that I trade off of.. Very simple thing.. or should be..

tinlans
Posts: 2
Joined: 21 Dec 2015

Re: Installing ADE/Elcollections in MC

Postby tinlans » 23 Dec 2015

After setting up a breakpoint, I found there is something wrong with the ID passed by ListN.Count(). Although the type of ID is double, its value should be always integer, such as 3.0, 4.0, 5.0 and so on; however, it becomes a strange value, such as 3.878631246304e-315.
Image

According to the stack trace, the call path should be:
1. ADE.GetBarInfo (String, String, Numeric, Numeric, Numeric) // line 49
2. ListN.Count (Numeric)
3. ListN.cpp:ListN_Count (IEasyLanguageObject *, double)
4. ListN.h:GetListN (double)
5. Collection.cpp:GetCollection (double) // throw CollectionNotFound

The argument passed to ListN.Count () is a strange floating point value, which had been modified by MapSC.Next (). Hence I have to understand why MapSC.Next () sometimes assigns a strange value to its 3rd parameter, but it will take a lot of time.

User avatar
Henry MultiСharts
Posts: 8511
Joined: 25 Aug 2011
Has thanked: 1213 times
Been thanked: 2733 times

Re: Installing ADE/Elcollections in MC

Postby Henry MultiСharts » 24 Dec 2015

Hello tinlans,

Please send me the dll you are using, source code/solution you are debugging, workspace, PL study and data for replicating this behavior on our end.

User avatar
bensat
Posts: 332
Joined: 04 Oct 2014
Has thanked: 46 times
Been thanked: 103 times

Re: Installing ADE/Elcollections in MC

Postby bensat » 15 Jan 2016

sptrader wrote:I have a question for the ADE users... I currently use GV's for sending data from time based charts to non-time based charts and it works great but they only work in RT, no historical data.
Question: is there a way to make ADE send time based data to contract charts (volume charts) in RT with history ???
I know a very old program called PushPop could do it, so I don't see why ADE can't do it..(I haven't found a way to do it yet anyway)..


If I understand you correct you want to share 15min Data into a let say 500 contract chart for the same symbol. You can do this in ADE/ELC the normal way ...

Image

I hope I got you right. Btw why you do not avoid EL wrapper functions by calling the GlobalVariable.dll directly ? This way you will be able to work with history as well ...

Regards.

Ben

sptrader
Posts: 637
Joined: 09 Apr 2010
Location: Colorado
Has thanked: 400 times
Been thanked: 238 times
Contact:

Re: Installing ADE/Elcollections in MC

Postby sptrader » 15 Jan 2016

Ben: You said- Btw why you do not avoid EL wrapper functions by calling the GlobalVariable.dll directly ? This way you will be able to work with history as well ...
****************************************************
"This sounds perfect but I'm not a programmer- any chance that you could give a very basic example ? (just sending the close from one chart type to another just by calling the .DLL directly)..
(and Yes, you understood Exactly what I wanted).
Steve


Return to “User Contributed Studies and Indicator Library”