Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Can someone walk me through how to setup the send and receive using the globaldictionary. I've pasted the code below for the generic indicator sender and receiver.
and the receiver:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
using elsystem ;
using elsystem.collections ;
inputs:
string GDictName( "MyGD" ),
string KeyToRetrieve( "MyGV" ) ;
variables:
GlobalDictionary GDict( NULL ) ;
method void ItemChg( Object Sender, ItemProcessedEventArgs Args )
begin
if Args.Key = KeyToRetrieve then
PlotOutputs() ;
end ;
method void PlotOutputs()
begin
if GDict.Contains( KeyToRetrieve ) then
Plot1( GDict.Items[ KeyToRetrieve ] astype double, "RecValue" ) ;
end ;
once
begin
GDict = GlobalDictionary.Create( true, GDictName ) ;
GDict.ItemChanged += ItemChg ;
end ;
Demonstrates in two very simple to use and modify templates, how to send and receive global data in realtime. You should modify the Global Variables and Plot Method to meet your needs.
Read the fully commented details in the source code for usage instructions.
Attached is the ELD's source file and PDF's of source code.
I haven't looked at the code, but from what I understand there is a sender and receiver part which is the template. As in use this as a foundation and expand/modify it to your needs.
What are you looking for or did you expect?
The coding was copied that worked on 9.5, and the commands work on TS10 but only inside the same chart. The GlobalDictionary variables cannot be read by an other chart.
When TS changed to (i believe) 9.1, a setting had to be changed. Something to do with Shared CPU. I was wondering if the same is needed for TS10, but I cannot find the setting.