Global Variables - How to make them work on hystoric chart and not only in real time - MultiCharts | futures io social day trading
futures io futures trading


Global Variables - How to make them work on hystoric chart and not only in real time
Updated: Views / Replies:110 / 3
Created: by Dvdkite 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 100,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
 

Global Variables - How to make them work on hystoric chart and not only in real time

  #1 (permalink)
Trieste Italy
 
 
Posts: 133 since Feb 2018
Thanks: 122 given, 15 received

Global Variables - How to make them work on hystoric chart and not only in real time

Hello Everyone,

Let me better explane my question. I have 2 chart that are actually communicating using Global Variables. In the Chart 1 I use codes like this to SET the Global Variables values:

 
Code
value2 = GVSetFloat(2,C);
	value3 = GVSetInteger(3,date);
	value4 = GVSetInteger(4,time);
Then in Chart 2 I use a similar code with GET ( GVGetInteger, GvGetFloat.... ) and it is working.

I use the code in chart 1 to save some data (price, time, ectt...) of an event and I plot an arrow in chart 2 over the candle related to that item. It works fine but it only start working from the exact second when I start the indicators. I have all indicationd over my candles but if I simply do a REFRESH INDICATORS then all my arrows disappear from chart 1 .... so it basically work only in real time but I'm not sure how to make it plot always ...I mean also for past days and not only in real time... how can I achive that?
My idea was to put values into an array and send the array from chart 1 to chart 2 but a GVSetArray is not availables ( and maybe it would be too heavy to be fast)....
I hope I've explaned well my questions.

Do you have any suggestion?

Thanks in advance

Reply With Quote
 
  #2 (permalink)
Trieste Italy
 
 
Posts: 133 since Feb 2018
Thanks: 122 given, 15 received

Anyone had such an experience/problem??

Reply With Quote
 
  #3 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,069 since Apr 2013
Thanks: 369 given, 1,316 received


David,

the design of Global Variables makes them suited for real time use. While what you have in mind might be doable with Global Variables, it would require storing each bar with a value using a differently named Global Variable. This could become hard to manage and depending on the amount of bars you have you might also run into limitations as there is a finite amount of shared named global variables that can be handled.
EasyLanguage Collections might be better suited for what you have in mind, as you can share lists or maps across charts that are located within the same instance of Multicharts.

Regards,

ABCTG


Dvdkite View Post
Hello Everyone,

Let me better explane my question. I have 2 chart that are actually communicating using Global Variables. In the Chart 1 I use codes like this to SET the Global Variables values:

 
Code
value2 = GVSetFloat(2,C);
	value3 = GVSetInteger(3,date);
	value4 = GVSetInteger(4,time);
Then in Chart 2 I use a similar code with GET ( GVGetInteger, GvGetFloat.... ) and it is working.

I use the code in chart 1 to save some data (price, time, ectt...) of an event and I plot an arrow in chart 2 over the candle related to that item. It works fine but it only start working from the exact second when I start the indicators. I have all indicationd over my candles but if I simply do a REFRESH INDICATORS then all my arrows disappear from chart 1 .... so it basically work only in real time but I'm not sure how to make it plot always ...I mean also for past days and not only in real time... how can I achive that?
My idea was to put values into an array and send the array from chart 1 to chart 2 but a GVSetArray is not availables ( and maybe it would be too heavy to be fast)....
I hope I've explaned well my questions.

Do you have any suggestion?

Thanks in advance


Follow me on Twitter Visit my Facebook Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #4 (permalink)
Trieste Italy
 
 
Posts: 133 since Feb 2018
Thanks: 122 given, 15 received


ABCTG View Post
David,

EasyLanguage Collections might be better suited for what you have in mind, as you can share lists or maps across charts that are located within the same instance of Multicharts.

Regards,

ABCTG

Hello ABCTG,

thank you very much for the suggestion! I didn't know that such an option exist... I will try it for sure. I already made some search here at futures.io and I've found a post with a reply of yours pointing to a link with good resources

Regards,

David

Reply With Quote

Reply



futures io > > > > Global Variables - How to make them work on hystoric chart and not only in real time

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$1,000 in Amazon Gift Cards being given away right now from GFF Brokers

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
 

Show us your trading desks and win over $5,000 in prizes w/Jigsaw Trading

August
 

Webinar: Suri Duddella (TBA)

Elite only
 

Webinar: Richard Bailey (TBA)

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make Excel 2016 to work with Ninjatrader 7 or 8 REAL-TIME jsk123 NinjaTrader Programming 5 November 17th, 2017 03:05 PM
Where can I learn more about these indicators? I only know how a few of them work. alecsaccount NinjaTrader 0 March 6th, 2017 11:02 PM
Ninja Trader Chart settings - can we make them encrypted or private? ferdy NinjaTrader 1 August 22nd, 2015 06:02 PM
Global Variables and Strategies in Ninja 6.5 TonyA NinjaTrader Programming 3 November 6th, 2010 07:50 AM
Indicators, to have them or not to have them?! George Psychology and Money Management 11 September 6th, 2009 10:30 AM


All times are GMT -4. The time now is 04:41 AM. (this page content is cached, log in for real-time version)

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