NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 05-08-2007, 06:54 AM   #1
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Question User variable scope

What is the scope of a user variable? Is it global, unique to chart, or time series?

I want to set a variable from one time series chart that can be accessed/seen from another time series.

I don't think this is supported but thought I would ask.

Cliff
ct is offline  
Reply With Quote
Old 05-08-2007, 07:02 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

a) We will add something to the docs regarding the lifetime of variables.
b) However, you question rather is about visibility. In theory you could code your indicators such that the timeseries would be visible to another indicator on another chart. But this requires a level of C# coding logic/knowledge which we unfortunately can not support at this time (due to bandwidth issues).
NinjaTrader_Dierk is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
intra-bar/inter-tick variable persistance ? zoltran Indicator Development 3 04-04-2007 01:12 AM
Compile error with MIN and MAX variable assignment lewdfinger General Programming 2 02-10-2007 07:13 AM
How do I get 'barsAgo" info for a variable I create? BradB General Programming 2 01-26-2007 06:54 AM
New user - automation question Steveinvest Automated Trading 2 11-21-2005 01:18 PM
New user-can't get YM to load ron Miscellaneous Support 2 01-20-2005 03:23 AM


All times are GMT -6. The time now is 01:48 PM.