ADE implementation  [SOLVED]

Questions about MultiCharts and user contributed studies.
waveslider
Posts: 206
Joined: 16 Oct 2011
Has thanked: 63 times
Been thanked: 20 times

ADE implementation

Postby waveslider » 26 Jul 2018

I am trying to reduce the number of symbols charted by using ADE.
Here is an example. I am attempting to collect OHLC data on Advancing Issues on one chart (it happens to be in data3):

Code: Select all

var:
ADVo(MapSN.New),
ADVh(MapSN.New),
ADVl(MapSN.New),
ADVc(MapSN.New);
var:
classO("AdvanceO"),
classH("AdvanceH"),
classL("AdvanceL"),
classC("AdvanceC");

value1=MapSN.Put(ADVo,"AdvanceO",o data3);
value2=MapSN.Put(ADVh,"AdvanceH",h data3);
value3=MapSN.Put(ADVl,"AdvanceL",l data3);
value4=MapSN.Put(ADVc,"AdvanceC",c data3);

value1=ADE.PutBarInfo(ClassO,Getsymbolname data3,ADE.BarInterval,ADE.barid,ADVo);
value2=ADE.PutBarInfo(ClassH,Getsymbolname data3,ADE.BarInterval,ADE.barid,ADVh);
value3=ADE.PutBarInfo(ClassL,Getsymbolname data3,ADE.BarInterval,ADE.barid,ADVl);
value4=ADE.PutBarInfo(ClassC,Getsymbolname data3,ADE.BarInterval,ADE.barid,ADVc);
I then go to another chart and attempt to plot it using this code:

Code: Select all

inputs:interval(1);
vars:classO("AdvanceO");
vars:classH("AdvanceH");
vars:classL("AdvanceL");
vars:classC("AdvanceC");
var:
ADVo(MapSN.New),
ADVh(MapSN.New),
ADVl(MapSN.New),
ADVc(MapSN.New);

value1=ADE.GetBarInfo(ClassO,Getsymbolname,Interval,ADE.barid,ADVo);
value2=ADE.GetBarInfo(ClassH,Getsymbolname,Interval,ADE.barid,ADVh);
value3=ADE.GetBarInfo(ClassL,Getsymbolname,Interval,ADE.barid,ADVl);
value4=ADE.GetBarInfo(ClassC,Getsymbolname,Interval,ADE.barid,ADVc);

Value5=MapSN.Get(ADVo,"AdvanceO");
Value6=MapSN.Get(ADVh,"AdvanceH");
Value7=MapSN.Get(ADVl,"AdvanceL");
Value8=MapSN.Get(ADVc,"AdvanceC");
The error I am getting is "Can't find dll "elcollections2.dll"", although I have checked each of the above functions and cannot see any reference to elcollections2.dll.

Thanks for any assistance

User avatar
ABC
Posts: 628
Joined: 16 Dec 2006
Has thanked: 119 times
Been thanked: 355 times
Contact:

Re: ADE implementation

Postby ABC » 27 Jul 2018

Hi waveslider,

ELCollections2 is a 32bit TS DLL and I am not sure it would even work with Multicharts 32bit. You should make sure to use the code and DLL you can obtain in the forum here (in case you are running MC 32bit you will need to use the 32bit version of the ELCollections.DLL):

viewtopic.php?t=10094#p48320
viewtopic.php?t=9870

Make sure to overwrite the code on import, as there is most likely a call to ELCollections2 somewhere within the code you are using.

Regards,

ABC

User avatar
c0ntango
Posts: 25
Joined: 13 Sep 2018
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: ADE implementation

Postby c0ntango » 06 Aug 2019

Hey Everyone,

I'm running into the same issue - "Elcollections2.dll not found". The DLL is in the Multicharts directory. I'm running MC 64 bit and ELCollections.dll is also there and it works fine, just the "2" dll is being reported as "not found".

Could someone point me in the right direction with this please? Or do I really actually have to downgrade to MC 32 bit to get it working?

Thank you,

-Ben

User avatar
TJ
Posts: 7176
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 990 times
Been thanked: 2049 times

Re: ADE implementation

Postby TJ » 06 Aug 2019

Do you have the 64 bit version of ELCollections?

viewtopic.php?t=10094

User avatar
c0ntango
Posts: 25
Joined: 13 Sep 2018
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: ADE implementation

Postby c0ntango » 06 Aug 2019

Hi TJ! Thank you for the fast response. The link you posted only has a 64 bit version link to ELCollections.DLL but some of the functions I'm trying to use seem to reside in ELCollections2.DLL! Where can I find a 64 bit version for that one?

Thank you so much,

-Ben

User avatar
TJ
Posts: 7176
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 990 times
Been thanked: 2049 times

Re: ADE implementation

Postby TJ » 06 Aug 2019

Sorry I do not use ELC; I do not have those sources.

User avatar
c0ntango
Posts: 25
Joined: 13 Sep 2018
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: ADE implementation

Postby c0ntango » 06 Aug 2019

Ohh wow... How do MultiCharts'ers get this thing working, then? Simple functions like ListS.New are referring to ELCollections2.DLL

I wonder which "part" of ELCollections do you use? Do you refrain from using ELColl 2 stuff? And why is it all defined in 1 document, as if it would be the only version?

I'm sorry, if it looks like I'm really confused, that's because I kind of am. :D

User avatar
TJ
Posts: 7176
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 990 times
Been thanked: 2049 times

Re: ADE implementation

Postby TJ » 06 Aug 2019

ListS.New?
Have you downloaded those functions and compiled them in your MC?
They are with the docs.

User avatar
c0ntango
Posts: 25
Joined: 13 Sep 2018
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: ADE implementation

Postby c0ntango » 06 Aug 2019

Actually, I have.

SOMEHOW I seemed to have ended up with a different version of the DLL than the functions in the ELD. I don't know how it happened, but I got them from a helpful friend, and now everything seem to work as expected.

Thank you for your responsiveness and for being helpful, TJ. Glad to report: seems like the problem has been solved.

-Ben

User avatar
TJ
Posts: 7176
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 990 times
Been thanked: 2049 times

Re: ADE implementation  [SOLVED]

Postby TJ » 06 Aug 2019

It is good to know the problem has been solved.
Thank you for reporting back.
Good trading to you.


Return to “MultiCharts”