Page 1 of 1

send information between two scanners

Posted: Nov 07 2014
by nuno-online
Is it possible to send information between two scanners?
Where can i found an exemple about this?

thank you very much


Nuno

Re: send information between two scanners

Posted: Nov 09 2014
by OZ Trade

Re: send information between two scanners

Posted: Nov 10 2014
by nuno-online
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

Re: send information between two scanners

Posted: Nov 10 2014
by OZ Trade
Read the attached and have a try.

But you basically got it. Try putting 'Value1=' in front when storing a variable.

Re: send information between two scanners

Posted: Nov 12 2014
by nuno-online
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

Re: send information between two scanners

Posted: Nov 12 2014
by ABC
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

Re: send information between two scanners

Posted: Nov 13 2014
by bensat
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