send information between two scanners

Questions about MultiCharts and user contributed studies.
nuno-online
Posts: 174
Joined: 31 Jan 2006
Has thanked: 74 times
Been thanked: 5 times

send information between two scanners

Postby nuno-online » 07 Nov 2014

Is it possible to send information between two scanners?
Where can i found an exemple about this?

thank you very much


Nuno


nuno-online
Posts: 174
Joined: 31 Jan 2006
Has thanked: 74 times
Been thanked: 5 times

Re: send information between two scanners

Postby nuno-online » 10 Nov 2014

Hi OZ Trade

thank you for your help

A simply question?
here an example:
Scanner A : 40 stocks
Scanner B : 40 stocks (same as in scanner A)

i want to send for example this values from A to B
How to store this values for each stock in scanner B?
How to adapt this code for scanners?

Indicator in the sending chart:

Code: Select all

ifLastBarOnChartandbarstatus(1)=2 then
begin
GVSetDouble(1,CumVol);
GVSetDouble(2,CumVolAvg);
end;
In the receiving chart strategy or indicator uses:

Code: Select all

CumVol=GVGetDouble(1);
CumVolAvg=GVGetDouble(2);
Nuno

OZ Trade
Posts: 39
Joined: 08 Nov 2013
Has thanked: 11 times
Been thanked: 18 times

Re: send information between two scanners

Postby OZ Trade » 10 Nov 2014

Read the attached and have a try.

But you basically got it. Try putting 'Value1=' in front when storing a variable.
Attachments
Global Variable 2.2.pdf
(407.21 KiB) Downloaded 243 times

nuno-online
Posts: 174
Joined: 31 Jan 2006
Has thanked: 74 times
Been thanked: 5 times

Re: send information between two scanners

Postby nuno-online » 12 Nov 2014

I read the documentation and i found a solution with Global Variables (GVSetNamedFloat and GVGetNamedFloat for example)
Thank you

can someone tell me where i can found the differences between:
ADE / EL Collections / Global variables

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

Re: send information between two scanners

Postby ABC » 12 Nov 2014

nuno-online,

one difference is that Global Variables was developed by TS were EL Collections (ELC) was developed by a TS user originally, who introduced storing concepts with ELC that are also found in higher programming languages. There you have one of the main differences in my opinion, you can store larger data amounts with ELC and you can use it in backtesting.

ADE is build on EL Collections and gives you some more tools at hand (although I am willing to wager that you can do almost anything with ELC directly).

Global Variables purpose is in exchanging data between charts or applications in realtime (charts, scanner) and you can share across applications (for example from scanner to a chart or vice versa). This is not possible with the first version of ELC. However ELC 2 was developed by the original creator now working for TS and this allows sharing across apps, too. I never tried using version 2 with MC though.

Regards,
ABC

User avatar
bensat
Posts: 331
Joined: 04 Oct 2014
Has thanked: 46 times
Been thanked: 104 times

Re: send information between two scanners

Postby bensat » 13 Nov 2014

ABS,

as I have no longer access to TS stuff I kindly ask you you are able to share ELC2 here ?

Thank you.

My regards.

Ben


Return to “MultiCharts”