[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Number of assigned variables



PureBytes Links

Trading Reference Links

At 03:36 PM 10/21/01 +0100, you wrote: >>>> Bill, I've not tried this in MetaStock, so cannot say it definitively works however, I've used it extensively elsewhere. Take a variable, our_num. For the sake of argument, lets say it has the value. 34.95. Then you have basically three variables, the first moving average length is 34, the second is nine, and the signal is five. I use this type of thing a lot to decribe both a function input, it's colour and line thickness when building indicators. If it doesn't make sense, then I'll get the Metastock manual out and construct an example.
<<
Encoding several variables into one has its uses but, eventually, you will want to access its components ... so, are you not just postponing the fact that you will eventually run our of variable names within the scope of your formula?
Herman



>>>> Hope it helps ----- Original Message ----- From: wavemechanic To: metastock@xxxxxxxxxxxxx Sent: Sunday, October 21, 2001 2:29 PM Subject: Number of assigned variables

I have run into a problem while writing an indicator in which I have too many assigned variables (more than 20). Has anyone found any programming tricks that permit, for example, variables to be combined, etc., so that the total can be greater than 20?
Bill
<<