Sunday, August 01, 2010     | Register
TradersStudio Forums
Subject: saving data between bars

You are not authorized to post a reply.   
Author Messages
thimel1
Posts:14

10-18-2007 5:58 PM Alert 

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.
Forums > TradersStudio 2.x > TradersStudio Basic > saving data between bars



ActiveForums 3.6
TradersStudio® Copyright 2004-2010 All Rights Reserved   |  Privacy Statement  |  Terms Of Use