MC 7.4 Global Variables - EasyLanguage Programming | futures io social day trading
futures io futures trading


MC 7.4 Global Variables
Updated: Views / Replies:1,684 / 4
Created: by kleff 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
 

MC 7.4 Global Variables

  #1 (permalink)
Trading Apprentice
Stockholm
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: Stocks
 
Posts: 2 since Jul 2011
Thanks: 1 given, 0 received

MC 7.4 Global Variables

Hello, I've got a simple question in regards to using global variables in MultiCharts 7.4. Despite,
being fairly new I usually end up fixing it trough trial and error, but now I'm stuck, and I haven't
found a solution.

I've got an index in which I've plotted moving averages. I wanted to transfer the value
of the division to a second chart. It was sucessful, however I only receive the
value calculated from the latest bar, giving me a flat line.

Is it possible to transfer the value from the previous bars aswell?

This is my code.

Sending chart

var0 = XAverage(Close, EMA1)/XAverage(Close, EMA2);

If Bartype = 3 then
Begin
GVSetNamedDouble("Study 1",var0);
End;

Receiving chart

var0 = GVGetNamedDouble("Study 1",0);

If BarType = 3 then
Begin
Plot1(var0,"EMAs",red);
RecalcLastBarAfter(1);
End;

Thanks in advance.

Edit: I'm using EOD data.


Last edited by kleff; April 19th, 2012 at 05:04 AM.
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)
Elite Member
Newcastle, Australia
 
Futures Experience: Intermediate
Platform: Multicharts 8 - Full Version
Broker/Data: IB
Favorite Futures: SPI,FTSE100, 6E, 6A
 
Posts: 285 since Oct 2010
Thanks: 108 given, 177 received


No.
Put both of them onto the same chart screen and hide one.
This is how i display a ma from a 5min chart on my tick chart.

Sent from my GT-I9100T using Tapatalk 2

Reply With Quote
The following user says Thank You to NW27 for this post:
 
  #4 (permalink)
Trading Apprentice
Stockholm
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: Stocks
 
Posts: 2 since Jul 2011
Thanks: 1 given, 0 received


NW27 View Post
No.
Put both of them onto the same chart screen and hide one.
This is how i display a ma from a 5min chart on my tick chart.

Sent from my GT-I9100T using Tapatalk 2

Ok, I'll do that. Thanks!

Reply With Quote
 
  #5 (permalink)
Trading for Fun
London
 
Futures Experience: None
Platform: mc, TS, ninja
Favorite Futures: es
 
Bimi's Avatar
 
Posts: 118 since Mar 2010
Thanks: 42 given, 58 received


kleff View Post
Hello, I've got a simple question in regards to using global variables in MultiCharts 7.4. Despite,
being fairly new I usually end up fixing it trough trial and error, but now I'm stuck, and I haven't
found a solution.

I've got an index in which I've plotted moving averages. I wanted to transfer the value
of the division to a second chart. It was sucessful, however I only receive the
value calculated from the latest bar, giving me a flat line.

Is it possible to transfer the value from the previous bars aswell?

This is my code.

Sending chart

var0 = XAverage(Close, EMA1)/XAverage(Close, EMA2);

If Bartype = 3 then
Begin
GVSetNamedDouble("Study 1",var0);
End;

Receiving chart

var0 = GVGetNamedDouble("Study 1",0);

If BarType = 3 then
Begin
Plot1(var0,"EMAs",red);
RecalcLastBarAfter(1);
End;

Thanks in advance.

Edit: I'm using EOD data.

take the space out of "Study 1"

Reply With Quote

Reply



futures io > > > > > MC 7.4 Global Variables

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 Variables In TS c12345 EasyLanguage Programming 7 October 14th, 2017 10:52 AM
Global variables in NT Geir NinjaTrader Programming 24 March 31st, 2016 05:19 PM
Global variables for sharing data between Charts ECI Ed NinjaTrader Programming 5 March 6th, 2012 10:02 AM
global variables: anyone got a complete NT7 example? elbone NinjaTrader Programming 2 July 19th, 2011 10:13 AM
Global Variables and Strategies in Ninja 6.5 TonyA NinjaTrader Programming 3 November 6th, 2010 08:50 AM


All times are GMT -4. The time now is 12:03 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-17 in 0.10 seconds with 19 queries on phoenix via your IP 54.90.92.204