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 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 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,149 views
    2. thumb_up 23 thanks given
    3. group 12 followers
    1. forum 19 posts
    2. attach_file 5 attachments




 
Search this Thread

Global Variables (GV) in EasyLanguage for TradeStation/MultiCharts

(login for full post details)
  #1 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Posts: 50,232 since Jun 2009
Thanks Given: 33,103
Thanks Received: 101,344

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


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


Lifetime Elite Membership: Sign-up for only $149 USD
Receive exclusive 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 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 NexusFi?
ISO Equity Curve Indicator
NinjaTrader
Request for MACD with option to use different MAs for fa …
NinjaTrader
Trader Dale [email protected] or Scammer Dale
Trading Reviews and Vendors
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
GFIs1 1 DAX trade per day journal
28 thanks
Supertradersams Thread Journal on NQ/MNQ
26 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
12 thanks
1% Risk Journal
11 thanks

(login for full post details)
  #3 (permalink)
 
aslan's Avatar
 aslan 
Madison, WI
 
Experience: Advanced
Platform: ALT
Trading: ES
Posts: 623 since Jan 2010
Thanks Given: 351
Thanks Received: 1,123


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, 736 views)
Reply With Quote
The following 5 users say Thank You to aslan for this post:
(login for full post details)
  #4 (permalink)
 
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.

Reply With Quote
(login for full post details)
  #5 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Posts: 50,232 since Jun 2009
Thanks Given: 33,103
Thanks Received: 101,344


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


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


Lifetime Elite Membership: Sign-up for only $149 USD
Receive exclusive 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 Reply With Quote
(login for full post details)
  #6 (permalink)
 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.

Reply With Quote
The following user says Thank You to Bondi9999 for this post:
(login for full post details)
  #7 (permalink)
 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.

Reply With Quote
(login for full post details)
  #8 (permalink)
 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?

Reply With Quote
(login for full post details)
  #9 (permalink)
 
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

Reply With Quote
The following user says Thank You to atata for this post:
(login for full post details)
  #10 (permalink)
 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

Reply With Quote
The following 4 users say Thank You to SPTrading for this post:





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