Traders Laboratory - View Single Post - BB Squeeze Replica For Tradestation
View Single Post
  #17 (permalink)  
Old 02-26-2007, 09:57 PM
walterw's Avatar
walterw walterw is offline
walterw is The Trader Chimp

Trader Specs
 
Join Date: Nov 2006
Location: Argentina
Posts: 2,153
Thanks: 0
Thanked 38 Times in 28 Posts
Re: BB Squeeze Indicator For Tradestation

Quote:
View Post
Hi Walter, The code will not verify in 2000i. I think some of the functions are not quite the same, for example it doesn't seem to recognise what the line
"SDev = StandardDev(Price, Length, 1);" is.
either the term Satandarddev or the ( variables in the brackets)

Will investigate further but if you have any suggestions I would be grateful.

Thanks

ok dovee, you have to create a function with the exact name : Standarddev

then paste this:

{ Standard Deviation of Population or Sample }

inputs:
Price( numericseries ),
Length( numericsimple ),
DataType( numericsimple ) ; { pass in 1 if you are working with the entire
population, and 2 if you are working with a sample and want the SD for the
population }

Value1 = VariancePS( Price, Length, DataType ) ;
if Value1 > 0 then
StandardDev = SquareRoot( Value1 )
else
StandardDev = 0 ;


{ ** Copyright (c) 1991-2003 TradeStation Technologies, Inc. All rights reserved. **
** TradeStation reserves the right to modify or overwrite this analysis technique
with each release. ** }




then verify function.... after that go open and an verify again _bbsqueeze indicator... try it if again error tel me maybe need more functions. cheers Walter

Reply With Quote