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

Re: Number of assigned variables



PureBytes Links

Trading Reference Links


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. 
 
Hope it helps
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  ----- Original Message ----- 
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black">From: 
  wavemechanic 
  
  To: <A title=metastock@xxxxxxxxxxxxx 
  href="mailto:metastock@xxxxxxxxxxxxx";>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