This is how you do Global Arrays. - EasyLanguage Programming | futures io social day trading
futures io futures trading


This is how you do Global Arrays.
Updated: Views / Replies:3,524 / 4
Created: by bjschwenzer Attachments:0

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 90,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

Reply
 
Thread Tools Search this Thread
 

This is how you do Global Arrays.

  #1 (permalink)
Trading Apprentice
Cleveland, Ohio
 
Futures Experience: Beginner
Platform: MultiCharts
Broker/Data: esignal
Favorite Futures: Futures
 
Posts: 6 since Aug 2011
Thanks: 4 given, 1 received

This is how you do Global Arrays.

Could you show how to create a Global array variable?
Also how to read the Global array variable in a different indicator or function.
Thank you

Look at my post below on how to do Global arrays.
Thank you


Last edited by bjschwenzer; August 11th, 2011 at 11:04 PM. Reason: I found out how to do a global array.
Reply With Quote
 
  #2 (permalink)
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.

 
  #3 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


I was wondering the same thing today Bjschwenzer- but as far as I know there is no such thing as a Global Array, not in MultiCharts itself and not in the ELCollections or ADE DLL's (according to their documentation).

I hope I'm mistaken since I'd also like to use global arrays.

Regards,
Jura

Reply With Quote
The following user says Thank You to Jura for this post:
 
  #4 (permalink)
Trading Apprentice
Cleveland, Ohio
 
Futures Experience: Beginner
Platform: MultiCharts
Broker/Data: esignal
Favorite Futures: Futures
 
Posts: 6 since Aug 2011
Thanks: 4 given, 1 received

I found out how to do Global arrays.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

// Sending code.
// All these Globals demos are Indicators sample code.
// MultiCharts sent me the GlobalVariable.dll which is placed in the same directory the MultiCharts.exe is in. Most likely it is C:\Program Files\TS Support\MultiCharts
// This is the Sending of the array data part. How to pass Global array data below.
Arrays:Arr_InitialData[50](0);// Declare array size 51 for array[0-50]. Arrays start with 0 and declared 50 is the max array number.
Vars:x(0);// Declare For loop variable is x starting with value 0.
Forx=0to50begin
Arr_InitialData[50]=x;// I am loading the array with numbers from 0 to 50.
// This creates global variables from "G_Arr0" to "G_Arr50" to pass the data globally.
// Yes the global variable is not an array but by creating 51 unique global variable names the data can be passed.
save_global_data(symbolname,ADE.BarInterval,ADE.BarID,"G_Arr"+numtostr(x,0),Arr_InitialData[x]);
// ADE.BarInterval is for 15 minutes = 15, note: 15 seconds is also 15.
end;
// This is the Sending of the array data part. How to pass Global array data above.

//-------------------------------------

// Receiving code.
// All these Globals demos are Indicators sample code.
// MultiCharts sent me the GlobalVariable.dll which is placed in the same directory the MultiCharts.exe is in. Most likely it is C:\Program Files\TS Support\MultiCharts
// This is the Receiving part of the array data. How to Receive Global array data below.
Arrays:Arr_ReceiveData[50](0);// Declare array size 51 for array[0-50]. Arrays start with 0 and declared 50 is the max array number.
Vars:x1(0);// Declare For loop variable is x starting with value 0.
Forx1=0to50begin
// This creates global variables from "G_Arr0" to "G_Arr50" to Receive the data globally.
// Yes the global variable is not an array but by creating 51 unique global variable names the data can be passed and received.
load_global_data(symbolname,ADE.BarInterval,ADE.BarID,"G_Arr"+numtostr(x1,0),Arr_ReceiveData[x1]);// ADE.BarInterval is for 15 minutes = 15, note: 15 seconds is also 15.
//load_global_data(symbolname, 15, ADE.BarID, "G_Arr" + numtostr(x1, 0), Arr_ReceiveData[x1]);
//load_global_data commented needs to have the sending bar time, so if this chart is 5 minutes and the sending chart is 15 you need to use the commented above one.
// ADE.BarInterval is for 15 minutes = 15, note: 15 seconds is also 15.
// One strange thing about globals is when sending from one graph to two other graphs. If you want two graphs to received array data create a second unique variable name for teh 2nd receiving graph..
end;
// This is the Receiving part of the array data. How to Receive Global array data above.

Reply With Quote
The following user says Thank You to bjschwenzer for this post:
 
  #5 (permalink)
Elite Member
Karlsruhe, Germany
 
Futures Experience: Advanced
Platform: MT4 , INVESTOX ( & owner of MC and AB))
Broker/Data: IB , MBT , Alpari , Pepperstone , Forextrading
Favorite Futures: FX SLV
 
LoboTrader's Avatar
 
Posts: 27 since Nov 2011
Thanks: 226 given, 13 received

 
Code
load_global_data(......)
save_global_data(....)
Hello

was searching for this code (save/load) but w/o success .

Could somebody give me a hint ?

Thx

Lobo

Do not trade alone
Reply With Quote

Reply



futures io > > > > > This is how you do Global Arrays.

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Global Dictionary sender and receiver RM99 EasyLanguage Programming 6 December 12th, 2014 12:25 PM
Global cyberattack under way for 5 years kbit News and Current Events 2 August 3rd, 2011 07:34 PM
global variables: anyone got a complete NT7 example? elbone NinjaTrader Programming 2 July 19th, 2011 10:13 AM
Question with arrays in MultiCharts Xyzzy EasyLanguage Programming 5 March 14th, 2011 08:52 AM
Help with Arrays not DataSeries Compiles won't run Crassius NinjaTrader Programming 4 February 25th, 2011 04:18 AM


All times are GMT -4. The time now is 11:48 PM.

Copyright © 2017 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 2017-12-15 in 0.18 seconds with 19 queries on phoenix via your IP 54.163.210.170