Global Dictionary sender and receiver - EasyLanguage Programming | futures io social day trading
futures io futures trading


Global Dictionary sender and receiver
Updated: Views / Replies:5,500 / 12
Created: by RM99 Attachments:3

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

 
 3  
 
Thread Tools
 

Global Dictionary sender and receiver

 
Fortitudo et Honor
Austin, TX
 
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: Futures
 
Posts: 882 since Mar 2011
Thanks: 128 given, 710 received

Global Dictionary sender and receiver

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.

Sender:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

using elsystem.collections ;
inputs:
string GDictName( "MyGD" ),
string KeyToUse( "MyGV" ),
double ValueToSend( 100 ) ;

variables:
GlobalDictionary GDict( NULL ) ;

once
begin
GDict = GlobalDictionary.Create( true, GDictName ) ;

if GDict.Contains( KeyToUse ) then
GDict.Items[ KeyToUse ] = ValueToSend
else
GDict.Add( KeyToUse, ValueToSend ) ;
end ;

Plot1( ValueToSend, "SentValue" ) ;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

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 ;

PlotOutputs() ;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

"A dumb man never learns. A smart man learns from his own failure and success. But a wise man learns from the failure and success of others."
 
 
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
 
Fortitudo et Honor
Austin, TX
 
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: Futures
 
Posts: 882 since Mar 2011
Thanks: 128 given, 710 received


Sorry, should have been posted in TradeStation. Not sure if MC uses globaldictionary or not. Big Mike, please move. Thanks.

"A dumb man never learns. A smart man learns from his own failure and success. But a wise man learns from the failure and success of others."
 
 
 Vendor: www.protraders.com 
Houston, TX
 
Futures Experience: Advanced
Platform: TradeStation
Broker/Data: Tradestation Securities
Favorite Futures: ES
 
Posts: 1 since Apr 2011
Thanks: 0 given, 1 received

Simple Global Dictionary Sender/Receiver Template

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.

Attached Thumbnails
Global Dictionary sender and receiver-__templatesendergdict.pdf   Global Dictionary sender and receiver-__templatereceivergdict.pdf  
Attached Files
Register to download File Type: eld _GlobalVarsTemplate.ELD (23.7 KB, 104 views)
The following 3 users say Thank You to fbraden for this post:
 
 
Elite Member
boulder, colorado
 
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: emini's
 
Posts: 22 since Jun 2010
Thanks: 2 given, 8 received

GlobalVarsTemplate.ELD (23.7 KB, 54 views)

What are the names of what is contained in this ELD? I find only Global (p=100) and Global (p=100) SID, neither of which contains a template.

 
 
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,806 since Apr 2013
Thanks: 291 given, 1,098 received

bob314159,

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?

Regards,
ABCTG


bob314159 View Post
What are the names of what is contained in this ELD? I find only Global (p=100) and Global (p=100) SID, neither of which contains a template.


 
 
Elite Member
boulder, colorado
 
Futures Experience: Advanced
Platform: TradeStation
Favorite Futures: emini's
 
Posts: 22 since Jun 2010
Thanks: 2 given, 8 received

TS Dictionary

Scratch that. The names are shown in the download.

 
 
Trading Apprentice
Curacao
 
Futures Experience: Intermediate
Platform: Tradestation
Favorite Futures: CL
 
Posts: 4 since Jun 2018
Thanks: 1 given, 0 received

Tradestation 10

I trying to use the Collection for GlobalDictionary, but the variables do not seem to be read in other charts.

Using
If myGlobal.Contains( "share_name" ) <> False Then Print("True") Else Print("False");

Always results in a False on the receiving chart.

Is there a change in Tradestation 10. Any help will be appreciated.

 
 
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,806 since Apr 2013
Thanks: 291 given, 1,098 received

jsftrader,

does the code work in TS 9.5?

Regards,

ABCTG


jsftrader View Post
I trying to use the Collection for GlobalDictionary, but the variables do not seem to be read in other charts.

Using
If myGlobal.Contains( "share_name" ) <> False Then Print("True") Else Print("False");

Always results in a False on the receiving chart.

Is there a change in Tradestation 10. Any help will be appreciated.


 
 
Trading Apprentice
Curacao
 
Futures Experience: Intermediate
Platform: Tradestation
Favorite Futures: CL
 
Posts: 4 since Jun 2018
Thanks: 1 given, 0 received



ABCTG View Post
jsftrader,

does the code work in TS 9.5?

Regards,

ABCTG

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.


 



futures io > > > > > Global Dictionary sender and receiver
Thread Tools



Upcoming Webinars and Events (4:30PM ET unless noted)

September Journal Challenge (sponsored by TopstepTrader)

September

Battlestations! Win $947 in prizes for showing us your trading desk!

October
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
This is how you do Global Arrays. bjschwenzer EasyLanguage Programming 4 January 26th, 2012 11:19 PM
Global cyberattack under way for 5 years kbit News and Current Events 2 August 3rd, 2011 06:34 PM
Is there a 64bit Global Variable replacement? Tarkus11 NinjaTrader Programming 4 March 16th, 2011 07:47 AM
Global Variables and Strategies in Ninja 6.5 TonyA NinjaTrader Programming 3 November 6th, 2010 07:50 AM
Global Vertical Line Indicator EDGE NinjaTrader Programming 1 October 11th, 2010 11:09 PM


All times are GMT -4. The time now is 06:47 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2018-10-18 in 0.14 seconds with 15 queries on phoenix