Global Variables (GV) in EasyLanguage for TradeStation/MultiCharts - futures io
futures io futures trading



Global Variables (GV) in EasyLanguage for TradeStation/MultiCharts


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one arjfca with 6 posts (1 thanks)
    2. looks_two jojojo with 3 posts (6 thanks)
    3. looks_3 bomberone1 with 2 posts (0 thanks)
    4. looks_4 Big Mike with 2 posts (4 thanks)
      Best Posters
    1. looks_one aslan with 5 thanks per post
    2. looks_two SPTrading with 3 thanks per post
    3. looks_3 jojojo with 2 thanks per post
    4. looks_4 Big Mike with 2 thanks per post
    1. trending_up 25,423 views
    2. thumb_up 22 thanks given
    3. group 12 followers
    1. forum 19 posts
    2. attach_file 5 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

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

 
Search this Thread
 

Global Variables (GV) in EasyLanguage for TradeStation/MultiCharts

(login for full post details)
  #1 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,779 since Jun 2009
Thanks: 32,306 given, 97,566 received

My next major project is to start incorporating Global Variables (GV) into my EasyLanguage tools, specifically for MultiCharts - but they should work for TradeStation as well.

I am wanting to do something similar to what is demonstrated here:
JAM - TradeStation EasyLanguage Strategy Control Indicator

Borrowing an image from that site, here is an example:



They are charging about $217 USD which seems reasonable, but I want to develop my own so I can fully understand everything plus have full access to the entire source. I'll give it away back to the futures.io (formerly BMT) community when I'm done, like everything I do...

Since I've only been using MultiCharts and EasyLanguage for less than 2 months, I was hoping that some of you (aslan?? ) might help get me started. I have some PDF's to read as well that I think cover the subject. I am hoping for community involvement and we can end up with a nice open source solution that is freely shared in the community.

Any takers?

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Started this thread Reply With Quote
The following 4 users say Thank You to Big Mike for this post:

Can you help answer these questions
from other members on futures io?
What blockvolume is visible? - order processing
NinjaTrader
Indicators for pair trading MES and M2K
Platforms and Indicators
Automating strategies on multiple charts with same symbol
TradeStation
MACD line not plotting after change of plot order
NinjaTrader
Reading A set of Trading Signals
EasyLanguage Programming
 
 
(login for full post details)
  #3 (permalink)
Madison, WI
 
Experience: Advanced
Platform: ALT
Trading: ES
 
aslan's Avatar
 
Posts: 616 since Jan 2010
Thanks: 351 given, 1,109 received


Global vars should be pretty straight forward. Not sure what is on MC forums, but in the TS world, you use GlobalVariable.dll and some provides functions. The following is a link to the TS forum:

https://www.tradestation.com:443/discussions/topic_archive.aspx?topic_id=19622

I have attached the zip file from that thread here. It includes the doc, eld file with functions, the dll, and the source code for the dll.

To use this, you drop the dll into the MultiCharts program dir, then import the ELD functions, and you should be good to go.

I am not familiar with the program you referenced in your post, but I suspect they are using the GV.dll and just manipulating global vars with button presses (they also have another program that does the same on keystrokes). Then in your code, you just use the standard global vars.

Attached Files
Register to download File Type: zip 2003122132553_GlobalVariable.zip (63.5 KB, 605 views)
Reply With Quote
The following 5 users say Thank You to aslan for this post:
 
(login for full post details)
  #4 (permalink)
Dallas, TX
 
Experience: Intermediate
Platform: NinjaTrader, MultiCharts, TradeStation
Broker: Mirus/Zen-Fire, TradeStation
Trading: Futures
 
TexasTrader's Avatar
 
Posts: 15 since Apr 2010
Thanks: 0 given, 4 received

Hello Big Mike,

As referenced in your starting thread here, did you get a strategy panel together and is it working for you?

I had one built recently which I am happy with, however running into same problem you reference = without an understanding of the panel code etc I am unable to modify it at will (and again need to contract someone else to get changes)...

Would be good if there was a common solution for this kind of utility; I requested info from JAM with some specific questions on his panel (GVStratControl) and can post findings if they are noteworthy...

Thanks.

Reply With Quote
 
(login for full post details)
  #5 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,779 since Jun 2009
Thanks: 32,306 given, 97,566 received


TexasTrader View Post
Hello Big Mike,

As referenced in your starting thread here, did you get a strategy panel together and is it working for you?

I had one built recently which I am happy with, however running into same problem you reference = without an understanding of the panel code etc I am unable to modify it at will (and again need to contract someone else to get changes)...

Would be good if there was a common solution for this kind of utility; I requested info from JAM with some specific questions on his panel (GVStratControl) and can post findings if they are noteworthy...

Thanks.

@TexasTrader, I never pursued it. Now that MultiCharts has a DOM and Chart Trader (very soon), I don't have any plans or needs for this personally as I am primarily a discretionary trader.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Started this thread Reply With Quote
 
(login for full post details)
  #6 (permalink)
sydney, nsw, australia
 
Experience: Intermediate
Platform: NinjaTrader, NeoTicker, Multicharts, InvestorRT
Broker: Mirus, IB, eSignal
Trading: ES, FESX, DAX, CCY
 
Posts: 42 since Aug 2009
Thanks: 57 given, 13 received


Big Mike View Post
@TexasTrader, I never pursued it. Now that MultiCharts has a DOM and Chart Trader (very soon), I don't have any plans or needs for this personally as I am primarily a discretionary trader.

Mike

However, for anyone wishing to hybrid trade a general system (get the signal to fire and then manage the trade manually) pause/long only/short only buttons would be extremely useful in MC.

Reply With Quote
The following user says Thank You to Bondi9999 for this post:
 
(login for full post details)
  #7 (permalink)
London
 
Experience: Beginner
Platform: MultiCharts
 
Posts: 240 since Nov 2010
Thanks: 10 given, 23 received

Hi folks,
first of all I need Global Variable for multicharts and tradestation.
Second I need very simple example to understand them, please could you post any code example and explaination.
Regards.

Reply With Quote
 
(login for full post details)
  #8 (permalink)
London
 
Experience: Beginner
Platform: MultiCharts
 
Posts: 240 since Nov 2010
Thanks: 10 given, 23 received

So folks where could i find the last version of Global Variable and any examples?

Reply With Quote
 
(login for full post details)
  #9 (permalink)
Calgary, AB
 
Experience: Intermediate
Platform: NT, IB, TOS, MC
Broker: IB, Rithmic
Trading: CL, ES, GC, ZS, ZB
 
atata's Avatar
 
Posts: 116 since Mar 2010
Thanks: 90 given, 98 received


Quoting 

Aslan, me being from Canada therefore no access to Tradestation also can't access the link above.

Would you be so kind to print the thread mentioned above into a pdf and attach it to this thread?

Thanks,

atata

Reply With Quote
The following user says Thank You to atata for this post:
 
(login for full post details)
  #10 (permalink)
London, England
 
Experience: Intermediate
Platform: MC, TS, NT
Broker: TradeStation
Trading: ES
 
Posts: 41 since Oct 2009
Thanks: 12 given, 20 received


Mike,

Not sure what help you wanted but using global variables itself is very easy. Presuming that GV is installed within Multicharts, here's some code I use to send data from one chart to another:

Indicator in the sending chart:

ifLastBarOnChartandbarstatus(1)=2then
begin
GVSetDouble(1,CumVol);
GVSetDouble(2,CumVolAvg);
GVSetDouble(3,BarNumber);
end;

In the receiving chart strategy or indicator uses:

CumVol=GVGetDouble(1);
CumVolAvg=GVGetDouble(2);
KaseBarNumber=GVGetDouble(3);

1, 2, and 3 are the addresses for storing the variables. You can also do it by name using different syntax.


Paul

Reply With Quote
The following 3 users say Thank You to SPTrading for this post:
 
(login for full post details)
  #11 (permalink)
Montreal, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: Interactive Broker
Trading: Forex
 
Posts: 263 since Sep 2010
Thanks: 440 given, 91 received

Anybody had as success to exchange information with Excel using Global Variables 2.2?

If so, how did you proceed?.
- I can't reference GlobalVariable.DLL to Excel 2007 VBA. Probably not created for Microsoft VBA.
- I never saw a VBA working code, mind to share few lines?

Any help appreciated because I'm

Martin

Reply With Quote
 
(login for full post details)
  #12 (permalink)
Montreal, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: Interactive Broker
Trading: Forex
 
Posts: 263 since Sep 2010
Thanks: 440 given, 91 received

Did succeed to communicate between MC anf Forex

Excel wrote a string in GV
MC read it and decode it


Now, How can I have MC read GV on real time. Information are updated only of the start of a new bar. Is it possible to have it in real rime

Martin

Reply With Quote
 
(login for full post details)
  #13 (permalink)
The Netherlands
 
Experience: None
Platform: MultiCharts, TradingView
Trading: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 688 received


arjfca View Post
Now, How can I have MC read GV on real time. Information are updated only of the start of a new bar. Is it possible to have it in real rime

Don't know if it will help, but perhaps you can use the new RecalcLastBarAfter reserved word to force a recalculation and thus update of your global variable?

Reply With Quote
The following user says Thank You to Jura for this post:
 
(login for full post details)
  #14 (permalink)
Montreal, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: Interactive Broker
Trading: Forex
 
Posts: 263 since Sep 2010
Thanks: 440 given, 91 received

Thanks Jura

Problem is resolved now using

- IntraBarOrdergeneretion = True

- My code start with
 
Code
If lastBarOnTheChart Then Begin
    Start code 


    End Code
end; //If lastBarOnTheChart
Martin

Reply With Quote
The following user says Thank You to arjfca for this post:
 
(login for full post details)
  #15 (permalink)
FrankfurtGermany
 
Experience: Beginner
Platform: Tradestation
 
Posts: 24 since Oct 2010
Thanks: 3 given, 6 received

Here are some files with the excel dll from the Tradestation forum.20080521174625ELXL 1.3.1 - Development Files.zip

20080521174732ELXL 1.3.1 - Demo Files.zip

20080521174825ELXL 1.3 - Demo Files Updated Demo 2.zip

Reply With Quote
The following 4 users say Thank You to jojojo for this post:
 
(login for full post details)
  #16 (permalink)
FrankfurtGermany
 
Experience: Beginner
Platform: Tradestation
 
Posts: 24 since Oct 2010
Thanks: 3 given, 6 received

while I'm moving around this theme (again). I found the Global Dll 2.2 with source code - you need visual studio for c++ to open it or any other editor to just read

Attached Files
Register to download File Type: zip 20041229133051Global Variable 22.zip (192.4 KB, 105 views)
Reply With Quote
The following user says Thank You to jojojo for this post:
 
(login for full post details)
  #17 (permalink)
FrankfurtGermany
 
Experience: Beginner
Platform: Tradestation
 
Posts: 24 since Oct 2010
Thanks: 3 given, 6 received

and a very nice description how to build an easy c# dll with the help of an c++ wrapper
(seemes as if you have to do it always this way)
that really works is here:

https://community.tradestation.com/discussions/Topic.aspx?Topic_ID=122156

and going further:

https://msdn.microsoft.com/en-us/library/aa645736%28v=vs.71%29

Reply With Quote
The following user says Thank You to jojojo for this post:
 
(login for full post details)
  #18 (permalink)
Montreal, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: Interactive Broker
Trading: Forex
 
Posts: 263 since Sep 2010
Thanks: 440 given, 91 received


jojojo View Post
and a very nice description how to build an easy c# dll with the help of an c++ wrapper
(seemes as if you have to do it always this way)
that really works is here:

https://community.tradestation.com/discussions/Topic.aspx?Topic_ID=122156

and going further:

COM Interop Part 1: C# Client Tutorial (C#)

Only problem is I can't access to TradeStation community post since I'm not a TradeStation client and they don't accept Canadian customer anymore. A catch 22 problem

Martin

Reply With Quote
 
(login for full post details)
  #19 (permalink)
Montreal, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: Interactive Broker
Trading: Forex
 
Posts: 263 since Sep 2010
Thanks: 440 given, 91 received


jojojo View Post
Here are some files with the excel dll from the Tradestation forum.Attachment 49508

Attachment 49509

Attachment 49510

This is great.

Anyone knowing C++ coding could open up the source code?

I got an interrogation on the function ELXL_Initialize witch always return True whenever is called. Even when Excel is not load on PC

Martin

Reply With Quote
 
(login for full post details)
  #20 (permalink)
Bordeaux, FRANCE
 
Experience: Advanced
Platform: MULTICHARTS
Broker: IB
Trading: Eurex
 
Posts: 8 since Oct 2010
Thanks: 2 given, 0 received

hello

is there somebody who have last globalvariable sources ? when i link globalvariable22 my dll have lower KB than MC's dll

Why ?

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Global Variables (GV) in EasyLanguage for TradeStation/MultiCharts


Last Updated on October 29, 2013


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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