Hi Keith

The problem with bb is that it swings through zero to negative. Bollinger Bands 
are primarily for prices (I imagine) and so are constructed to work only with 
positive data arrays. You need to rethink how to approach your problem.

For what it's worth MetaStock has already told you what parameter is causing 
the problem - bb is "value out of valid range", meaning that it's not a 
positive value. It would appear that zero is also an invalid value for bb.

Regards

Roy



  ----- Original Message ----- 
  From: a 
  To: Equismetastock 
  Sent: Thursday, June 27, 2013 4:03 PM
  Subject: [EquisMetaStock Group] 3-35 osc


    
  I want to make a 5-35 osc with bands same as Advanced get

  the 5-35 is no problem , histogram & line
  I tried Std Error bands -- couldn't get them to plot properly
  moved to StDev ( Bollinger Bands ) also won't plot
  message is basically it's plotting out of range
  can't figure that out as i'm trying only 2stdev
  here my code so far

  a:=Mov(C,5,E);
  b:=Mov(C,35,E);
  bb:=a-b;
  bb; { shown as histogram}
  bb; { shown as a line }

  BBB:=BBandBot(bb,20,S,2);
  BBT:=BBandTop(bb,20,S,-2);
  BBB;
  BBT;

  can anyone see what my coding problem is please or offer any 
  suggestions--

  thanks Keith


  

  __________ Information from ESET NOD32 Antivirus, version of virus signature 
database 8503 (20130628) __________

  The message was checked by ESET NOD32 Antivirus.

  http://www.eset.com



__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 8503 (20130628) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Reply via email to