Register Login
Forums    February 6, 2012
TradersStudio Forums
saving data between bars
Last Post 10-18-2007 05:58 PM by Tom Himel. 0 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Tom Himel
New Member
New Member
Posts:14

--
10-18-2007 05:58 PM

    On several occasions I have needed to save a small array of data between bars for use within an individual market.  A single value can nicely be saved as a barArray(1).  As far as I can tell, an array cannot also be a barArray.

    So far I have handled this by storing the array in a gvaluex global variable and then retrieving it on the next call to my indicator or system.  This works, but one has to be careful not to use the same gvaluex in different routines.

    In normal visual basic, I would just declare the array static or declare it outside the routine, but those features don't exist in TradersStudio basic.

    Is there a better way to handle this than my gvaluex method? 

    Thanks

    You are not authorized to post a reply.


     TradersStudio, Inc. ® Copyright 2004-2012 All Rights Reserved   Terms Of Use  Privacy Statement