NexusFi: Find Your Edge


Home Menu

 





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 Big Mike with 2 posts (4 thanks)
    4. looks_4 bomberone1 with 2 posts (0 thanks)
      Best Posters
    1. looks_one aslan with 5 thanks per post
    2. looks_two SPTrading with 4 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 31,368 views
    2. thumb_up 23 thanks given
    3. group 12 followers
    1. forum 19 posts
    2. attach_file 5 attachments




 
 

Global Variables (GV) in EasyLanguage for TradeStation/MultiCharts

 
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608

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 [AUTOLINK]EasyLanguage[/AUTOLINK] Strategy Control Indicator

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

[img]https://nexusfi.com/v/ny7tq5.jpg[/img]

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 nexusfi.com (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 the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
34 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
 
 
aslan's Avatar
 aslan 
Madison, WI
 
Experience: Advanced
Platform: ALT
Trading: ES
Posts: 625 since Jan 2010
Thanks Given: 356
Thanks Received: 1,127


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
Elite Membership required to download: 2003122132553_GlobalVariable.zip
Thanked by:
 
 
TexasTrader's Avatar
 TexasTrader 
Dallas, TX
 
Experience: Intermediate
Platform: NinjaTrader, MultiCharts, TradeStation
Broker: Mirus/Zen-Fire, TradeStation
Trading: Futures
Posts: 15 since Apr 2010
Thanks Given: 0
Thanks Received: 4

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.

 
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,446 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,608


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 the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread
 
 Bondi9999 
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 Given: 57
Thanks Received: 13


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.

Thanked by:
 
 bomberone1 
London
 
Experience: Beginner
Platform: MultiCharts
Posts: 277 since Nov 2010
Thanks Given: 14
Thanks Received: 29

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.

 
 bomberone1 
London
 
Experience: Beginner
Platform: MultiCharts
Posts: 277 since Nov 2010
Thanks Given: 14
Thanks Received: 29

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

 
 
atata's Avatar
 atata 
Calgary, AB
 
Experience: Intermediate
Platform: NT, IB, TOS, MC
Broker: IB, Rithmic
Trading: CL, ES, GC, ZS, ZB
Posts: 116 since Mar 2010
Thanks Given: 90
Thanks Received: 99


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

Thanked by:
 
 SPTrading 
London, England
 
Experience: Intermediate
Platform: MC, TS, NT
Broker: TradeStation
Trading: ES
Posts: 41 since Oct 2009
Thanks Given: 12
Thanks Received: 21


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

Thanked by:

 



Last Updated on October 29, 2013


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts