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



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


Discussion in MultiCharts

Updated
    1. trending_up 438 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 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 - How to make them work on hystoric chart and not only in real time

(login for full post details)
  #1 (permalink)
Trieste Italy
 
 
Posts: 159 since Feb 2018
Thanks: 129 given, 20 received

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

Can you help answer these questions
from other members on futures io?
Simulated Playback Trading
EasyLanguage Programming
Financial Modeling Prep (free to use: financialmodelingprepcom) API
Trading Reviews and Vendors
About MC Backtesting Features - Limit Order Fills, Bar Magnifier and IOG
MultiCharts
NT8 connectivity to XFinity / Comcast
NinjaTrader
2nd cross over
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Big Mike in Ecuador
83 thanks
How did you learn to trade?
81 thanks
NinjaTrader buys TransAct Futures (Infinity Brokers), plans its own FCM
64 thanks
2020 profit and loss results
62 thanks
Whos afraid of the big bad Glitch
51 thanks
 
(login for full post details)
  #2 (permalink)
Trieste Italy
 
 
Posts: 159 since Feb 2018
Thanks: 129 given, 20 received

Anyone had such an experience/problem??

Reply With Quote
 
(login for full post details)
  #3 (permalink)
Vendor
 
 
Posts: 2,225 since Apr 2013
Thanks: 406 given, 1,468 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:
 
(login for full post details)
  #4 (permalink)
Trieste Italy
 
 
Posts: 159 since Feb 2018
Thanks: 129 given, 20 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


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


Last Updated on July 17, 2019


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Are you doing what it takes to trade right? w/FuturesTrader71

Jan 21
 

Journal Challenge!

February
 

Battlestations!

March
     



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